CMS Jac (F) Set A
CMS Jac (F) Set A
TEST SERIES
2024-25
Question Set
COMPUTER SCIENCE
Class – 12th (JAC)
Time allowed : 2 hours 30 Min. FM : 70
General Instructions
Candidates should answer in their own words as much as possible.
The question paper comprises of four groups A, B, C and D. You have to attempt all the group.
This question paper consists of 49 questions.
Section A has 25 questions of 1 marks each. Sectin B has 9 questions of 2 marks each. Section C has 9
questions of 3 marks each. Section D has 6 question of 5 marks each.
In sections A all the questions are compulsory,
In section B only 7 question, in section C only 6 question, in section D only 4 question have to attempt.
Neat and properly labelled diagram should be drawn where needed.
Use of calculator is not permitted.
Group A 1 × 25 = 25
Multiple choice question
1. Void data type represents-
(a) int data (b) float data (c) empty data (d) None of these
2. Void main( ) is-
(a) Operator (b) Object (c) function (d) Keyword
3. Which of the following concepts means wrapping up of data and function together ?
(a) inheritance (b) Encapsulation (c) construction (d) None of these
4. ‘A’ is an example of
(a) integer literal (b) string literal (c) character literal (d) Boolean literal
5. Which of the following approaches is adapted by object oriented programming language?
(a) Bottom-up (b) Top-down (c)Left-right (d) None of these
6. Parameterized constructor is
(a) A constructor having some argument (b) A constructor with no argument
(c) A function with ~(tilde) sign (d) None of these
7. ……. is the Boolean expression of AND gate-
(a) X=A-B (b) X=AB (c) X=A+B (d) None of these
8. In C++ cin, cout are predefined stream
(a) operator (b) function (c) object (d) None of these
9. While loop is an………………controlled loop?
(a) exit (b) entry (c) counting (d) None of these
10. First network was
(a) ARPA net (b) MSF net (c) Internet (d) None of these
11. Arranging elements of an array in specific order is called-
(a) array (b) pointers (c) sorting (d) records
12. Which network device is used to connect two networks that use different protocols?
(a) Modem (b) Gateway (c) Switch (d) Repeater
13. Which one of the following key is used to identify the unique value-
(a) Foreign key (b) Alternate key (c) Primary key (d) None of these
14. strrev() is an example of-
(a) Built in function (b) user defined function
(c) friend function (d) none of these
15. Number of tuples in a relation is called-
(a) Degree (b) Cardinality (c) Attribute (d) None of these
16. Which header file belongs to the function gets()-
(a) math.h (b) ctype.h (c) string.h (d) stdio.h
17. Which of the following is a database element?
(a) Data (b) Constraints and Schema (c) Relationships (d) All the these
18. Web Browser is/are –
(a) Google Chrome (b) Internet Explorer (c) Firefox (d) All the these
19. A variable that holds memory address is called-
(a) Array (b) Class (c) Function (d) Pointer
20. Which of the following is not a DDL command in SQL?
(a) Drop (b) Create (c) Update (d) Alter
21. Queue is work as-
(a) FIFO (b) LIFO (c) Both a and b (d) None of these
22. Which of the following is an insertion operator-
(a) ^ (b) v (c) << (d) >>
23. An insertion in a stack is called-
(a) POP (b) PUSH (c) LINK (d) None of these
24. The pattern of interconnection of nodes in a network is called-
(a) protocol (b) topology (c) modulation (d) None of these
25. A Boolean function that always results in false is called-
(a) fallacy (b) tautology (c) stack (d) None of these
Group B 1× 7 = 7
Very short answer question
(Solve any seven questions)
26. What are the purposes of following built-in functions-
(a) Strcpy() (b) toupper()
27. What data types would you used ?
(a) Name of the student (b) The number of students in a class.
28. What will be the output of the following code segment?
for(i=1;i<=20;i=i+3)
{
Cout<<i<<”\n”;
}
29. Define the types of network.
30. What is array?
31. Define constructor overloading.
32. What will be the size of following constant-
(a) ‘Bb’ (b) “Jac-2024”
33. Evaluate the following expression, if p=5 and a=4
F= --a*p++ + 13/a
34. Find the Dual of the following function-
F= X Y + X̅ Y+1
Group C 3× 6 = 18
Short answer type question
(Solve any six questions)
35. Define database languages. Explain its types also.
36. Define the term Router, Hub and HTML.
37. Define the keys-
(a) Primary key (b) Super Key (c) Alternate Key
38. What is linked list? Write an algorithm to count the number of nodes in linked list.
39. Define transmission media? Explain its types also.
40. What is Pointer. Give a suitable example.
41. WAP in C++ for swapping of two numbers by using call by value method.
42. WAP in C++ to input three number, find and display its sum by using constructor.
43. Evaluate the following into postfix expression-
[A*B+(C-D)/(E*F)]
Group D 5× 4 = 20
Long answer type question
(Solve any Four question)
44. (i) Draw the logic circuit and truth table of the following function-
F= A B + A̅ B̅ + B C
(ii) Define Distributive law and prove also.
45. What is Queue? Write an algorithm to insert and delete the element from the queue.
46. (i) What is searching?
(ii) Write the algorithm for Binary search.
47. Simplify the expression-
F(A,B,C,D)= ∑(0,2,5,7,8,10,13,15)
48. Define a class student with the following specifications:
Private members:
Roll_no Integer
Name 20 characters
Class 8 characters
Marks[4] Integer
Percentage Float
Public members:
ReadData()- a function that reads Roll_no, name, class and marks of 4 subjects of a student.
Calculate()- a function that calculates overall percentage of marks.
Display()- a function that prints the contents of all data members.
[Note: Write a complete program]
49. Write the SQL commands on the basis of Hospital table-
S.No. Name Age Dept. DOA Charge Sex
1 Krish 45 Cardiology 13-02-22 450 M
2 Abhay 42 Orthopaedic 17-07-23 600 M
3 Karan 35 Cardiology 22-05-21 550 M
4 Seema 50 Surgery 18-04-22 750 F
5 Aditya 37 Orthopaedic 11-03-21 500 M
6 Deepa 54 Medicine 10-09-24 650 F
2nd FLOOR, ABOVE TVS SHOWROOM, DANGRA TOLI, PURULIA ROAD, RANCHI (JH)
9631072713