(A) for loop
(B) do-while loop
(C) if/ else statement
(D) switch statement
The answer is: (D) switch statement
Computer MCQs quiz test questions with answers for FPSC CSS PPSC SPSC KPPSC test preparation, including questions from computer science past papers.
(A) for loop
(B) do-while loop
(C) if/ else statement
(D) switch statement
The answer is: (D) switch statement
(A) for loop
(B) while loop
(C) do-while loop
(D) none of these
The answer is: (C) do-while loop
(A) address of a variable
(B) variable for storing addresses
(C) data type of an address variable
(D) constant value
The answer is: (B) variable for storing addresses
(A) four layers
(B) five layers
(C) six layers
(D) seven layers
The answer is: (A) four layers
(A) function
(B) operator
(C) variable
(D) label
The answer is: (D) label
(A) debugging
(B) encapsulation
(C) overloading
(D) polymorphism
The answer is: (B) encapsulation
(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