Académique Documents
Professionnel Documents
Culture Documents
23rd
A. True
B. False
2 | Page
B. Enter values of P, N, R
C. 23.56E-03
D. All the above
15. The maximum value that an integer constant can have is
A. -32767
B. 32767
C. 1.7014e+38
D. 1.7014e+38
16. A C variable cannot start with
A. An alphabet
B. A number
C. A special symbol other than underscore
D. Both (2) & (3) above
17. Which of the following statement is wrong
A. mes = 123.56 ;
B. con = 'T' * 'A' ;
C. this = 'T' * 20 ;
D. 3 + a = b ;
18. Which of the following shows the correct hierarchy of arithmetic operators in C
A. **, * or /, + or B. **, *, /, +, C. **, /, *, +, D. / or *, - or +
19. In b = 6.6 / a + 2 * n ; which operation will be performed first?
A. 6.6 / a
B. a + 2
C. 2 * n
D. Depends upon compiler
20. Which of the following is allowed in a C Arithmetic instruction
A. [ ]
B. { }
C. ( )
D. None of the above
21. Which of the following statements is false
A. Each new C instruction has to be written on a separate line
B. Usually all C statements are entered in small case letters
C. Blank spaces may be inserted between two words in a C statement
D. Blank spaces cannot be inserted within a variable name
22. If a is an integer variable, a = 5 / 2 ; will return a value
3 | Page
A.
B.
C.
D.
2.5
3
2
0
SECTION B
If the total selling price of 15 items and the total profit earned on them is input through the
Keyboard, write a program to find the cost price of one item.
4 | Page