#1
| |||
| |||
![]() |
#3
| |||
| |||
![]()
Sikkim Manipal University is a funded, co-educational, public-private university in Gangtok, Sikkim, India. Established in 1995, the university is credited as being the first P3 education and health care initiative in the region. The Question Paper for the C Programming of the MCA of the Sikkim Manipal University is given below C Programming Part A Array is collection of A) Declared data B)Un declared data C)Homogeneous data D)Heterogeneous data Q. 2 class used to derive other class are A) Base class B)Derived class C)Abstract class D)Inherit class Q. 3 The class used to over ride the security provided by the class A)ios() B)friend() C)istream() D) ostream() Q. 4The first graphic library function to be executed is A) detectgraph() B) initgraph() C)window () D)None of these Q. 5Every call to a function is checked by the compiler against the A)Parameter list B)Variable description C)Function prototype D)Program prototype Q. 6How many instances of a class can be declared? A)None B)One C)Ten D)As many as require Q. 7A syntax error is signaled by the A)Compiler B)Linker C)Eidtor D)Run time system. Q. 8 The type of a function/procedure/module is determined by A)Its arguments B)The value returned C)Its name D)None of the above Q. 9Out of the following choose the correct statement. A)String constant can be split B)# include are written in multiple line C)/ / is used to indicate white spaces D)Escape sequences are deoted by\operator Q. 10Values can be input to variables in the program using the stream A)cin B)cout C)in D)out Part B Q. 1____ and____ operators can not be over loaded A):: : + B)*; :: C).:* D)-;. Q. 2The ___ files created by the block of memory 1. Binary files 2. ASCII files 3. Non- ACII files A)Only 1 B)Only 1 and 3 C)Only 2 and3 D)Only 1, 2 and3 Q. 3A student is given a grade from “A” to ‘F’ in a test. So averages can be calculated it is required to assign marks to these grades as follows, ‘A’ is 10, ‘B’ is 8, ‘C’ is 6, ‘D’ is 4, ‘E’ is 2 and ‘F’ is 0. In C++ which of the following are appropriate to do this? 1. Switch statement 2. Do statement 3. If statement 4. For statement A)1 B)1 and 2 C)1 and 4 D)3 Q. 4In C++ ___ denotes escape characters and ___ denotes single line comment A)// and / B)/ and */ C)/ and // D)* and /n Q. 5The output of the following code if input is 32767 #include void main() { int union; cout<<”Enter the integer”; cin>union; cout>> “The next number in the series is”<< **union; } A)23768 B)Run time error C)Compilation error D)32767 Part C Here is a function prototype and some possible function calls: int day_of_week(int year; int month =1; int day = 1); // Possible function calls; 1. cout << day_of __week() 2. cout << day_of __week(1995) 3. cout << day_of __week(1995, 10) 4. cout << day_of __week(1995, 10, 4) How many of the function calls are legal? A) 1 and 2 of them is legal B) 2 and 3 of them are legal C) 1, 2 and 3 of them are legal D) All of them are legal Q. 2 Out of following statements 1. Protected access specifier is accessible from derived class 2. Private access specifier is accessible from derived class 3. Protected access specifier is accessible form objects out side the class 4. Public access specifier is accessible from objects out side the class 5. Public access specifier is accessible from derived class 6. Protected access specifier is accessible from objects out side the class A) Only 1, 3, 4 and 5 are correct B) Only 1, 2, 3 and 5 are correct C) Only 3, 4, 5 and 6 are correct D) Only 1, 3, 5 and 6 are correct Q. 3 What would be output by the following segment of C++? int fact I; fact = 1 i = 2 while(i < =6) fact *= i; i++; cout << fact; A) 2, 6, 24, 120, 720 B) 1, 2, 6, 24, 120 C) 2, 2, 6, 24, 120 D) 1, 1, 1, 6, 24 Q. 4 The lines to be corrected in the syntax errors in the following C++ program are 1. include iostream.h 2. Main(); 3. { 4. Float x, y, z 5. cout < “Enter two numbers”; 6. cin >> a >> b 7. cout << The numbers in reverse order are 8. << b,a; 9. } A) 1, 2, 7 and 8 B) 2, 5 and 6 C) 2, 7 and 8 D) 4, 5,6 and 7 Q. 5 Carefully go through the following program 1. # include 2. class myclass{ 3. private 4. int num 5. public 6. myclass() {num = 0;} 7. myclass(int n) { num = n;} 8. –myclass(); 9. void getdata() 10. { cin>> num;} 11. void dispdata(); 12. { cout<< endl<<”NUMBER=”< 13. }; 14. void main(){ 15. myclass a1 16. myclass b1(5); 17. a1. dispdata();b1.dispdata(); 18. a1 getpdata(), b1.getdata(); 19. a1.dispdata(); b1.dispdata(“); 20. } In the above program which lines have errors? A)1, 6, 8, 15, 18, 20 B)3, 8, 11, 15, 18 C)2, 5, 10, 12, 16, 19 D)3, 10, 14, 17, 20 |
![]() |
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sikkim Manipal University Download | Kavita | Main Forum | 2 | March 21st, 2018 09:56 AM |
Sikkim Manipal University Of MBA | nilesh | Main Forum | 2 | February 16th, 2018 04:15 PM |
Sikkim Manipal University MSC MLT | nilesh | Main Forum | 2 | February 16th, 2018 03:01 PM |
Sikkim Manipal University LLM | nilesh | Main Forum | 2 | February 13th, 2018 03:42 PM |
Sikkim Manipal University Under UGC | nilesh | Main Forum | 2 | February 7th, 2018 12:27 PM |
Ebook of Sikkim Manipal University | nilesh | Main Forum | 2 | January 31st, 2018 03:59 PM |
Sikkim Manipal University Com | nilesh | Main Forum | 2 | January 31st, 2018 08:23 AM |
UG courses in Sikkim Manipal University | nilesh | Main Forum | 2 | January 24th, 2018 12:26 PM |
sikkim manipal university manipal contact number | nilesh | Main Forum | 2 | January 19th, 2018 11:52 AM |
sikkim manipal university ugc recognition | nilesh | Main Forum | 2 | January 16th, 2018 10:19 AM |
sikkim manipal university ug courses | suman | Main Forum | 2 | January 16th, 2018 10:16 AM |
ms tqm sikkim manipal university | nilesh | Main Forum | 2 | June 5th, 2017 02:55 PM |
sikkim manipal university syllabus for bba | nilesh | Main Forum | 2 | May 29th, 2017 09:05 AM |
course fees of sikkim manipal university | nilesh | Main Forum | 2 | May 24th, 2017 12:54 PM |
sikkim manipal university bsc nt | nilesh | Main Forum | 1 | May 3rd, 2017 04:10 PM |
Sikkim manipal university SMU results | Kavitharr | Main Forum | 1 | February 13th, 2013 03:13 PM |
Sikkim Manipal University for MBA Course | Prashanitta | Main Forum | 1 | February 4th, 2013 05:49 PM |
B.Sc Question Papers Sikkim Manipal University | vinod sharma | Main Forum | 1 | January 24th, 2013 10:44 AM |
Sikkim Manipal University UGC Dec | Excare | Main Forum | 1 | January 23rd, 2013 10:22 AM |
Sikkim Manipal University Location Sikkim | lovesaif | Main Forum | 1 | December 20th, 2012 03:14 PM |
|