How To Exam?

a knowledge trading engine...


DOEACC Society 2007 DOEACC A Level A10.1-R3 Introduction to Object Oriented Programming & C++ - Question Paper

Thursday, 13 June 2013 08:10Web

A10.1-R3: INTRODUCTION TO OBJECT ORIENTED PROGRAMMING AND C++
NOTE:
1. There are 2 PARTS in this Module/Paper. PART 1 contains 4 ques.
and PART 2 contains 5 ques..
2. PART 1 is to be answered in the TEAR-OFF ans SHEET only, attached to
the ques. paper, as per the instructions contained therein. PART 1 is NOT to
be answered in the ans book.
3. Maximum time allotted for PART 1 is 1 HOUR. ans book for PART TWO
will be supplied at the table when the ans sheet for PART 1 is returned.
However, candidates, who complete PART 1 earlier than 1 hour, can collect the
ans book for PART 2 immediately after handing over the ans sheet for
PART ONE.
TOTAL TIME: three HOURS TOTAL MARKS: 100
(PART 1 – 40; PART 2 – 60)
PART ONE
(Answer all the questions)
1. every ques. beneath provide a multiple option of answers. select the most
improper 1 and enter in the “tear-off” ans sheet attached to the ques.
paper, subsequent instructions therein. (1 x 10)
1.1 The range of values for the long data kind on a 16-bit machine is
A) -231 to 231-1
B) -264 to 264
C) -263 to 263-1
D) -216 to 216-1
1.2 For representing polynomial in memory, using linked list, every node must have subsequent
number of fields
A) 2
B) 3
C) 1
D) None of the above
1.3 Inheritance is a way to
A) Create general classes from more specific classes
B) Create specific classes from more general classes
C) Improve data hiding and encapsulation
D) None of the above
1.4 Consider the subsequent code:
if(number>0)
cout<<”Number is Positive”;
else
cout<<”Number is Negative”;
What will be the output if number is equal to zero?
A) Number is Positive
B) Number is Negative
A10.1-R3 Page one of five January, 2007
C) Both A) & B)
D) None of the above
A10.1-R3 Page two of five January, 2007
1.5 Which of the subsequent can’t be passed to a function
A) Reference variable
B) Array
C) Class objects
D) Header files
1.6 Which of the subsequent is legal declaration of a reference?
A) int &a=10;
B) int &a=m;
C) int *a=&15;
D) int &a=m++;
1.7 If p and q are 2 pointers of kind int and m is an int kind variable, which of the subsequent is
legal?
A) p-q
B) p*q
C) p/q
D) m%n
1.8 Consider the subsequent code definition:
class Person
{}
;
class Student: protected Person
{}
;
What happens when we try to compile this class?
A) Will not compile class body of Person is not described
B) Will not compile because of learner is not described
C) Will compile successfully
D) Will not compile because class Person is not public inherited.



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER DOEACC Society 2007 DOEACC A Level A10.1-R3 Introduction to Object Oriented Programming & C++ - Question Paper