Que 1:Fill in the blanks.
a) C was developed in the year…………..
b) C was developed by ………………………….
c) C is …... sensitive language.
d) C is …… form language.
e) The executable file of Turbo C
compiler is……………….
f) To close the current window the
shortcut key is…………………
g) .h stands for ………….. file.
h) in printf() f stands for…………..
output.
Que 2: State true or false.
a) A C program can have more than one
main() function.
b) List of variables can be dropped
from the scanf().
c) Output directory is the directory
where compiler stores executable and object files corresponding to your
programs.
d) printf() can be split over multiple
lines.
e) Special keys like PgUp, PgDn, Home,
End etc. have ASCII value 0.
Que
3:Find out the errors in the following programs, correct them and
rewrite.
1)
#include <stdio.h>
#include <conio.h>
main()
{
clrscr();
int i=20;
printf(“The value
of i=%d”,i);
getch();
}
2)
#include <stdio.h>
#include <conio.h>
main()
{
int Int;
int iNt;
int =786;
iNt=iNt;
clrscr();
printf(“The value
of int=%d”,Int);
printf(“The value of iNt=%d”,iNt);
getch()
}
3)
#include <stdio.h>
#include <conio.h>
main()
{
int 55_rupee;
55_rupee=55;
printf(“The todays
rate of dollar is %d rupees.”,55_rupee);
getch();
}
No comments:
Post a Comment