Le Mer Public School, Thriprayar Annual Examination (2020-21)
Le Mer Public School, Thriprayar Annual Examination (2020-21)
Le Mer Public School, Thriprayar Annual Examination (2020-21)
7. Charvi is inserting “Sharma” in the “LastName” column of the “Emp” table but 1
an error is being displayed. Write the correct SQL statement.
INSERT INTO Emp(‘Sharma’)VALUES(LastName) ;
8. Which of the following are not hardware: 1
(i) Printer (iii) Keyboard (iv) CPU (v) Assembler (vi) A Java Program
9. Write mysql command to create a database named School. 1
15. Give one point of difference between the primary key and Alternate key. 1
16. Draw the basic architecture of computer along with the functioning of each of 2
its subunit.
17. What is the difference between Cloud Computing and Grid Computing? 2
18. What is SQL? What are the different categories of commands of SQL? 2
19. What are the types of printers? Write an example for each. 2
23. Write an SQL query to create the table Customer with the following: 2
FIELD TYPE CONSTRAINT
C_ID Integer (5) Primary Key
CustName Varchar (20)
City Varchar (20)
Price Decimal (5,2)
24. What command is used for- 4
a. To change/open a database
b. To view the table structure
c. To delete a database
d. To modify the structure of table
25. Name the input or output device used to do the following: 4
a) To output audio
b) To enter textual data
c) To display the data or information
d) To enter audio-based command
26. Consider the following table ‘Employee’. Write SQL commands for the 6
statements (i) to (vi) .
EMPNO ENAME CITY JOB DOJ SAL COMM DEPTID
i)Display the details of all the employees whose salary is between 2000 and
3000.
ii)Display the details of all the employees whose names contain ‘a’ as the
second character.
iv) Display the names of all the employees who are working in department 20
or 30.
vi)Add another column provident fund of type (7,2) in the Employee table
default amount as 2000.
27. If the value of a = 20 and b = 20, then a+=b will assign ________ to “a”. 1
a) 30 b) 40 c) 20 d) 10
28. Which is used to represent a dictionary? 1
a. [ ] b. ( ) c. -> d. { }
29. What is the use of pop() in lists? 1
(i) x/y (ii) x<=y (iii) x!=y (iv) ( x>y) and ( x<20)
35. Consider the following list and predict the out of slicing operation given 2
list1=[‘Red’,’Green’,’Blue’,’Cyan’,’Magenta’,’Yellow’,’Black’]
1. list1[0:6:2]
2. list1[-6 : -2]
36. Rewrite the following code 2
for x in range(10,20,2):
print(x)
p=1
s=0
while p<10:
s+=p
p+=1
print (s)
37. Write pseudo code and algorithm to find the area and perimeter of a 2
rectangle.
Write python program for the following:
39. To input age of a person and check whether he/she is eligible to vote or not. 2