|
Quiz The basics of C++If you haven't already done so, be sure to read through cprogramming/tutorial/lesson1Cprogramming's introduction to C++ Otherwise, best of luck with the quiz! 1. What is the correct value to return to the operating system upon the successful completion of a program?A. -1 B. 1 C. 0 D. Programs do not return a value. 2. What is the only function all C++ programs must contain? A. start() B. system() C. main() D. program() 3. What punctuation is used to signal the beginning and end of code blocks? A. { } B. - and <- C. BEGIN and END D. ( and ) 4. What punctuation ends most lines of C++ code? A. . B. ; C. : D. ' 5. Which of the following is a correct comment? A. */ Comments */ B. ** Comment ** C. /* Comment */ D. { Comment } 6. Which of the following is not a correct variable type? A. float B. real C. int D. double 7. Which of the following is the correct operator to compare two variables? A. := B. = C. equal D. ==
|
Bhopal news
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100