You are on page 1of 2

Group-A (MCQ) 1 x 16=16 What will be the output of the following program?

2
1.) C language has been developed by .. #include<iostream.h>
a) Dennis Ritchie b)Ken Thompson #include<conio.h>
c) Martin Richard d)Bjarne Stroustrup #include<string.h>
2.) Do while loop checks the condition on- void main()
a) top b) bottom c) middle d)None {
3.) What should be the return type of a constructor? clrscr();
a) void b) It cannot have any return type char *s=SANTOSHVERMASIR;
c) int d) It can have any return type for( int i=strlen(s)-1; i>=0; i-- )
4.)A set of Arithmetic Operators are - {
a)+, -, *, /, % b)<, >, >=, <= c) &&, ||, ! d) None for( int j=0; j<=i; j++ )
5.) C++ programs are converted into machine language with the help cout<<s[j];
of - cout<<endl;
a) Interpreter b) Compiler c) Assembler d)All getch();
6.) While loop checks the condition on- } }
a) top b) bottom c) middle d)None 21.) Name the header file of C++ to which following functions belong.
7.) To calculate remainder in C++, we use.. i)log( ) ii)gets( ) iii)strcpy( ) iv)sin( )/cos( ) + + +
a) mod b) rem c) remainder d)% 22.) Distinguish between Prefix and Postfix notation expression giving
8.) Stack works as .. Examples of each. 1+1
a) FIFO b) LIFO c) Both a) & b) d)None Or
9.) Deleting from an empty list is known as- What does Inheritance mean?
a) Underflow b) Overflow c) Both (a) & (b) d)None 23.)Define the following terms: 1+1
10.)The complexity of Bubble sort algorithm is- a) Dynamic Data structure. b) Pointers.
a)O (n) b) O(log n) c) O (n2) d) O (n log n) Or
11.) The duplication of data is known as- Write down the difference between Stack and Queue. + + +
a)Data redundancy b)Domain c)Attribute d)None 24.) What is a relation ? What is the difference between a Tupple and an
12.) The term attribute refers to a .. of a table. Attribute ? 1+1
a)Attribute b)Tuple c)Field d) Instance Or
13.) Sum of all literals (with or without bar) within the logic system is known as : Define the following terms:
a)Maxterm b) Minterm c)Both(a)&(b) d)None a) Key b)Candidate Key
14.) The operator that returns 1 when both the inputs are false is: 25.) Write down the two advantages and disadvantages of the following guided
a)AND b)OR c)NAND d)None media in network : 1/2+1/2+1/2+1/2
15.) Which topology is best suited for network that does not have a Hub? a)Coaxial Cable b)Optical Fiber Cable Or a)Twisted Pair Cable b)Optical Fiber Cable
a)Bus b)Star c)Ring d)Mesh
GROUP:-C (Long Answer Type Questions) 0308=24 & 04x03=12
16.) Home page is in form of ..
a)Text b)Hypertext c)Hyperlink d)All the above
26.)What is Polymorphism ? Give an example to show its implementation in C++. 3
Or
GROUP:-B (Short Answer Type Questions) 0209=18 Write a program in c++ to find the sum of following series using
17.) Why does a pointer variable differ from a simple variable? 1+1 Constructor and Destructor member function:
Or S= 13+23+33+43+ ..+ n3 3
Evaluate the following C++ expression where a,b,c are integers 27.) Find the output of the following program: 3
and d,f are floating point numbers. The values are a=5,b=3 and #include <iostream.h>
d=1.5 void main()
a) C=(a++)*d+a b) f=(a++)*b++ {
18.) Write the basic features of OOPs. 1+1 int v1=5, v2=10;
Or for (int x=1; x<=2; x++)
What is Inline function? {
19.) What is the difference between Structure and Class? + + + cout<<++v1<< \t<<v2--<<endl;
Or cout<< --v2<< \t<<v1++<<endl;
What will be the sizes of the following constants: } }
\a, A\a, JAC-2017\a ? 28.)Define a class STOCK in C++ with the following :
20.)Write down the difference between Call by value and Private Members : 3
Call by reference. + + + ICode of type integer (Item Code)
Or Item of type string (Item Name)
Price of type float (Price of each item)
Qty of type integer (Quantity of stock)
Discount of type float (Discount percentage on the item)
A member function FindDisc( ) to calculate discount as per the
Following rule :

If Qty<=50 Discount is 0
If 50<Qty<=100 Discount is 5
If Qty>100 Discount is 10
Public Members :
A function buy( ) to allow user to enter values for ICode, Item, Price,
Qty and call function FindDisc( ) to calculate the Discount.
A function showAll( ) to allow user to view the content of all the data members.
29.)Write a program in c++ to check whether the input number is MODEL QUESTION PAPER
Prime or Not. 3
30.) WAP in c++ which accepts the two matrix of the sum and display the sum SET-I
of particular matrics. 3 CLASS:12th
31.) Evaluate the following postfix expression using a stack and show the content of
Stack after execution of each operation:
500, 20, 30, +, 10, *, +
32.) Convert Infix notation to Postfix notation of the following expression:
3 BY:SANTOSH VERMA SIR
i) A*(B+(C+D)*(E+F)/G)*H ii) A+B*C(D/E)/F + Mob.: 9430706774, 8757777836
33.) Write an Algorithm to insert an ITEM in a QUEUE implemented as an
array. 3 For 2017 Examination.
34.) Given the Student relation : + + + + + + +
Table : Student Students Name Full Marks : 70
No. Name Age Department Dateofadm Fee Sex College................................... Pass Marks : 23
1 Pankaj 24 Computer 10/01/97 120 M Roll no. Batch Time. Time : 150 min.
2 Shalini 21 History 24/03/98 200 F Date
3 Sanjay 22 Hindi 12/12/96 300 M
4 Sudha 25 History 01/07/99 400 F
5 Rakesh 22 Hindi 05/09/97 250 M GENERAL INSTRUCTIONS :
6 Shakeel 30 History 27/06/98 300 M (i) All Questions are compulsory.
7 Surya 34 Computer 25/02/97 210 M (ii) Marks for each question are indicated against it.
8 Shikha 23 Hindi 31/07/97 200 F (iii) Questions Number 1 to 16 are MCQ, Carrying 1 marks each.
(iv) Questions 17 to 25 are short answer type questions carrying 2
Write SQL commands for (a) to (d) and write output for (e). marks each.
a)To show all information about the students of History department. (v) Questions 26 to 33 & 34 to 36 are long answer type questions carrying
b)To list the names of female students who are in Hindi department. 3 marks & 4 marks each respectively.
c)To display students Name, Fee, Age for male Students only.
d)To count the number of student with Age<23. test exam, final exam treat |
e)Give the output of following SQL statements : solve focus ,
i)SELECT COUNT (distinct department) FROM Student; idea final exam
ii)SELECT MAX (Age) FROM Student;
question paper solve
/
questions

iii)SELECT AVG (Fee) FROM Student WHERE Dateofadm < {01/01/98};
iv) SELECT SUM (Fee) FROM Student WHERE Dateofadm < {01/01/98}; 12
35.) Obtain a simplified form for the following Boolean Expression using K-Map. result |
F(A,B,C,D) = (0,1,2,4,5,8,9,10,11) Or F(A,B,C,D) = (0,1,2,5,7,8,10,12,13,14,15)
36.) What is Networking ? What are Components required for Networking ?
students question
Next test examination : SET-II question solve |

You might also like