Programming in C and C Plus Plus-C Plus Plus Programming (NTA-NET (Based on NTA-UGC) Computer Science (Paper-II)): Questions 1 - 5 of 60

Access detailed explanations (illustrated with images and videos) to 2012 questions. Access all new questions we will add tracking exam-pattern and syllabus changes. Subscription can be renewed yearly absolutely FREE! View Sample Explanation or View Features.

Rs. 550.00 or

How to register?

Question number: 1

» Programming in C and C Plus Plus » C Plus Plus Programming » Inheritance and Its Types

Edit

Appeared in Year: 2015

MCQ▾

Question

Consider the following two statements:

(a) A publicly derived class is a subtype of its base class.

(b) Inheritance provides for code reuse.

Which of the following statements is correct? (December)

Choices

Choice (4) Response

a.

The statements (1) and (2) are correct

b.

Statement (1) is correct and (2) is incorrect

c.

Neither of the statements (1) and (2) are correct

d.

Statement (1) is incorrect and (2) is correct

Question number: 2

» Programming in C and C Plus Plus » C Plus Plus Programming » Exception Handling

Edit

Appeared in Year: 2015

MCQ▾

Question

In C++, which system-provided function is called when no handler is provided to deal with an exception? (December)

Choices

Choice (4) Response

a.

Kill ()

b.

Terminate ()

c.

Unexpected ()

d.

Abort ()

Question number: 3

» Programming in C and C Plus Plus » C Plus Plus Programming » Constructors and Destructors

Edit

Appeared in Year: 2016

MCQ▾

Question

Implicit return type of a class constructor is:

Choices

Choice (4) Response

a.

A destructor not of class type

b.

Class type itself

c.

A destructor of class type

d.

Not of class type itself

Question number: 4

» Programming in C and C Plus Plus » C Plus Plus Programming » Operators

Edit

Appeared in Year: 2016

MCQ▾

Question

Given

What is the output of the following expression in C language?

Choices

Choice (4) Response

a.

1

b.

0

c.

-1

d.

2

Question number: 5

» Programming in C and C Plus Plus » C Plus Plus Programming » Elements of C Plus Plus-Tokens, Identifiers

Edit

Appeared in Year: 2010

MCQ▾

Question

The statement print f will print (June Paper II)

Choices

Choice (4) Response

a.

1

b.

10

c.

0

d.

12

Developed by: