0% found this document useful (0 votes)
95 views8 pages

Cs First PT PDF

This document contains a computer science exam for class 12 with 32 multiple choice questions testing knowledge of SQL, Python, networking, and object-oriented programming concepts. It provides the questions, possible answer options, and asks students to attempt 20 single mark questions and 5 questions worth 3 marks each, as well as 3 questions worth 5 marks each.

Uploaded by

PawanKumar
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)
95 views8 pages

Cs First PT PDF

This document contains a computer science exam for class 12 with 32 multiple choice questions testing knowledge of SQL, Python, networking, and object-oriented programming concepts. It provides the questions, possible answer options, and asks students to attempt 20 single mark questions and 5 questions worth 3 marks each, as well as 3 questions worth 5 marks each.

Uploaded by

PawanKumar
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/ 8

LAKES INTERNATIONAL SCHOOL

COMMPUTER SCIENCE (XII)


FIRST TERM EXAMINATION JULY – 2020

CLASS-XII

TIME: 1 ½ Hr M.M.: 50

NOTE-Attempt Any 20 question each question carry 1 marks. 1X20

Q1.What is the full form of SQL?

A. Structured Query Language

B. Structured Query List

C. Simple Query Language

D. None of these

Q2.Which operator performs pattern matching?

A. BETWEEN operator

B. LIKE operator

C. EXISTS operator

D. None of these

Q3.Select the right statement to insert values to the student table.

A. INSERT student VALUES (

B. INSERT VALUES (

C. INSERT INTO student VALUES (

D. INSERT VALUES INTO student (

Q4.............. joins two or more tables based on a specified column value not equaling a specified column value in
another table.

A. EQUIJOIN

B. NON-EQUIJOIN

C. OUTER JOIN

D. NATURAL JOIN

Q5 . Which of the following is an invalid statement?

a) abc = 1,000,000

b) a b c = 1000 2000 3000

c) a,b,c = 1000, 2000, 3000

d) a_b_c = 1,000,000
Q6. _____ represents an entity in the real world with its identity and behaviour.

a) A method

b) An object

c) A class

d) An operator

Q7. An on-line commercial site such as Amazon.com is an example of a(n) ________ .

A. single-user database application

B. multiuser database application

C. e-commerce database application

D. data mining database application

Q8. Which SQL function is used to count the number of rows in a SQL query?
a) COUNT()
b) NUMBER()
c) SUM()
d) COUNT(*)
Q9. If you don’t specify ASC or DESC after a SQL ORDER BY clause, the following is used by default
______________
a) ASC
b) DESC
c) There is no default value
d) None of the mentioned
Q10. Student (ID, name, dept name, tot_cred)
In this query which attributes form the primary key?
a) Name
b) Dept
c) Tot_cred
d) ID
Q11 . What will be the output of the following Python code?

>>>t = (1, 2, 4, 3, 8, 9)
>>>[t[i] for i in range(0, len(t), 2)]
a) [2, 3, 9]
b) [1, 2, 4, 3, 8, 9]
c) [1, 4, 8]
d) (1, 4, 8)
Q12. Computer Network is

A. Collection of hardware components and computers

B. Interconnected by communication channels

C. Sharing of resources and information

D. All of the Above

Q13. Which of the following is a Python tuple?


a) [1, 2, 3]
b) (1, 2, 3)
c) {1, 2, 3}
d) {}

Q14. Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1]?
a) Error
b) None
c) 25
d) 2
Q15. What is the benefit of the Networking?
A. File Sharing
B. Easier access to Resources
C. Easier Backups
D. All of the Above
Q16. Which of the following is not the Networking Devices?
A. Gateways
B. Linux
C. Routers
D. Firewalls
Q17. Which of the following statements create a dictionary?
a) d = {}
b) d = {“john”:40, “peter”:45}
c) d = {40:”john”, 45:”peter”}
d) All of the mentioned
Q18.Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
a) d. delete(“john”:40)
b) d. delete(“john”)
c) del d[“john”]
d) del d(“john”:40)
Q19) Coaxial cable consists of _______ concentric copper conductors.
a) 1
b) 2
c) 3
d) 4
Q20. Which of this is not a guided media ?
a) Fiber optical cable
b) Coaxial cable
c) Wireless LAN
d) Copper wire
Q21.Modulator and demodulator as combinely is known as –
A) Modulus
B)Modem
C) Mod switch
D) Mod access
Q22.Which of the following is an example of Personal Area Networking?
A) Bluetooth
B)WAN
C) WLAN
D) All of the above

