Friday, August 6, 2010

DEBUGGING

Debugging
Question Paper 1 Mark : 20



1. Which of the following is allowed for the value of subscript variable?
a) Positive Integer b) Negative Integer
c) Both A and B d) Float

2. The inserting of the code of a called function at the point where the function gets called is achieved by using
a) Inline functions b) virtual functions
c) Both A and B d) None of the Above

3. Class that reads and writes to an array in memory is
a) ostream b) ifstream c) strstream d)None of the Above

4. The class that in C++ for file input is
a) ifstream b) ofstream c) Both A and B
d) The class that in C++ for file input is

5. Which of the following exists in C++?
a) virtual destructor b) virtual constructor
c) Both A and B d) None of the Above

6.A variable modified by multiple threads should be declared as
a) global b) static c) volatile d) None of the Above

7.Pure virtual function in C++ is one in which the virtual function
a) has no body b) has at least one member
c) which cannot be inherited d) None of the Above

8.The array exforsys[10] can be declared using pointers as
a) % exforsys[] b) & exforsys[] c) * exforsys[] d) @ exforsys[]

9.The isolation of data from direct access by a C+ program is called as
a) Data Hiding b) Data Isolation
c) Data Encapsulation d) None of the Above

10.The goto statement mentioned as goto exforsys;would have the corresponding notation of label as

a)exforsys: b) exforsys; c) exforsys! d) exforsys#

11.Division by 0 gives
a) Compiler error b) Runtime error
c) Assembler error d) None of the Above

12.How is a integer register variable named as exforsys declared?

a) int register exforsys; b) int exforsys;
c) register int exforsys; d) None of the Above

13.Which of the following denote storage classes in C program?

a) automatic variables b) static variables
c) external variables d) All the Above

14.Which of the following about subscript variable in FALSE?

a) The subscript variable must be an integer
b) The subscript variable can be negative
c) Both A and B d) None of the Above

15.Which of the following is used to call a function named as exforsys?

A) call exforsys() b) include exforsys() c) exforsys() d) None of the Above

16.Which takes the first precedence in evaluation among the following operators?

a) || b) ! c) && d) All the Above has equal precedence

17.Which of the following variables retain the value throughout the lifetime of program?

a) auto b) register c) static d) All the Above

18.Which of the following are used in dynamic memory allocation?
a) malloc b) calloc c) realloc d) All the Above

19.What is the notation that appears after the case statement?
a) ? b) ; c) : d) $

20 . Value is given to a variable using
a) conditional statement b) assignment statement
c) looping statement d) None of the Above

No comments:

Post a Comment