Computer Science MCQs Quiz Test Questions with Answers

Basic computer science multiple choice questions (MCQs) quiz with answers for computer, IT test preparation. Basic knowledge about computer in question and answer format. Link to computer science MCQs PDF is given below. Answers to these computer science questions are given after the 5th computer MCQ.

Computer Science MCQs

Q. A computer program that translates one statement of program instructions at a time into machine language is called
(B) Interpreter
(C) Compiler
(D) Simulator

The answer is: (B) Interpreter ☑

Q. NTFS stands for?
(A) New Trend File Saving
(B) Network File Saving
(C) New Technology File System
(D) None Of These

The answer is: (C) New Technology File System ☑

Q. Which variable type can have only two possible values?
(A) integer
(B) string
(C) double
(D) bool

The answer is: (D) bool ☑

Q. In computer science and information technology (IT), DNS is an abbreviation of
(A) Direct Name System
(B) Domain Name System
(C) Direct Name Software
(D) Domain Name Software

The answer is: (B) Domain Name System ☑

Q. In C++, the library function exit() causes an exit from the
(A) statement
(B) loop in which it occurs
(C) function in which it occurs
(D) program in which it occurs

The answer is: (D) program in which it occurs ☑

Q. In C++, a function name must be followed by
(A) braces
(B) parentheses
(C) statement
(D) variable name

The answer is: (B) parentheses ☑

Q. Consider the main body of a program,
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 ☑

Next Questions