BC0037 OBJECT Oriented Programming using C++ PAPER 2

Embed Size (px)

Citation preview

BC0037OBJECT Oriented Programming using C++(1-MARK questions) a. Real constant can be represented in 2 forms: a. b. c. d. Decimal form, exponential form Integer, decimal form Exponential form , integer Decimal form, real form

b. Integer values lie between e. 30657,31658 f. 32768, 32767 g. 31757,31758 h. 32568,32768 c. The % operator gives the i. Quotient j. Remainder k. None l. Both d. The output of the following a>b? a : b+10; If A=10, b=5 m. 10 n. 15 o. 5 p. none of the above e. A character variable can at ime store q. 1 character r. 8 character s. 254 character t. none of the above f. If a is an integer variable , a=5/2; will return a value u. 2.5 v. 3 w. 2 x. 0 g. The expression , a=7/22*(3.14+2)*3/5; evaluates to y. 8.28 z. 6.288

aa. 3.14 bb. 0 h. The expression x=4+2%-8 evaluates to cc. 6 dd. 6 ee. 4 ff. none of the above i. A class is a ____________ for number of objects. gg. Function hh. Variable ii. Template jj. Data j. The multi-way branching can be achieved by kk. If-then-else ll. Switch case mm. For loop nn. Assignment operator k. Switch () is a oo. Iterative statement pp. Decision statement qq. Control statement rr. None of the above l. The goto statement ss. breaks the normal execution tt. continue the sequential execution uu. all the above vv. none of the above m. The for & while loops are ww. entry loop xx. exit loop yy. continue loop zz. none of the above n. The continue statement causes aaa. Loop to be continue , without executing rest of the statementss in the loop. bbb. Loop to be continue, with executing all the statements of the loop ccc. Breaks the loop and continue executing the rest of the program statements

ddd.

None of the above

o. For frequently used variables, efficiency gains can be obtained by keeping the variables as eee. static variable fff. register variable ggg. extern variables hhh. global variables p. The following code states that extern int size; iii. it is a variable declaration jjj. it is a variable definition kkk. both a and b lll. none of the above q. Out of which is not a keyword in C++ mmm. array nnn. if ooo. else ppp. extern r. When we pass array to a function that is passed as : qqq. Pass by value rrr. Pass by reference sss. Pass by constant ttt. Array cant be passed by function s. Which of the following set of operators cannot be overloaded uuu. Sizeof, ::, > xxx.