Articles added in Mathematics Lab | Cyber Lab is now open | Astronomy Lab is now open | VLSI Lab is now open | 120 SEO Tips article published | More exciting articles coming soon!

Computer Sci. Quiz 1 (C++ Basics)

1. What is the compulsory function that all C++ programs must contain?
A. start() B. void()
C. system() D. main()

2. What is the correct way of writing a comment in C++?
A. */ Comment */ B. /* Comment */
C. /* Comment /* D. * Comment *

3. Which of the following operator compares two variables?
A. == B. =!
C. != D. compare()

4. What symbol is used to determine the logical end of a statement?
A. } B. )
C. ; D. :

5. Which of the following is not a datatype in C++?
A. int B. float
C. char D. void

6. Which of the following is not a header file type in C++?
A. < assert.h > B. < fenv.h >
C. < limits.h > D. < include.h >

7. Which of the following is not a keyword in C++?
A. main B. void
C. for D. while

8. Which of the following is the boolean operator for logical-and?
A. and() B. and
C. &; D. &&

9. For is a which type of statement among these?
A. Conditional B. Unconditional
C. Repetitive D. Control

10. C++ is what type of language?
A. Functional language B. Sequential language
C. Procedural language D. None of above

CACKLE comment system

Programming Resources
Computer Networking Fundamentals Android Application