Home > Download > SMU - Question Paper
> MCA > MC0061
Computer Programming ―C Language
This is the collection of
Sikkim Manipal University (SMU) question and answers for Computer Programming ―C Language. It will help
to prepare your examination. All question paper are
classified as per semester, subject code and question type of Part A, Part B and Part C with
multiple
choice options
as same as actual examination. SMU question papers includes
year 2024, 2023, 2022 Sem I, II, III, IV, V, VI examinations
of all subjects.
SMU question test set of old,
last and previous year are updated
regularly and it is absolutely free to use. Question paper includes Visual basic 6, VB.Net, C#, ASP.Net,
Web, Oracle, Database, SQL, Software Engineering, C, C++, OOPS, MBA, MCA, BSC IT I have requested
you kindly send me the question paper of Computer Programming ―C Language, SMU - Master of Computer Application.
Course Name
MCA (Master of Computer Application)
Subject Code MC0061 (Computer Programming ―C Language)
Get Questions
PART - A
PART - B
PART - C
Subject : Computer Programming ―C Language
MC0061 : PART - C
Q. 1 | 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 | | | |
Click here to get
Computer Programming ―C Language (MC0061)
New Question
Home > Download > SMU - Question Paper
> MCA > MC0061