Monday 30 January 2012

Objective Question of C Introduction

11. Which escape character can be used to begin a new line C?
A. \a
B. \b
C. \m
D. \n
Answer :

12. Which excape character can be to beep from speaker in C?A. \a
B. \b
C. \m
D. \n
Answer :

13. Character constants should be enclosed between__
A. Single Quotes
B. Double Quotes
C. Both a and b
D. None of these
Answer :

14. String constants should be enclosed between __
A. Single Quotes
B. Double Quotes
C. Both a and b
D. None of these
Answer :

15. Which of the follwing is invalid ?
A.''
B." "
C.'a'
D. 'abc'
Answer :

16. The maxiumum length of a variable in C is ___
A. 8
B. 16
C. 32
D. 64
Answer :

17. What will be the maximum size of a float  variable ?
A. 1 byte
B. 2 bytes
C. 4 bytes
D. 8 bytes
Answer :

18. What will be the maximum size of a double variable ?
A. 1 byte
B. 4 bytes
C. 8bytes
D. 16 bytes
Answer :

19. A declaration float a, b; occupies ___ of memory
A. 1 byte
B. 4 bytes
C. 8 bytes
D. 16 bytes
Answer :

20.The size of a String variable is
A. 1 byte
B. 8 bytes
C. 16 bytes
D. None of these
Answer :

No comments:

Post a Comment