Sikkim-Manipal University of Health Medical and Technological Sciences (SMUHMTS) 2008-2nd Sem M.C.A Model for of Manipal University. - Question Paper
Monday, 10 June 2013 11:45Web
Page 2 of 5
20. The array char name [10] can consist of a maximum of _____ characters.
a. 9
b. 10
c. 11
d. none of the above
21. What variables can a method MF3 access?
a. A2,B2.C2
b. C2,C1
c. A2,,B2,B1,C2,,C1
d. A1,A2,B1,B2.C1,C2
22. tellp() function
a. Returns Current put position in a stream
b. Returns Current get position in the stream
c. Sets position of put pointer
d. Sets position of get pointer
23. read() and write() function work in
a. Binary mode
b. Ascii mode
c. Text mode
d. All the above
24. In C++ streams are of
a. Three kind
b. Two kind
c. Only 1 kind
d. None of the above
25. The overloaded extraction Operator >> is a member of
a. fstream class
b. istream class
c. ostream class
d. none of the above
26. fstream is used for :
a. reading only
b. writing only
c. both a and b
d. none of the above
27. setprecision(n)
a. sets the display of floating point number at precision n
b. sets output or input width to n
c. both of them
d. none of them
28. strcmp belongs to
a. string.h
b. stdio.h
c. iostream.h
d. none of the above
actual / False
29. A function named main () is always the 1st 1 executed when a program is executed. actual
30. In nested loops, the inner loop loop must terminate before the outer loop terminate actual
31. Classes are templates that give definition to the objects of similar kind. actual
32. Ctrl +F8 are the alternate of debug->Toggle Breakpoint. True
33. Ctrl +F9 are the alternate of run choice from Run menu. True
34. If loop is to be executed at lowest once, then the while statement should be used. False
35. Functions enable to reused code. True
36. Structures group data of similar kind. False
37. Member data of the structure are accessed by. Operator. True
38. Destructors can be overloaded. False
39. Left operand calls the operator in case of binary operator. actual
40. A pointer to the base class can point to the objects of a derived class. actual
(2-MARKS questions)
41. The C++ programming language was developed at ____________ in the early 1980s by _________ (AT & T Bell Laboratories, Bjarne Stroustrup)
42. _______________ Is a list of instructions where every statement tells the computes to do something (Procedural Language)
43. The wrapping up of ________ & _________ into single unit is known as Encapsulation (Date, Function)
Earning: Approval pending. |