(A) myvar;
(B) &myvar;
(C) cout << myvar;
(D) cout << &myvar;
The answer is: (D) cout << &myvar;
Computer MCQs quiz test questions with answers for FPSC CSS PPSC SPSC KPPSC test preparation, including questions from computer science past papers.
(A) myvar;
(B) &myvar;
(C) cout << myvar;
(D) cout << &myvar;
The answer is: (D) cout << &myvar;
(A) constant, variable
(B) variable, constant
(C) constant, constant
(D) variable, variable
The answer is: (A) constant, variable
(A) braces
(B) parentheses
(C) statement
(D) variable name
The answer is: (B) parentheses
string a = “4”;
string b = “8”;
string c = a + b;
cout << c << endl;
If the program is run, what will be displayed on the screen?
(A) 4
(B) 8
(C) 12
(D) 48
The answer is: (D) 48
(A) syntax
(B) operator
(C) header file
(D) string constant
The answer is: (C) header file
string var1 = “Computer “;
string var2 = “Science”;
string var3 = var1 + var2;
cout << “var3” << endl;
(A) var3
(B) Computer
(C) Science
(D) Computer Science
The answer is: (A) var3
string var1 = “Computer “;
string var2 = “Science”;
string var3 = var1 + var2;
cout << var3 << endl;
If the program is run, what will be displayed on the screen?
(A) var3
(B) Computer
(C) Science
(D) Computer Science
The answer is: (D) Computer Science
(A) digital
(B) decimal
(C) analogue
(D) binary
The answer is: (D) binary
(A) Router
(B) Bridge
(C) Gateway
(D) Node
The answer is: (A) Router
(A) Router
(B) Bridge
(C) Gateway
(D) Node
The answer is: (B) Bridge