(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
Test1
1. TEST 1
1. C is developed By
A. Thompson B. Bill Gates C. Dennis Ritche D. Peter Norton
2. C has _______ keywords:
A. 30 B. 32 C. 38 D. 48
3. Which is the type of int:
A. int B. unsigned long int C. long int D. All of the above
4. Which is not valid integer
A. +327 B. -21345 C. 12.98 D. 32116
5. variable is a__________
A. Name given to memeory location and whose value changes during program execution
B. Name given to memeory location and whose value does not changes during program execution
C. It is an fixed entity
D. It is a constatnt value.
6. Arithmatic operator % (modulus) gives ___________
A. Quotient B. Divisor C. Dividend D. Remainder
7. _________is a smallest datatype in 'C'
A. int B. char C. long D. Short
8. _______ is a longest datatype in 'C'
A. unsigned long int B. Double C. unsigned int D. long double
9. Which operator is used to assign value to variables
A. = B. == C. + D. %
10. 'n' is used for_______
A. give 8 spaces B. New line C. Alert D. Backspace
11. which of the following is input function ________
A. printf(); B. clrscr(); C. scanf(); D. Main()
12. '&' used in scanf() function is called as __________operator
A. assignment B. concatination C. and D. address of
13. what will be the output of following programming
#include<stdio.h>
#include<conio.h>
main()
{
char ch='A';
clrscr();
printf(“nn ch = %c”, ch);
getch();
}
2. 14. Which symbol is used as a statement terminator in C?
A. ! B. # C. ; D. ~
15. Variable name in 'C' cannot start with
A. An alphabet B. A number C. a special symbol other than underscore
D. both b and c
16. Which of the following is FALSE in C
A. keywords can be used as variable names
B. variable names can contain a digit
C. variable names do not contain a blank space
D. capital letters can be used in variable names
17. which of the following is allowed in a C Arithmetic instruction
A. [ ] B. { } C. ( ) D. None of the above
18. Character constants should be enclosed between ___
A. Single quotes B. Double quotes C. Both a and b D. None of this
19. which is the shortcut key to compile program in Turbo C IDE:
A. Ctrl + F9 B. Alt + F9 C. Ctrl + F5 D. None of these
20. The ASCII value of Y is
A. 88 B. 89 C. 90 D. 91
21. A declaration float a,b; occupies ___ of memory (for Windows OS)
A. 4 byte B. 8 byte C. 16 byte D. 32 byte
22. find the output
main()
{
int a=10;
float b= 2.5;
char c='a';
clrscr();
printf(“n Hi, Welcome to the world of C!!!”);
printf(“n a= %d”, a);
printf(“n b=%f”, b);
printf(“n c= %c', c);
printf(“nn a= %d, b=%f, c=%c”, a,b,c);
getch();
}
23. _______is used for single line comment in 'C'.