-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquizcpp.json
122 lines (122 loc) · 4.07 KB
/
quizcpp.json
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[
{
"question": "Q1: Which of the following is the correct syntax to print the message in C++ language?",
"a": "cout <<\"Hello world!\";",
"b": " Cout << Hello world! ;",
"c": "Out << Hello world!;",
"d": " None of the above",
"ans": "ans1"
},
{
"question": "Q2: Which of the following is the correct identifier?",
"a": " $var_name",
"b": " VAR_123",
"c": " varname@",
"d": " None of the above",
"ans": "ans2"
},
{
"question": "Q3: Which of the following is the address operator?",
"a": " @",
"b": " #",
"c": " &",
"d": " %",
"ans": "ans3"
},
{
"question": "Q4: Which of the following features must be supported by any programming language to become a pure object-oriented programming language?",
"a": " Encapsulation",
"b": " Inheritance",
"c": " Polymorphism",
"d": " All of the above",
"ans": "ans4"
},
{
"question": "Q5: The programming language that has the ability to create new data types is called___.",
"a": " Overloaded",
"b": " Encapsulated",
"c": " Reprehensible",
"d": " Extensible",
"ans": "ans4"
},
{
"question": "Q6:Which of the following is the original creator of the C++ language?",
"a": " Dennis Ritchie",
"b": " Ken Thompson",
"c": " Bjarne Stroustrup",
"d": " Brian Kernighan",
"ans": "ans3"
},
{
"question": "Q7:Which of the following is the correct syntax to add the header file in the C++ program?",
"a": " #include < userdefined>",
"b": " #include \"userdefined.h\" ",
"c": " < include > \"userdefined.h \" ",
"d": " Both A and B",
"ans": "ans4"
},
{
"question": "Q8:Which of the following is the correct syntax to read the single character to console in the C++ language?",
"a": " Read ch()",
"b": " Getline vh() ",
"c": " get(ch) ",
"d": " Scanf(ch)",
"ans": "ans3"
},
{
"question": "Q9:Which of the following statements is correct about the formal parameters in C++?",
"a": " Parameters with which functions are called",
"b": " Parameters which are used in the definition of the function ",
"c": " Variables other than passed parameters in a function ",
"d": " Variables that are never used in the function",
"ans": "ans1"
},
{
"question": "Q10:The C++ language is ______ object-oriented language.",
"a": " Pure Object oriented",
"b": " Not Object oriented",
"c": " Semi Object-oriented or Partial Object-oriented ",
"d": " None of the above",
"ans": "ans3"
},
{
"question": "Q11:Which of the following comment syntax is correct to create a single-line comment in the C++ program?",
"a": " //Comment",
"b": " /Comment/",
"c": " Comment// ",
"d": " None of the above",
"ans": "ans1"
},
{
"question": "Q12:C++ is a ___ type of language.",
"a": " High-level language",
"b": " Low-level language",
"c": " Middle-level language ",
"d": " None of the above",
"ans": "ans3"
},
{
"question": "Q13:For inserting a new line in C++ program, which one of the following statements can be used?",
"a": " \\n",
"b": " \\r",
"c": " \\a ",
"d": " None of the above",
"ans": "ans1"
},
{
"question": "Q14:Which one of the following represents the tab?",
"a": " \\n",
"b": " \\t",
"c": " \\r",
"d": " None of the above",
"ans": "ans2"
},
{
"question": "Q15:Which of the following refers to characteristics of an array?",
"a": " An array is a set of similar data items",
"b": " An array is a set of distinct data items",
"c": " An array can hold different types of datatypes ",
"d": " None of the above",
"ans": "ans1"
}
]