0% found this document useful (0 votes)
10 views3 pages

Cit105 2021

This document is an exam paper for a Computer Programming C/C++ course. It contains multiple choice and long/short answer questions testing concepts like loops, functions, classes, inheritance and more. Students are instructed to attempt all short answer questions and select 4 long answer questions.

Uploaded by

saimnaseemi111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Cit105 2021

This document is an exam paper for a Computer Programming C/C++ course. It contains multiple choice and long/short answer questions testing concepts like loops, functions, classes, inheritance and more. Students are instructed to attempt all short answer questions and select 4 long answer questions.

Uploaded by

saimnaseemi111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CIT-103

Roll No. ………………………………….

CERTIFICATE IN INFORMATION TECHNOLOGY (Distance Mode)


Annual Examination: 2021
Computer Programming C,C++
Paper Code: CIT-105
Time: 3 Hours Maximum Marks: 70
(Write your Roll No. on the top immediately on receipt of this question paper)
Instructions
1. Section-A is compulsory, and each question carries 1 mark.
2. Attempt any 4 questions from Section-B, each question carries 5 marks.
3. Attempt any 4 questions from Section-C, each question carries 10 marks.

SECTION-A
1. Write Correct option in your Answer sheet with question number. 10
i) Shortcut key to run a C/C++ program
a) CTRL + F2
b) CTRL + F10
c) CTRL + F9
d) CTRL + R
ii) Which one of the following is not binary operator?

a) +
b) %
c) ++
d) *

iii) Minimum numbers of classes required in Multilevel inheritance is

a) 1
b) 2
c) 3
d) 8

iv) The name of constructor is same as the name of


a) Class
b) Object
c) Any variable
d) None of these
v) If x=100, then output of x++ is
a) 100
b) 101
c) 0
d) 1
vi) The C language was designed in …… by Denis Ritchie
CIT-103
a) 1974
b) 1972
c) 1971
d) 1992

vii) A single statement in C/C++ is terminated by

a) ; (Semi-colon)
b) . (Full Stop)
c) ? (Question Mark)
d) , (Coma)

viii) Function that is used to clear screen in C/C++


a) clear()
b) clean()
c) clrscr()
d) cls()
ix) A variable that contains the address of another variable or literal is called
a) Pointer
b) Identifier
c) Class
d) Object
x) In C/C++, Single line comments begins with
a) /*
b) //
c) #
d) !

SECTION-B (Short-Answer type Questions)


2. What are the differences Top-Down Programming and Bottom-up 5
Programming?
3. Draw a flow chart to find the greatest of three numbers. 5
4. Define inline function and function overloading 5
5. Briefly explain basic concepts of Object-Oriented Programming. 5
6. What is the difference between constructor and destructor? 5
7. What is the use of strcpy(), strlen(), islower(), isdigit() and strcmp() ? 5
8. Write a program in C/C++ to print first 10 natural numbers by using for loop. 5
SECTION-C (Long Answer type Questions)
9. What do you mean by Inheritance? Explain following types of inheritance with 10
example
a) Single Level Inheritance
b) Multiple Inheritance
CIT-103
10. Write a C/C++ program to print the following pattern 10
1
1 2 3
1 2 3 4
1 2 3 4 5
11. What are the different categories of errors? Explain in detail. 10
12. State the differences between the executions of while and do..while loops. 10
Support your answer with suitable example.
13. What is Function Overloading? Write a program to demonstrate the concept of 10
function overloading.
14. Explain the following with example 10
a) Friend Function
b) Call-by reference
15. Create a class Student with data members RollNo, StudentName, Course, Age 10
and members function getData() to take input from user and showData() to
display user’s information. Create an object of class Student in main() function
and call member function using this object.

You might also like