Cs First PT PDF
Cs First PT PDF
CLASS-XII
TIME: 1 ½ Hr M.M.: 50
D. None of these
A. BETWEEN operator
B. LIKE operator
C. EXISTS operator
D. None of these
B. INSERT VALUES (
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
a) abc = 1,000,000
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
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
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
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.
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”
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
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)
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.