Computer 8,9
Computer 8,9
SCIENCE
Chapter: ,8,9 (II) ECAT /MCAT Total Questions: 30
Date: Test Code: 09 Test Time: 60 Mins
16. The program that modifies the c program prior to its compilation
(a) Preprocessor (b) Proprocessor (c) Linker (d) Compiler
17. a+=b is equivalent to
(a) a=b (b) b=a (c) a=a+b (d) b=b+a
18. What is the value of a after this statement a=b++; if value of b is 2
(a) 2 (b) 3 (c) 4 (d) 5
19. How many keywords are there in C language
(a) 23 (b) 32 (c) 26 (d) 62
20. Which is a valid variable name
(a) Goto (b) Int (c) C_a (d) 4abc
21. The symbol = is
(a) Comparison operator (b) Assignment operator (c) Both a and b (d) None of the above
22. How many bytes the float data type takes in memory
(a) 1 (b) 2 (c) 4 (d) 8
23. How many bytes the char data type takes in memory
(a) 1 (b) 2 (c) 4 (d) 8
24. Which one is not true about a variable in c language
(a) Can be declared anywhere in the program (b) No need to initialize
(c) Will not contain garbage if not initialized (d) All of the above
25. Which one is not a relational operator
1
(a) > (b) == (c) != (d) &&
26. Format specifier for short is
(a) %d (b) %s (c) %lf (d) %f
27. Format specifier for float is
(a) %d (b) %s (c) %lf (d) %f
28. The escape sequence for backslash is
(a) \ (b) \b (c) \t (d) \\
29. The escape sequence for backspace is
(a) \ (b) \b (c) \t (d) \\
30. What will be the output of printf(“%d”,’b’); is
(a) 65 (b) A (c) a (d) 98