NOTE-Attempt any Five question each question carry 3 marks 5X3

Q23 What do you understand by primary key? Give a suitable example of primary key from a table containing some
meaningful data.

Q 24.Give the SQL statement to create a table STUDENT with Roll Number, Name, Age and Marks.

Q 25.Which string method is used to implement the following:

1. To count the number of characters in the string.


2. To change the first character of the string in capital letter.
3. To check whether given character is letter or a number.
4. To change lowercase to uppercase letter.
5. Change one character into another character.

Q26.Convert the following for loop into while loop.

for i in range(10):
for j in range(i):
print '$',
print"
Q 27. Explain object and class with respect to OOP.
Q 28.Find the errors from the following code:

if (a>b)
print a:
else if (a<b)
print b:
else
print “both are equal”

NOTE-Attempt Any three question Each question carry 5 marks. 3X5

Q 29.What are the possible outcome(s) expected from the following python code? Also specify
maximum and minimum value, which we can have.

def main():
p = ‘MY PROGRAM’
i=0
while p[i] != ‘R’:
l = random.randint(0,3) + 5
print p[l],’-’,
i += 1
(i)R – P – O – R –
(ii) P – O – R – Y –
(iii) O -R – A – G –
(iv) A- G – R – M –

Q30.Consider the following tables STOCK and Consumer. Write SQL commands for the statement (i) to (iv) and
output for SQL queries (v) to (viii):

Table: STOCK

S_ID StationaryName Company Price

DP01 Dot Pen ABC 10

PL02 Pencil XYZ 6

ER05 Eraser XYZ 7

PL01 Pencil CAM 5

GP02 Gel Pen ABC 15


Table: Consumer

C_ID ConsumerName Address S_ID

01 Good Learner Delhi PL01

06 Write Well Mumbai GP02

12 Topper Delhi DP01

15 Write & Draw Delhi PL02

16 Motivation Banglore PL01

(i) To display the details of those consumers whose Address is Delhi.


(ii) To display the details of STOCK whose Price is in the range of 8 to 15. (Both Value included)
(iii) To display the ConsumerName, Address from Table Consumer, and Company and Price from table
STOCK, with their corresponding matching S_ID.
(iv) To increase the Price of all STOCK by 20.
(v) SELECT DISTINCT Address FROM Consumer;
(vi) SELECT Company, MAX(Price), MIN(Price), COUNT(*) from STOCK GROUP BY Company;
(vii) SELECT Consumer.ConsumerName, StationaryName, Price FROM STOCK, Consumer WHERE
Consumer.S_ID=STOCK.S_ID;
(viii) Select Stationary Name, Price*3 From STOCK;

Q 31. Hi Standard Tech Training Ltd. is a Mumbai based organisation which is expanding its office set-up to
Chennai.At Chennai office compound, they are planning to have 3 different blocks for Admin, Training and
Accounts related activities. Each block has a number of computers, which are required to be connected in a network
for communication, data and resource sharing.As a network consultant, you have to suggest the best network related
solutions for them for issues/problems raised by them in (i) to (iv), as per the distances between various
blocks/locations and other given parameters.
1.Suggest the most appropriate block/location to house the SERVER in the CHENNAI office (out of the 3 blocks)

to get the best and effective connectivity. Justify your answer.

2.Suggest the best wired medium and draw the cable layout (Block to Block) to efficiently connect various blocks
within the CHENNAI office compound.

3.Suggest a device/software and its placement that would provide data security for the entire network of the
CHENNAI office.

4.Suggest a device and the protocol that shall be needed to provide wireless Internet access to all smartphone/laptop
users in the CHENNAI office.

Q32.
Explain Data Hiding with respect to OOP with help of example in python.

You might also like