Cms Set 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Group-A (MCQ) 1 x 16=16

1.) cout is a/an -


21.) Name the header file of C++ to which following functions belong.
a) Operator b)Function c) Object d) Macro
2.) Which of the following is known as insertion operator? i)toupper( ) ii)puts( ) iii)strcpy( ) iv)getch( ) + + +
a) ^ b)<< c) v d) >> 22.) Convert Infix notation to Postfix notation of the following expression:
3.) Which of the following mode declaration is used in C++ to open a file for input? i) A*(B+(C+D)*(E+F)/G)*H ii) A+B*C(D/E)/F 1+1
a) ios :: a b) in :: ios c) ios :: in d) ios :: file Or
4.) for is a .. controlled loop.
a) count b) exit c) entry d) None Write down the difference between Stack and Queue. + + +
5.) Which of the following is an Abstract data type? 23.)Define the following terms: 1+1
a) int b) double c) string d)class a) Dynamic Data structure. b) Pointers.
6.) In C++ variable cannot contain- Or
a) Blank space b) Decimal point c) Hyphen d)All What does Inheritance mean?
7.) In Object Oriented Programming, by wrapping up characteristics and behavior into
24.) a.) Write a Query that produces the SALESMAN table with the columns in 1+1
one unit, we achieve
a) Data Abstraction b) Data Encapsulation c) Data Handling d)All the following order : city, salesman_name, salesman_code, commition.
8.) A stack is a . Data structures
a) Dynamic b) Non-dynamic c) Linear d)None b.) Write a Query that will produce the salesman_code values of all sales
9.) In a Queue, deletion is done at- people with orders currently in the ORDERS table without any rates.
a) Rear b) Front c) Both (a) & (b) d)None 25.) What is the different b/w LAN & MAN? 1+1
10.)Transform infix operation (A+B*C-D)/E*F to in postfix form-
a)ABC*+D-EF*/ b) ABC+*D-EF*/ c) ABC*+D-EF/* d) None
11.)DML means- GROUP:-C (Long Answer Type Questions) 04x09=36
a)Data Manipulation Language b)Data Maintained Language
c) Data Multiple Language d) None
26.)What is Polymorphism ? Give an example to show its implementation in C++. 4
12.)Keys are an in the Database system.
a)Attributes b)Rows c)Conditions d)Variables Or
13.) How many gates would be required to implement the following Write a program in c++ to find the sum of following series using
Boolean expression after simplification? Constructor and Destructor member function:
XY+X(X+Z)+Y(X+Z)
S= 13+23+33+43+ ..+ n3
a) 1 b) 2 c) 4 d) 5
14.) Tautology means a Boolean expression that always result in- 27.) WAP in c++ which accepts the two matrix of the sum and display the sum
a)True b)False c)True or False d)None of the above of particular matrics. 4
15.) SLIP mean- 28.) Define a class Bank to represent the bank A/C of a customer with
a)Series Line Internet Protocol b) Serial Line Internet Protocol
the following specifications: 4
c) Serial Line Internet Point d) Serial Loop Internet Protocol
16.) The data transmission rate is expected in . Data members: -Name of the depositor
a)Base b)Baud c)Amplitude d)None -A/C Number
GROUP:-B (Short Answer Type Questions) 0209=18 -Balance Amount
17.) Define Encapsulation. 1+1 Member Functions: -to initialize data members
Or -to deposit money
Evaluate the following C++ expression where a,b,c are integers -for withdrawal of money.
and d,f are floating point numbers. The values are a=5,b=3 and 29.)Write a program in c++ to check whether the input number is
d=1.5 Prime or Not. 4
a) C=(a++)*d+a b) f=(a++)*b++ 30.) What do you understand by Constructor and Destructor functions used in classes?
18.) For a given variable a, initialized by 5 , what is the difference b/w statements How are these functions different from other functions? 4
a++ and ++a ? Explain briefly. 1+1 31.) Evaluate the following postfix expression using a stack and show the content of
Or Stack after execution of each operation:
What is Inline function? 50, 40, +, 18, 14, -, *. 4
19.) What is the difference between Object and Class? 1+1 Or
Or Write an Algorithm to insert an ITEM in a STACK implemented as an
Write a program in C++ to Generate the Sum from 1 to 100. array.
20.)Write down the difference between Call by value and
Call by reference. + + +
Or
Define Structure any two for the following- 1+1
i) rollno, name, marks ii) day, month, year iii) salesman_name, sales_made
32.) Write SQL commands for a) to d) on the basis of
table CLUB. 4
Table : CLUB
COACH- COACH Age SPORTS DATEOFAPP PAY SEX
ID NAME
1 KUKREJA 35 KARATE 27/03/96 1000 M
2 RAVINA 34 KARATE 20/01/98 1200 F
3 KARAN 34 SQUASH 19/02/98 12000 M
4 TARUN 33 BASKETBALL 01/01/98 1500 M
5 ZUBIN 36 SWIMMING 12/01/98 750 M
6 KETAKI 36 SWIMMING 24/02/98 800 F MODEL QUESTION PAPER
7 ANKITA 39 SQUASH 20/02/98 2200 F
SET-II
8 ZAREEN 37 KARATE 22/02/98 1100 F
CLASS:12th
9 KUSH 41 SWIMMING 13/02/98 900 M
10 SHAILYA 37 BASKETBALL 19/02/98 1700 M
Write SQL commands for (a) to (d). BY:SANTOSH VERMA SIR
a)To show all information about the swimming coaches in the CLUB.
b)To list the names of all coaches with their date of appointment(DATEOFAPP)
Mob.: 9430706774, 8757777836
for all descending order. For 2017 Examination.
c)To display a report , showing coach name, pay, age, and bonus (15% of pay)
for all the coaches.
d)To insert a new row in the CLUB table with the following data . Students Name Full Marks : 70
33.) Obtain a simplified form for the following Boolean Expression using K-Map. 4 College................................... Pass Marks : 23
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) Roll no. Batch Time. Time : 150 min.
34.) Knowledge Supplement Organisation has set up its new center at Mangalore for its office Date
and web based activities. It has 4 blocks of buildings as shown in the diagram below:
4
Center to center distances between various blocks
Alpha to Beta 50 m Number of Computers GENERAL INSTRUCTIONS :
Beta to Gamma 150 m Alpha 25
(i) All Questions are compulsory.
Gamma to Lambda 25 m Beta 150 Alpha Beta
(ii) Marks for each question are indicated against it.
Alpha to Lambda 170 m Gamma 125
(iii) Questions Number 1 to 16 are MCQ, Carrying 1 marks each.
Beta to Lambda 125 m Lambda 10
(iv) Questions 17 to 25 are short answer type questions carrying 2
Alpha to Gamma 90 m Gamma Lambda marks each.
(a) Suggest a cable layout of connections between the blocks.
(v) Questions 26 to 34 are long answer type questions carrying
(b) Suggest the most suitable place (i.e. block) to house the server of this organisation with
4 marks each.
a suitable reason.
(c) Suggest the placement of the following devices with justification
(i) Repeater (ii) Hub/Switch
(d) The organization is planning to link its front office situated in the city in a hilly
region where cable connection is not feasible, suggest an economic way to
connect it with reasonably high speed?
Next test examination : SET-III

You might also like