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
Friday, August 6, 2010
APTITUDE
Aptitude Test Question 1
Quantitative Aptitude
1) If x and y are the two digits f the number 653xy such that this number is divisible by 80, then x+y is equal to:
(i) 2
(ii) 3
(iii) 4
(iv) 6
2) The smallest number which when diminished by 3 is divisible by 21,28,36 and 45 is...
(i) 869
(ii) 859
(iii) 4320
(iv) 427
3) If 1.5x=0.04y then the value of (y-x)/(y+x) is
(i) 730/77
(ii) 73/77
(iii) 7.3/77
(iv) None
4) The average age of a class is 15.8 years. The average age of boys in the class is 16.4 years while that of girls is 15.4 years. What is the ratio of boys to girls in the class?
(i) 1:2
(ii) 3:4
(iii) 3:5
(iv) None of these
5) If one-seventh of a number exceeds its eleventh part by 100 then the number is…
(i) 770
(ii) 1100
(iii) 1825
(iv) 1925
ODD MAN OUT
1. S. I. unit of power is ‘watt’. It is equivalent to which of the following ?
(A) Kgms–2
(B) Kgm2s–2
(C) Kgm2s–3
(D) None of these
2. Who among the following cricketers scored the highest runs—
(A) Brien Lara
(B) Sanat Jaysurya
(C) Sachin Tendulkar
(D) Virendra Sehwag
3. Which is the oldest Veda?
(A) Samveda
(B) Rigveda
(C) Yajurveda
(D) Atharvaveda
4. Who was the founder of Pakistan?
(A) Mohammad Ali Jinna
(B) Liyaquat Ali Khan
(C) Gaffar Khan
(D) Benazir Bhutto
5. Who invented television?
(A) J. L. Baird
(B) Lawrance
(C) Frederick Trechithic
(D) King Gillette
Objective questions:
1. The effort required for modifying an operational program.
a) Flexibility
b) Maintainability
c) Portability
d) Reliability
2. Definition of Integrity
a) Extent to which a program satisfies its specs and fulfils the user’s mission and goals
b) Effort required for learning, operating, preparing input, interpreting output of a program
c) Effort required to couple one system with another
d) Extent to which access to software or data by unauthorized persons can be controlled
e) All of the above
3. “Accomplishing quality requires a thought revolution by management” was said by
a) Ishikawa
b) Deming
c) Harold S.Geneen
d) Dr. Barry W. Boehm
4. To achieve quality (i.e., defect free products and services), we require
a) Close cooperation between management and staff
b) Commitment
c) An environment in which quality can flourish
All of the above
5. PDCA cycle is developed by
a) Deming
b) Dr. Shewhart
c) Ishikawa
d) Harold S.Geneen
Subjective questions:
1. Verification is a
(a) Static Analysis
(b) Dynamic Analysis
(c) None of the above
2. Validation is a
(a) Static Analysis
(b) Dynamic Analysis
(c) None of the above
3. Testing performed by organizations other than the developer is
(a) Unit testing
(b) Integration testing
(c) System testing
(d) Acceptance testing
(e) Independent testing
4. “Validate that the functions meet stated requirements” is
(a) Unit testing
(b) Integration testing
(c) System testing
(d) Acceptance testing
(e) Independent testing
5. “Validate that all units work together according to the system design” is
(a) Unit testing
(b) Integration testing
(c) System testing
(d) Acceptance testing
(e) Independent testing
Quantitative Aptitude
1) If x and y are the two digits f the number 653xy such that this number is divisible by 80, then x+y is equal to:
(i) 2
(ii) 3
(iii) 4
(iv) 6
2) The smallest number which when diminished by 3 is divisible by 21,28,36 and 45 is...
(i) 869
(ii) 859
(iii) 4320
(iv) 427
3) If 1.5x=0.04y then the value of (y-x)/(y+x) is
(i) 730/77
(ii) 73/77
(iii) 7.3/77
(iv) None
4) The average age of a class is 15.8 years. The average age of boys in the class is 16.4 years while that of girls is 15.4 years. What is the ratio of boys to girls in the class?
(i) 1:2
(ii) 3:4
(iii) 3:5
(iv) None of these
5) If one-seventh of a number exceeds its eleventh part by 100 then the number is…
(i) 770
(ii) 1100
(iii) 1825
(iv) 1925
ODD MAN OUT
1. S. I. unit of power is ‘watt’. It is equivalent to which of the following ?
(A) Kgms–2
(B) Kgm2s–2
(C) Kgm2s–3
(D) None of these
2. Who among the following cricketers scored the highest runs—
(A) Brien Lara
(B) Sanat Jaysurya
(C) Sachin Tendulkar
(D) Virendra Sehwag
3. Which is the oldest Veda?
(A) Samveda
(B) Rigveda
(C) Yajurveda
(D) Atharvaveda
4. Who was the founder of Pakistan?
(A) Mohammad Ali Jinna
(B) Liyaquat Ali Khan
(C) Gaffar Khan
(D) Benazir Bhutto
5. Who invented television?
(A) J. L. Baird
(B) Lawrance
(C) Frederick Trechithic
(D) King Gillette
Objective questions:
1. The effort required for modifying an operational program.
a) Flexibility
b) Maintainability
c) Portability
d) Reliability
2. Definition of Integrity
a) Extent to which a program satisfies its specs and fulfils the user’s mission and goals
b) Effort required for learning, operating, preparing input, interpreting output of a program
c) Effort required to couple one system with another
d) Extent to which access to software or data by unauthorized persons can be controlled
e) All of the above
3. “Accomplishing quality requires a thought revolution by management” was said by
a) Ishikawa
b) Deming
c) Harold S.Geneen
d) Dr. Barry W. Boehm
4. To achieve quality (i.e., defect free products and services), we require
a) Close cooperation between management and staff
b) Commitment
c) An environment in which quality can flourish
All of the above
5. PDCA cycle is developed by
a) Deming
b) Dr. Shewhart
c) Ishikawa
d) Harold S.Geneen
Subjective questions:
1. Verification is a
(a) Static Analysis
(b) Dynamic Analysis
(c) None of the above
2. Validation is a
(a) Static Analysis
(b) Dynamic Analysis
(c) None of the above
3. Testing performed by organizations other than the developer is
(a) Unit testing
(b) Integration testing
(c) System testing
(d) Acceptance testing
(e) Independent testing
4. “Validate that the functions meet stated requirements” is
(a) Unit testing
(b) Integration testing
(c) System testing
(d) Acceptance testing
(e) Independent testing
5. “Validate that all units work together according to the system design” is
(a) Unit testing
(b) Integration testing
(c) System testing
(d) Acceptance testing
(e) Independent testing
Subscribe to:
Posts (Atom)