Q1. C language has been developed by?
1)
Ken Thompson
2)
Dennis Ritchie
3)
Peter Norton
4)
Matin Richards
Answer (2).
Q2. C language has been developed at?
1)
Microsoft Corp.,USA
2)
AT & T Bell Labs, USA
3)
Borland International ,USA
4)
IBM,USA
Answer (2).
Q3. C language came into existence in the year?
1)
1971
2)
1957
3)
1972
4)
1983
Answer (3).
Q4. C is a
1)
Middle level language
2)
High level language
3)
Low level language
4)
None of the above
Answer (1)
Q5. C can be used on
1)
Only MS-DOS operating system
2)
Only Unix operating system
3)
Only Xenix operating system
4)
All the above
Answer(4).
Q6. C programs are converted into machine language with the
help of
1)
An interpreter
2)
A compiler
3)
An operating system
4)
None of the above
Answer (2).
Q7. The real constant in c can be expressed in which of the
following forms
1)
Fractional form only
2)
Exponential form only
3)
ASCII form only
4)
Both
fractional and exponential forms
Answer (4).
Q8. A character variable can at a time store
1)
1 character
2)
8 characters
3)
254 characters
4)
None of
the above
Answer (1).
Q9. Which of the following is NOT a character constant
1)
‘thank you’
2)
‘Enter value of P,N,R’
3)
’23.56E-03’
4)
All the above
Answer (4)
Q10. The maximum value that an integer constant can have is
1)
-32767
2)
32767
3)
1.7014e+38
4)
-1.7014e+38
Answer (2).
Q11. The maximum width of a C variable name can be
1)
6 characters
2)
8 characters
3)
10 characters
4)
20 characters
Answer (2).
Q12. A C variable cannot
start with
1)
An alphabet
2)
A number
3)
A special symbol
4)
Both (b) and (c) above
Answer (4).
Q13. Which of the following statement is worng
1)
Mes=124.56;
2)
Con=’T’*’A’;
3)
This=’T’*20;
4)
3+a=b;
Answer (4).
Q14. Which of the following shows the correct hierarchy of
arithmetic operations in C
1)
(),**,* or /, + or –
2)
(),**,*,/,+,-
3)
(),**,/,*,+,-
4)
(),/or *,- or +
Answer (4).
Q15. In b=6.6/a+(2*a+(3*c)/a*d)/(2/n); which operation will
be performed first?
1)
6.6/a
2)
2*a
3)
3*c
4)
2/n
Answer (3).
Q16. Which of the following is allowed in a C Arithmetic
instruction
1)
[]
2)
{}
3)
()
4)
None of the above
Answer (3).
Q17. Which of the following statements is false
1)
Each new C instruction has to be written on a
separate line
2)
Usually all C statements are entered in small
case letters
3)
Blank spaces may be inserted between two words
in a C statement
4)
Blank space cannot be inserted within a integer
variable
Answer (1).
Q18. If a is an integer variable ,a=5/2; will return a value
1)
2.5
2)
2
3)
3
4)
0
Answer (2).
Q19. The expression ,a=7/22*(3.14+2)*3/5; evaluates to
1)
8.28
2)
6.28
3)
3.14
4)
0
Answer (4).
Q20. The expression ,a=30*1000+2768;evaluates to
1)
32768
2)
-32768
3)
113040
4)
0
Answer (2).
Q21. The expression x=4+2%-8 evaluates to
1)
-6
2)
6
3)
4
4)
None of the above
Answer (2).
Q22. Hierarchy decides which operator
1)
Is most important
2)
Is used first
3)
Is fastest
4)
Operates on largest numbers
Answer (2).
No comments:
Post a Comment