C++ Programming Coding Questions and Answers Pdf - 1

Question: 1

The scope resolution operator is

(A) a colon

(B) a semicolon

(C) two colons

(D) a comma

Ans: C

two colons

Question: 2

Object Oriented programming primarily focus on

(A) objects and the tasks that must be performed with those objects

(B) the physical orientation of objects within a program

(C) the step by step statements needed to solve a problem

(D) procedures to be performed

Ans: A

objects and the tasks that must be performed with those objects

Question: 3

The most common operation used in constructors is

(A) addition

(B) assignment

(C) polymorphism

(D) overloading

Ans: B

assignment

Question: 4

A blueprint for creating an object in C++ is called

(A) an instance

(B) a map

(C) a class

(D) a pattern

Ans: C

a class

Question: 5

Class hold _____

(A) data

(B) methods

(C) neither data nor methods

(D) both data and methods

Ans: D

both data and methods

Related Questions