C++ Basic Programming MCQ Questions and Answers - 1

Question: 1

Which of the following creates object file from source code?

(A) Editor

(B) Header

(C) Linker

(D) Compiler

Ans: D


Question: 2

Which of the following functions will be executed first automatically, when a C++ program is executed?

(A) Call by reference

(B) Recursive

(C) Void

(D) Main

Ans: D


Question: 3

A program written in high level language is called as ____

(A) Object code

(B) Source code

(C) Executable code

(D) All of these

Ans: B

Source code

Question: 4

The multiple branching statements are ___ statement.

(A) If

(B) Switch

(C) For

(D) While

Ans: B


Question: 5

____ executes a set of instructions repeatedly for a certain number of times.

(A) If

(B) Loop

(C) Switch

(D) If-then

Ans: B


Related Questions