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

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 » Reference Semantics and Their Implementation

Edit

Appeared in Year: 2015

MCQ▾

Question

Loop unrolling is a code optimization technique: (December)

Choices

Choice (4) Response

a.

That avoids tests at every iteration of the loop

b.

That improves performance by decreasing the number of instructions in a basic block.

c.

That exchanges inner loops with outer loops

d.

That reorders operations to allow multiple computations to happen in parallel.

Question number: 2

» 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: 3

» 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: 4

» Programming in C and C Plus Plus » O-O Programming Concepts » Inheritance, Polymorphism, Abstraction, Encapsulation and Overloading

Edit

Appeared in Year: 2015

Match List-Ⅰ List-Ⅱ▾

Question

Match the following with reference to object oriented modelling: (December)

List-Ⅰ List-Ⅱ

(A)

Polymorphism

(i)

Picking both operator and attributes with operations appropriate to model an object

(B)

Abstraction

(ii)

Create new classes from existing class

(C)

Inheritance

(iii)

Hiding implementation details of methods from users of objects

(D)

Encapsulation

(iv)

Using similar operations to do similar things

Choices

Choice (4) Response
  • (A)
  • (B)
  • (C)
  • (D)

a.

  • (iii)
  • (i)
  • (ii)
  • (iv)

b.

  • (i)
  • (iii)
  • (ii)
  • (iv)

c.

  • (i)
  • (iv)
  • (ii)
  • (iii)

d.

  • (iv)
  • (iii)
  • (ii)
  • (i)

Developed by: