class11 sample paper of IP
SAMPLE PAPER OF IP
SET-I
PART A Section I (Attempt any 15 questions out of Question No 1 to 21) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 | What do you understand by cache memory? | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 | Make difference between RAM and ROM. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 | Give two examples of system software. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 | How many bytes are there in 1 TB. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | What is the function of motherboard? | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6 | Define the term software. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
7 | Give the full form of ENIAC. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
8 | What will be the output of x = 73 y = x%9 print(y) | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
9 | Write the difference between compiler and interpreter. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
10 | Give two examples of Immutable data types. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
11 | Give one example of data type conversion in python. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
12 | Define the term debugging. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
13 | Enumerate various data types in python. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
14 | Identify the valid identifier out of following:
| 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
15 | Explain in brief the need of DBMS systems. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
16 | A table has 6 rows and 5 columns. What is the degree of table? | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
17 | Define the term ‘Candidate Key’ in a database system. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
18 | Define Primary key ? | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
19 | What is the full form of RDBMS? | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
20 | What is cardinality? | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
21 | Define Domain? | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Section II | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
22 | Read the code below carefully and answer any four questions out of the questions Sum = 0 for i in range(1, 101): if i % 20 == 0: Sum = Sum + i print(Sum) (i) What will be the output of above code?
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
23 | You are to collect data of students of your class as follows:
3. DOB 4. Contact No On the basis of above answer any four
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PART B Section I | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
24 | Name the software required to make a computer functional. Write down its two primary functions. | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
25 | Rewrite the following code after removing syntax errors : name = input(Enter Name : ) age = int(input("Enter Age: ") if (age >=18) Print(Name,"is eligible for driving licence") else: Print(name, "is not eligible for driving licence") | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
26 | What will be the output of the following code snippet? a=[1,2,3,4,5] print(a[3:0:-1]) OR What will be the output of below Python code? list1=[8,0,9,5] | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
27 | What will be the output of following: for i in range(1,11): if (i%3==0): break else: print(i, end=' ') | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
28 | What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} b={4:"D",5:"E"} a.update(b) print(a) | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
29 | What is Like operator in sql? Give one example OR Make difference between DDL and DML commands. Give one example of each. | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
30 | What are integrity constraints? Give one example to explain. | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
31 | What is the use of ‘distinct’ in MySQL. Explain with one example. | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
32 | The data types of char(m) and varchar(n) are used ot create ______ and ____ types of string/text fields in database. | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33 | Define the term Database. Name any two database management software | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Section II | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
34 | Draw the block diagram of a computer system. Briefly write about the functionality of each component. OR What are various categories of softwares? | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
35 | Write a python code to print the factorial of the number entered by the user? OR Write a python code to enter a number and print the reverse of the number? | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
36 | Consider the following table Doctor as given below
Write output of SQL queries fired on the table Doctor:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
37 | Given a table ‘Place’ as below:
Write SQL queries for the following:
| 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Section III | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
38 | Program to calculate the mean of given list of numbers OR Program to search for an element in a given list of numbers | 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
39 | Write the SQL command for the following on the basis of given table. TABLE NAME : GAME
(1) Display the number of students having game ‘Cricket’. (2) Display the names of students who have same game for both Game1 and Game2. (3) Display the games taken by the students whose name starts with ‘A’. (4) Display the names of students of 7th class participated in tennis as Game1. (5) Display the names of the students who have grade ‘A’ in either Game1 or Game2 or both. | 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
40 | Answer the following questions:
| 5 |
*End of Paper*
ANSWER KEY
MARKING SCHEME
PART A Section I | ||||||||||||||||||||||||||||||||||||||||||||||||||
1 | 1 mark for correct definition | |||||||||||||||||||||||||||||||||||||||||||||||||
2 | 1 Mark for correct difference | |||||||||||||||||||||||||||||||||||||||||||||||||
3 | ½ mark for each correct example | |||||||||||||||||||||||||||||||||||||||||||||||||
4 | 1 mark for correct answer | |||||||||||||||||||||||||||||||||||||||||||||||||
5 | 1 mark for correct answer | |||||||||||||||||||||||||||||||||||||||||||||||||
6 | 1 mark for correct definition | |||||||||||||||||||||||||||||||||||||||||||||||||
7 | 1 mark for correct full form | |||||||||||||||||||||||||||||||||||||||||||||||||
8 | 1 mark for correct answer | |||||||||||||||||||||||||||||||||||||||||||||||||
9 | 1 mark for correct difference | |||||||||||||||||||||||||||||||||||||||||||||||||
10 | ½ mark for each correct example | |||||||||||||||||||||||||||||||||||||||||||||||||
11 | 1 mark for correct example | |||||||||||||||||||||||||||||||||||||||||||||||||
12 | 1 mark for correct definition | |||||||||||||||||||||||||||||||||||||||||||||||||
13 | 1 mark for correct answer, ½ mark for partial answer | |||||||||||||||||||||||||||||||||||||||||||||||||
14 | 1 mark for correct identification | |||||||||||||||||||||||||||||||||||||||||||||||||
15 | 1 mark for correct answer | |||||||||||||||||||||||||||||||||||||||||||||||||
16 | 1 mark for correct answer | |||||||||||||||||||||||||||||||||||||||||||||||||
17 | 1 mark for correct definition | |||||||||||||||||||||||||||||||||||||||||||||||||
18 | 1 mark for correct definition | |||||||||||||||||||||||||||||||||||||||||||||||||
19 | 1 mark for correct full form | |||||||||||||||||||||||||||||||||||||||||||||||||
20 | 1 mark for correct answer | |||||||||||||||||||||||||||||||||||||||||||||||||
21 | 1 mark for correct answer | |||||||||||||||||||||||||||||||||||||||||||||||||
Section II | ||||||||||||||||||||||||||||||||||||||||||||||||||
22 |
| |||||||||||||||||||||||||||||||||||||||||||||||||
23 |
| |||||||||||||||||||||||||||||||||||||||||||||||||
PART B Section I | ||||||||||||||||||||||||||||||||||||||||||||||||||
24 | 1 mark for correct name of software (OS) and ½ mark for each correct function. | |||||||||||||||||||||||||||||||||||||||||||||||||
25 | ½ mark for each correction
| |||||||||||||||||||||||||||||||||||||||||||||||||
26 | 2 marks for complete output, 1 mark for partial
| |||||||||||||||||||||||||||||||||||||||||||||||||
27 | 1 2 2 marks for correct output | |||||||||||||||||||||||||||||||||||||||||||||||||
28 | {1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E'} 2 marks for correct output | |||||||||||||||||||||||||||||||||||||||||||||||||
29 | 1 mark for correct explaination and 1 mark for example. Or 1 mark for correct difference and ½ mark for each example. | |||||||||||||||||||||||||||||||||||||||||||||||||
30 | 1 mark for correct answer and 1 mark for explanation. | |||||||||||||||||||||||||||||||||||||||||||||||||
31 | 1 mark for correct use and 1 mark for explanation. | |||||||||||||||||||||||||||||||||||||||||||||||||
32 | Fixed, variable 1 marks for each | |||||||||||||||||||||||||||||||||||||||||||||||||
33 | 1 marks for each | |||||||||||||||||||||||||||||||||||||||||||||||||
Section II | ||||||||||||||||||||||||||||||||||||||||||||||||||
34 | 1 mark for diagram and 2 mark for description or 1 marks for types 1 marks for each definition | |||||||||||||||||||||||||||||||||||||||||||||||||
35 | 1 mark for input and output list 2 marks for correct code | |||||||||||||||||||||||||||||||||||||||||||||||||
36 | 1 mark for each correct output of query | |||||||||||||||||||||||||||||||||||||||||||||||||
37 |
(1 mark for each correct answer) | |||||||||||||||||||||||||||||||||||||||||||||||||
Section III | ||||||||||||||||||||||||||||||||||||||||||||||||||
38 | lst=eval(input(“Enter the list”)) length=len(lst) mean=sum=0 for i in range(0,length): sum+=lst[i] mean=sum/length print(mean) (5 marks for correct program, partial marks may be given for partially correct program) OR lst=eval(input(“Enter the list”)) length=len(lst) x=int(input(“enter the element to search”)) for i in range(0,length): if x==lst[i]: print(“Element found at index”,i) break; (5 marks for correct program, partial marks may be given for partially correct program) | |||||||||||||||||||||||||||||||||||||||||||||||||
39 | Write the SQL command for the following on the basis of given table. TABLE NAME : GAME
(1) Select count(*) from GAME where Game1 = ‘Cricket’ or Game2 = ‘Cricket’; (2) Select Name from GAME where Game1 = Game2; (3) Select Game1, Game2 from GAME where Name like “A%”; (4) Select Name form GAME where Class = 7 and Game1 = ‘Tennis’; (5) Select Name from GAME where Grade1 = ‘A’ or Grade2 = ‘A’; | |||||||||||||||||||||||||||||||||||||||||||||||||
40 |
|
SET-II
PART-A | ||||||||||||||||||||||||||||||||||||||||||||||||||||
SECTION-I (Short Answer Questions)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
1 | Which are valid and Invalid identifiers? a)kv#038 b)@month12 c)_param4 d)const_num | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
2 | Write the output of the print statement: my_p=[‘w’,’e’,’L’,’c’,’o’,’m’,’e’] print(my_p[2:4:2]) | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
3 | Name any one function of python list. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
4 | In SQL, which clause is used to prevent displaying the duplicate tuples of a relation? | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
5 | Out of the following terms, which is the biggest unit of data transfer rate? Mbps, Tbps, Kbps, Gbps, bps | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
6 | Which of the following is not a DDL Command? a)DROP b)ALTER c)INSERT d)CREATE | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
7 | If the following code is executed what will be the output of it? name=[”LiveYourLife”,[4,5],9] print(name[1][1]) | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
8 | Identify the valid relational operators in Python from the following:- a)+ b)// c)and d) > | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
9 | Write a statement in Python to declare a Dictionary KZ whose keys are 11,21,31 and values are ANT,CAT,DOG respectively. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
10 | In SQL what is correct order of the following keywords in a SQL statement? Where, Select, Order By | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
11 | In SQL, write a query to access a Database. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
12 | Anurag has data plan of 2 GB/day in is mobile network. It is equivalent to say ______ KB/day. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
13 | Expand the terms MU and ALU in context of computer system organization. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
14 | Who developed Python programming language? | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
15 | What is concatenation in context of list? | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
16 | Rewrite the following Python code after removing errors(if any) and also underline each correction:- z=input(Enter an integer) for i in range(z) print(i) | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
17 | Identify each one of the following as hardware and software:- a)Microsoft Edge b)Hard Disk c)Unix d) Motherboard | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
18 | If d1={1:10,2:20,3:30} then find the output of – print(d1.keys()) | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
19 | How is Null values related with the concept of Primary key and Unique constraints. Explain. | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
20 | A data item may have multi valued information in a field.(True/False) | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
21 | Is operating system is an application software or system software? Justify your answer | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
SECTION-II Both the case study based questions (22 & 23 ) are compulsory. Attempt any four sub parts from each question. Each sub question carries 1 mark. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
22 | Ramesh has created an empty dictionary using the command k={ }. Now he has written following codes without knowing its result. Help him to know and understand the output of the following statements(i.e Dictionary status/items) he has written:- k={ }
| 1x4=4 | ||||||||||||||||||||||||||||||||||||||||||||||||||
23 | A company is building an e commerce website. The website will display the details of the products that the company sells and allow customer to place orders.Following are the Database tables used by the company to store the details of Product, Customer and Order details. Product(ProductNo, ProductPrice,Quantity) Order(OrderNo, OrderDate, OrderAmount) Customer(CustomerID, CustomerName,Address,ContactNo)
| 1x4=4 | ||||||||||||||||||||||||||||||||||||||||||||||||||
PART-B | ||||||||||||||||||||||||||||||||||||||||||||||||||||
SECTION-I (Short Answer Questions) Question No. 24-33 carries 2 mark each. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
24 | While studying Databases, Meera is confused with the meaning of the terms Data Inconsistency. Help her to understand the terms through definition as well as example. | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
25 | Write a program to find cube of a number. Accept the number from the user. OR Write a program in Python to find simple interest using principal, rate and time. Accept all data from the user. | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
26 | Observe the following table and answer the following Questions:- Table:Transactions
| 1 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
27 | Write the output of the following program on execution if x=50 if x>10: if x>25: print(‘ok’) if x>60: print(‘good’) elif x>40: print(‘average’) else: print(‘no output’) | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
28 | Differentiate between Primary Memory and Secondary Memory.(Any two). OR Differentiate between compiler and Interpreter(Any two). | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
29 | State one similarity and one difference between Primary Key and Unique constraints. | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
30 | What will be the output of the following program code:- a,b=10,50 if b%a==0: print(b//4) print(a/2) else: print(a**2) print(b%3) | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
31 | A SQL relation “Flight” has 14 rows and 7 columns. Mohan deletes 3 rows and added 2 more columns. What will be the new degree and cardinality of the relation Flight. | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
32 | Write the following arithmetic expressions using operators in Python: | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
33 | Mr. Mittal is using a table with following columns : Name, Class, Streamed, Stream_name He needs to display names of students who have not been assigned any stream or have been assigned stream_name that ends with "computers”. He wrote the following command, which did not give the desired result. SELECT Name, Class FROM Students WHERE Stream_name = NULL OR Stream_name= “%computers” ; Help Mr. Mittal to run the query by removing the error and write correct query . | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
SECTION-II (Long Answer Questions) Question No. 34-37 carries 3 mark each. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
34 | Write a Python program to print the series 1 3 5 7 9 11 up to a given limit. OR Write a Python program to find the product of the numbers up to a given limit. | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||
35 | Study the following tables SALARY and answer the following questions:- TABLE : DOCTOR
|
1 1 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
36 | “Cache memory plays an important role in effective CPU utilization” . Justify the statement. Also arrange the following kinds of memory in ascending order of their accessing speeds:- Secondary memory, Cache memory, Main Memory(RAM) or Brief the main functions of Operating System.(explain any 3) | 2+1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
37 | Write SQL Queries for the following:-
| 2 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
SECTION III (Very Long Answer Questions) Question No. 38-40 carries 5 mark each. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
38 | Consider the following tables Stationary and Consumer : Table: Stationary
Table: Consumer
Write SQL commands for the statement (i) to (iv). (i) To create table Consumer having Cust_ID as Primary key, S_ID as Not Null constraints. (ii) Insert first two records in the table Consumer. iii) To display the details of those consumers whose Address is Delhi.
Write output for SQL queries (v) to (viii): v) SELECT DISTINCT Address FROM Consumer; vi) Select StationaryName, Price*3 as “Three Times Price” From Stationary; | 1 1 1 1 ½ ½ | ||||||||||||||||||||||||||||||||||||||||||||||||||
39 | Write a Python program to find the Area and Perimeter of a rectangle based on the user choice.(If user enters 1 , area is displayed and if user enters 2 then perimeter is displayed). | 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||
40 | Attempt anyone from A or B
Natural Language processing(NLP) is a trait of deep learning(True/False).
A type of virtual environment in which subjects are visually isolated from the real environment.
OR B. Answer these questions( i to iii):-
| 1 1 1 1 1 2 2 1 |
*******************End of Question Paper*******************
ANSWER kEY
PART-A | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SECTION-I (Short Answer Questions)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 | Which are valid and Invalid identifiers? a)kv#038 b)@month12 c)_param4 d)const_num Ans:- c)_param4 d)const_num are valid identifiers.(1/2 mark for each correct answer) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 | Write the output of the print statement: my_p=[‘w’,’e’,’L’,’c’,’o’,’m’,’e’] print(my_p[2:4:2]) Ans:- ['L'] (1 mark for correct answer. No Marks for wrong/partial correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 | Name any one function of python list. Ans:-(Any one function of list) append() or extend() or any function | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 | In SQL, which clause is used to prevent displaying the duplicate tuples of a relation? Ans:- DISTINCT. (1 mark for correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | Out of the following terms, which is the biggest unit of data transfer rate? Mbps, Tbps, Kbps, Gbps, bps Ans:- Tbps (1 mark for correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6 | Which of the following is not a DDL Command? a)DROP b)ALTER c)INSERT d)CREATE Ans:-INSERT (1 mark for correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
7 | If the following code is executed what will be the output of it? name=[”LiveYourLife”,[4,5],9] print(name[1][1]) Ans:- 5 (1 mark for correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
8 | Identify the valid relational operators in Python from the following:- a)+ b)// c)and d) > Ans:- > (1 mark for correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
9 | Write a statement in Python to declare a Dictionary KZ whose keys are 11,21,31 and values are ANT,CAT,DOG respectively. Ans:- KZ={11:’ANT’,21:’CAT’,31:’DOG’} (1 mark for correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
10 | In SQL what is correct order of the following keywords in a SQL statement? Where, Select, Order by Ans:-Select, where,Order by (1 mark for correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
11 | In SQL, write a query to access a Database. Ans:-use <database> (1 mark for correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
12 | Anurag has data plan of 2 GB/day in is mobile network. It is equivalent to say ______ KB/day. Ans:- 2x1024x1024 KB/Day or 2x220 KB/day. (1 mark for correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
13 | Expand the terms MU and ALU in context of computer system organization. Ans:-Memory Unit, Arithematic and Logical Unit (1 mark for correct answer.1/2 for partial) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
14 | Who developed Python programming language? Ans:- Guido Van Rossum (1 mark for correct answer.) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
15 | What is concatenation in context of list? Ans:- (1 mark for correct answer.1/2 for partial) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
16 | Rewrite the following Python code after removing errors(if any) and also underline each correction:-
(1/2 mark for each correct error). | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
17 | Identify each one of the following as hardware and software:- a)Microsoft Edge b)Hard Disk c)Unix d) Motherboard Ans:- Hardware:- HardDisk, Motherboard Software:-Microsoft Edge,Unix. (1 mark for correct answer.1/2 for partial) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
18 | If d1={1:10,2:20,3:30} then find the output of – print(d1.keys()) Ans dict_keys([1, 2, 3]) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
19 | How is Null values related with the concept of Primary key and Unique constraints.Explain. Ans:-In Primary key Null values are not allowed whereas it is allowed in Unique constraints. (1 mark for correct answer) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
20 | A data item in a Database table may have multi valued information in a field.(True/False) Ans:- False (1 mark for correct answer) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
21 | Is operating system is an application software or system software? Justify your answer. Ans:-Operating System is a system software as it is necessary for user’s interaction with the hardware and it controls and runs all the activities of computer system.Also because of it we are able to use application softwares. (1 mark for correct answer.1/2 mark for partial) | 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SECTION-II Both the case study based questions (22 & 23 ) are compulsory. Attempt any four sub parts from each question. Each sub question carries 1 mark. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
22 | Ramesh has created an empty dictionary using the command k={ }. Now he has written following codes without knowing its result. Help him to know and understand the output of the following statements(i.e Dictionary status/items) he has written:-
| 1x4=4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
23 | A company is building an e commerce website. The website will display the details of the products that the company sells and allow customer to place orders.Following are the Database tables used by the company to store the details of Product, Customer and Order details. Product(ProductNo, ProductPrice,Quantity) Order(OrderNo, OrderDate, OrderAmount) Customer(CustomerID, CustomerName,Address,ContactNo)
(1 mark each for correct answer.1/2 mark for partial correct answer.Maximum marks is 4 ). | 1x4=4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PART-B | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SECTION-I (Short Answer Questions) Question No. 24-33 carries 2 mark each. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
24 | While studying Databases, Meera is confused with the meaning of the terms Data Inconsistency. Help her to understand the terms through definition as well as example. Ans:- ( 1 mark for definition of data redundancy and 1 mark for example.) | 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
25 | Write a program to find cube of a number. Accept the number from the user. OR Write a program in Python to find simple interest using principal, rate and time. Accept all data from the user. (Full marks for correct program. Partial marks for Partial correct answers) | 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
26 | Observe the following table and answer the following Questions:- Table:Transactions
Ans:- Primary Key:-TNo (or CNo ) Candidate Key:-TNo,CNo,Type,Amount Alternate Key(CNo/TNo,Type,Amount). ( 2 marks for all correct. 1 mark for partial correct answer) | 1 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
27 | Write the output of the following program on execution if x=50 if x>10: if x>25: print(‘ok’) if x>60: print(‘good’) elif x>40: print(‘average’) else: print(‘no output’) Ans ok average ( 2 marks for all correct. 1 mark for partial correct answer) | 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
28 | Differentiate between Primary Memory and Secondary Memory(Any two). OR Differentiate between compiler and Interpreter(Any two). (1 maks for each point). | 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
29 | State one similarity and one difference between Primary Key and Unique constraints. Similarity:- Both can identify the records uniquely. Difference:- Primary Key cannot accept Null values whereas Unique can accept it. (1 mark for each similarity and difference). | 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
30 | What will be the output of the following program code:- a,b=10,50 if b%a==0: print(b//4) print(a/2) else: print(a**2) print(b%3) Ans:- 12 5.0 (1 Mark for each correct line of output) | 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
31 | A SQL relation “Flight” has 14 rows and 7 columns. Mohan deletes 3 rows and added 2 more columns. What will be the new degree and cardinality of the relation Flight. Ans:-Degree:- 9, Cardinality:-11 (1 Mark each for correct Degree or cardinality). | 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
32 | Write the following arithmetic expressions using operators in Python: Ans:- a) (a+b)/2*a b)x=pow(a,3)+pow(b,3)+pow(c,3) c)math.pi*r*pow((r+h),2) d)z= [-b + sqrt(b*b-4*a*c)]/2*a (1/2 mark for each correct part). | 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33 | Mr. Mittal is using a table with following columns : Name, Class, Streamed, Stream_name .He needs to display names of students who have not been assigned any stream or have been assigned stream_name that ends with "computers”. He wrote the following command, which did not give the desired result. SELECT Name, Class FROM Students WHERE Stream_name = NULL OR Stream_name= “%computers” ; Help Mr. Mittal to run the query by removing the error and write correct query . Ans:- SELECT Name, Class FROM Students WHERE Stream_name IS NULL OR Stream_name = “%computers” ; (1 mark for each correct Keyword- IS, LIKE). | 1 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SECTION-II (Long Answer Questions) Question No. 34-37 carries 3 mark each. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
34 | Write a Python program to print the series 1 3 5 7 9 11 up to a given limit. OR Write a Python program to find the product of the numbers up to a given limit. (Full marks for correct answer. Partial marks may be awarded for partial correct answers. Deduct 1 mark if limit is not accepted from the user.) | 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
35 | Study the following tables SALARY and answer the following questions:- TABLE : DOCTOR
Ans:- i) cardinality:-9 Degree 5 ii)Select * from Doctors where Name like ‘J%’ or Name like ‘S%’ iii) Select * from Doctors where sex=’F’and experience>5; ( 1 mark for each correct Query. ½ mark for correct where condition only). | 1 1 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
36 | “Cache memory plays an important role in effective CPU utilization” . Justify the statement. Also arrange the following kinds of memory in ascending order of their accessing speeds:- Secondary memory, Cache memory, Main Memory(RAM) (2+1 mark for correct explanation and answer of each part of the question.) | 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
37 | Write SQL Queries for the following:-
( 1 mark to be deducted if constraints are not applied in Create Query. ½ mark to be deducted ifonly one record is inserted ) | 2 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SECTION III (Very Long Answer Questions) Question No. 38-40 carries 5 mark each. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
38 | Consider the following tables Stationary and Consumer : Table: Stationary
Table: Consumer
Write SQL commands for the statement (i) to (iii). (i) To create table Consumer having Cust_ID as Primary key, S_ID as Not Null constraints. (ii) Insert first two records in the table Consumer. iii) To display the details of those consumers whose Address is Delhi.
Write output for SQL queries (v) to (viii):
Ans:-
(For Query 1 mark for correct answer and ½ mark for partial correct Query) (For Output, ½ mark for correct output. No marks for wrong output) | 1 1 1 1 ½ ½ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
39 | Write a Python program to find the Area and Perimeter of a rectangle based on the user choice.(If user enters 1 , area is displayed and if user enters 2 then perimeter is displayed). (Full marks for correct solution. Logic may vary.Partial marks for partial correct answers) | 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
40 | Attempt anyone from A or B
Natural Language processing(NLP) is a trait of deep learning(True/False).
A type of virtual environment in which subjects are visually isolated from the real environment.
OR B. Answer these questions( i to iii):-
iii)State the characteristics which distinguishes traditional data from Big data. Ans:- Part A
Ans:-PART-B
(Full marks for correct explanation. Half marks for partial correct answer). | 1 1 1 1 1 2 2 1 |
*******************End of Marking Scheme*******************
ANSWER KEY
Question No. | Part A | Marks |
1 | (2)^20 or 1048576 bytes 1 marks for correct answer | |
2 | Nibble 1 marks for correct answer | |
3 | (a) RAM 1 marks for correct answer | |
4 | Portable Document Format 1 marks for correct answer | |
5 | 1 mark for correct answer. | |
6 | Low level (1 marks for correct answer) | |
7 | Any two software name 1/2 marks for each correct answer | |
8 | _Myfile 1 marks for correct answer | |
9 | Immutable 1 marks for correct answer. | |
10 | Keywords 1 marks for correct answer. | |
11 | (b) # 1 marks for correct answer. | |
12 | (c) sep 1 marks for correct answer | |
13 | [1,2,1,2] 1 marks for correct answer | |
14 | (i) 2 (ii) 4 ½ marks for each correct answer | |
15 | (a) tuple 1 marks for correct answer | |
16 | 1 marks for correct answer. | |
17 | (b) insert 1 marks for correct answer. | |
18 | ½ marks for each correct answer | |
19 | 1 marks for correct answer | |
20 | 1 marks for correct answer. | |
21 | Describe table; 1 marks for correct answer | |
22 |
1 marks for each correct answer | |
23 |
1 marks for each correct answer | |
24 | 1 Mark for diagram and 1 mark for explanation. | |
25 | c=1 d=-2 (2 marks for correct Answer.) | |
26 | 2 marks for correct answer. | |
27 | To=30 for K in range(0,To): if K%4==0: print(K*4) else: print(K+3) 2 marks for correct error detection | |
28 | 1 marks for defining primary key and 1 mark for example. | |
29 | 1 marks for defining DBMS and 1 mark for example. | |
30 | 1 marks for difference 1 for example | |
31 | {1:3,2:1,3:1,5:2,6:2} 2 marks for correct output. | |
32 | Degree 8 and cardinality 6 1 mark for degree and 1 marks for cardinality | |
33 | 1 mark for file system 1 for its disadvantages or 1 marks for 1 correct difference 1 marks for example. | |
34 | 1 mark for each correct answer answer. | |
35 | (2 Marks for Logic 1 mark for correct syntax of programming) | |
36 | (i) (ii) 5 ZUBIN SWIMMING 8 ZAREEN KARATE (iii) KUKREJA 35 ANKITA 39 1 mark for each correct output | |
37 | 1 marks for each correct definition. | |
38 |
Or 3 Marks for correct logic and syntax and 2 marks for displaying students. | |
39 | (i) 2 marks correct explaination. (ii) 1 mark for definition and 1 mark for application. (iii) 1 mark for correct answer | |
40 | (i) create table faculty(FID int, Fname varchar(10), Lname varchar(10),Hire_date date, salary int); (ii) F_ID (iii) Degree=5 Cardinality =5 (iv) select * from faculty where salary>10000; (v) select * from faculty order by Lname desc; 1 mark for each correct answer. |
SET-IV
Part A | ||||||||||||||||||||||||||||||||||||||
Section I Attempt any 15 questions from questions 1 to 21 | ||||||||||||||||||||||||||||||||||||||
1 | Which of the following are software: Capacitor, Internet Explorer, Hard Disk, Unix | 1 | ||||||||||||||||||||||||||||||||||||
2 | Which of the following Operating system is used in the Mobile Phones. Unix, Windows, Android, Linux | 1 | ||||||||||||||||||||||||||||||||||||
3 | Arrange the following in ascending order of memory capacity: TB, Byte, KB, MB, GB | 1 | ||||||||||||||||||||||||||||||||||||
4 | What is the difference between RAM and ROM? | 1 | ||||||||||||||||||||||||||||||||||||
5 | Name any two utility software | 1 | ||||||||||||||||||||||||||||||||||||
6 | What is the difference between interactive and script mode of python? | 1 | ||||||||||||||||||||||||||||||||||||
7 | Identify the data types of the following values:
| 1 | ||||||||||||||||||||||||||||||||||||
8 | Write following arithmetic expression using operators in python: x = a3 (b2 + c2 ) | 1 | ||||||||||||||||||||||||||||||||||||
9 | Write a Python command to delete an item “Address” from the given dictionary ‘student’ ? >>>student = {“Name”:”Surbhi”, “Roll No”:”11”, “Address”: “Sec-7 New Delhi”} | 1 | ||||||||||||||||||||||||||||||||||||
10 | Identify invalid variable names from the following: If, s.i , tot_strength , 9tag | 1 | ||||||||||||||||||||||||||||||||||||
11 | State the use of Primary key in relational database. | 1 | ||||||||||||||||||||||||||||||||||||
12 | Write the command to open an existing database STUDENT. | 1 | ||||||||||||||||||||||||||||||||||||
13 | Out of rollno, name and marks, which column will you choose as primary key and why? | 1 | ||||||||||||||||||||||||||||||||||||
14 | What is the difference between char and varchar data type? | 1 | ||||||||||||||||||||||||||||||||||||
15 | What is the full form of DDL in MySQL? | 1 | ||||||||||||||||||||||||||||||||||||
16 | The physical components of a computer are called______(software/hardware) | 1 | ||||||||||||||||||||||||||||||||||||
17 | The ________ is responsible for carrying out arithmatic and logical operations | 1 | ||||||||||||||||||||||||||||||||||||
18 | What is difference between / and // operators in python | 1 | ||||||||||||||||||||||||||||||||||||
19 | Write the output of the following statement in python A=23%4 print(“A=”,A) | 1 | ||||||||||||||||||||||||||||||||||||
20 | A relation can contain more than one primary key(True/False) | 1 | ||||||||||||||||||||||||||||||||||||
21 | 1 nibble is equal to ____bits. | 1 | ||||||||||||||||||||||||||||||||||||
SECTION-II Both the case study based questions (22 & 23 ) are compulsory. Attempt any four sub parts from each question. Each sub question carries 1 mark. | ||||||||||||||||||||||||||||||||||||||
22 | Consider the following list List1=[2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] Write commands for any 4 out of 5 : i. Insert 4 at third position ii. Sort the elements of the list in ascending order. iii. Delete all elements from 3rd to 9th position iv. Search the position of 13 in the list v. Find the maximum value of the list | 4 | ||||||||||||||||||||||||||||||||||||
23 | Write SQL commands for any 6 out of 7 from the table OnlineClass
(i) To display the details of classes having attendance more than 20 but less than 40. (ii) To display Meeting_Id of all those classes who are using Zoom application. (iii) To display Host_Name and Hours in decreasing order of attendance. (iv) To display Meeting_Id, Host_Name and Application of those classes whose Topic is MySQL. (v) To insert a row with the following data: (106,”Webex”,”Alex”,”Lists and Dictioanries”,2,30) | 4 | ||||||||||||||||||||||||||||||||||||
PART-B | ||||||||||||||||||||||||||||||||||||||
SECTION-I (Short Answer Questions) Question No. 24-33 carries 2 mark each. | ||||||||||||||||||||||||||||||||||||||
24 | What is the difference between System Software and Application Software? | 2 | ||||||||||||||||||||||||||||||||||||
25 | What is the difference between tuples and lists in Python? Give Example | 2 | ||||||||||||||||||||||||||||||||||||
26 | What will be the output produced by the following code fragment- w, x, y, z = 21, 2, 3, 21 print(w/4) print(w//4) print(x**y) print(z%y) OR Suppose Dic1={1:’south’,2:’point’,3:’school’} Write the output of the following code: i. print(Dic1.keys()) ii. print( len(Dic1)) | 2 | ||||||||||||||||||||||||||||||||||||
27 | What will be the output produced by the following code fragments- (i) for k in range(13,3,-2): print(k* 2) (ii) m=2 n=0 while m<10: n=n+m m=m+2 print(n) OR Rewrite the following program using while loop: for i in range(1,10,2): print(i) | 1 1 2 | ||||||||||||||||||||||||||||||||||||
28 | Write python statement to create a dictionary named “Items” with the following data:
| 2 | ||||||||||||||||||||||||||||||||||||
29 | Find the output of the queries based on the following relation STUDENT:
(ii) SELECT * FROM STUDENT WHERE GRADE = ‘A+’; | 2 | ||||||||||||||||||||||||||||||||||||
30 | Write SQL command to create the Customer table:
| 2 | ||||||||||||||||||||||||||||||||||||
31 | What is difference between DDL and DML commands? Give 1 example of each. | 2 | ||||||||||||||||||||||||||||||||||||
32 | What are the various wild card characters used in SQL select queries for pattern matching? Give any one example. | 2 | ||||||||||||||||||||||||||||||||||||
33 | Explain different feature of RDBMS. | 2 | ||||||||||||||||||||||||||||||||||||
SECTION-II (Long Answer Questions) Question No. 34-37 carries 3 mark each. | ||||||||||||||||||||||||||||||||||||||
34 | (i) Convert 2 MB into bytes. (ii) Write 2 functions of Operating System. (iii) What is the difference between CU and ALU. | 1 1 1 | ||||||||||||||||||||||||||||||||||||
35 | Write a python program to find greatest of 3 numbers entered by user. OR Write a python program to accept a number and print its multiplication table | 3 | ||||||||||||||||||||||||||||||||||||
36 | (i) Ms. Riya wants to display details of all those employees whose salary is in the range 30000 to 50000 from employee table. Write appropriate SQL query for it, (ii) What is a candidate key? Give a suitable example. (iii) What do you mean by domain in relational database? | 1 1 1 | ||||||||||||||||||||||||||||||||||||
37 | (i) A table “Students” has 3 columns and 4 rows in it. What is its degree ? What is its cardinality? What will be its cardinality if 5 rows are added in the table? (ii) Write any two advantages of database system. OR Study the table ‘flight’ given below and answer the questions.
(i) Name the key which can be act as Primary key in the above table. (ii) What is the degree and cardinality of the above table? (iii) What datatype will be used for FL_No? | 2 1 1 1 1 | ||||||||||||||||||||||||||||||||||||
SECTION III (Very Long Answer Questions) Question No. 38-40 carries 5 mark each. | ||||||||||||||||||||||||||||||||||||||
38 | (i) Write a program to find the factorial of a number. OR Write a program to enter 2 numbers and find the sum of all numbers in the range of 2 numbers. Eg. If 2 numbers entered are 3 and 7 then the sum should be 25 (3+4+5+6+7) (ii) Write a program to accept a number and print its all factors. Eg. If number entered is 20. The program should print 1 2 4 5 10 20 OR Write a program to accept percentage of student and print grade as per criteria given below:
(iii) What are comments in python? How can we give comments in python? OR What are keywords in python? Give example | 2 2 1 | ||||||||||||||||||||||||||||||||||||
39 | Consider a table Voter with the columns as follows: Voterno, Votername, Age, Address and Phone. Write SQL queries for the following: (i) To list Voterno, Votername and Age for all the voters. This information should be sorted on Age. (ii) To display all details of the voters where address is “Guwahati” (iii) To list voters where address is “Delhi” and age greater than 30. (iv) To display Votername and Address of all voters whose name starts with ‘S’. (v) To display the details of voters whose Address is “Delhi” or “Mumbai” | 5 | ||||||||||||||||||||||||||||||||||||
40 | (i) What is cloud computing? Write its 2 advantages. (ii) __________ refers to the ability of machines to perform cognitive tasks like thinking, perceiving, learning, problem-solving as decision making. (iii) What is full form of IoT and VR? (iv) What is block chain technology? | 2 1 1 1 |
ANSWER KEY
Part A | ||||||||||||||||||||||
Section I | ||||||||||||||||||||||
1 | Internet Explorer and Unix ½ mark for each correct answer | |||||||||||||||||||||
2 | Android 1 mark for correct answer | |||||||||||||||||||||
3 | Byte, KB, MB, GB, TB 1 mark for correct order | |||||||||||||||||||||
4 | ½ mark each for correct definition of RAM and ROM | |||||||||||||||||||||
5 | ½ mark for each correct utility software | |||||||||||||||||||||
6 | ½ mark each for correct definition of interactive and script mode | |||||||||||||||||||||
7 | (i) String (ii) List ½ mark for each correct data type | |||||||||||||||||||||
8 | x=a*a*a(b*b+c*c*c) 1 mark for correct expression | |||||||||||||||||||||
9 | del student['Address'] 1 mark for correct statement | |||||||||||||||||||||
10 | s.i and 9tag ½ mark for each correct answer | |||||||||||||||||||||
11 | 1 mark for correct definition of foreign key | |||||||||||||||||||||
12 | Use Student; 1 mark for correct answer | |||||||||||||||||||||
13 | Rollno will be set as primary key as it uniquely identify rows of table. ½ mark for correct primary key ½ mark for correct reason | |||||||||||||||||||||
14 | Char – fixed length string Varchar – variable length string ½ mark each for correct definition | |||||||||||||||||||||
15 | 1 marks for correct form. | |||||||||||||||||||||
16 | 1 marks for correct answer. | |||||||||||||||||||||
17 | ALU 1 marks for correct answer. | |||||||||||||||||||||
18 | 1 marks for correct answer. | |||||||||||||||||||||
19 | A=3 1 marks for correct answer. | |||||||||||||||||||||
20 | False 1 marks for correct answer. | |||||||||||||||||||||
21 | 4bit 1 marks for correct answer. | |||||||||||||||||||||
Section II | ||||||||||||||||||||||
22 | (i) List1.insert(3,4) (ii) List1.sort() (iii) del List1[2:9] (iv) print(List1.index(13)) (v) print(max(List1)) 1 mark for each correct answer | |||||||||||||||||||||
23 | (i) Select * from OnlineClass where Attendance>20 and Attendance<40; (ii) Select Meeting_Id from OnlineClass where Application=”Zoom”; (iii) Select Host_Name, Hours from OnlineClass order by Attendance desc; (iv) Select Meeting_Id, Host_Name, Application from OnlineClass where Topic=”MySQL”; (v) insert into OnlineClass values(106,”Webex”,”Alex”,”Lists and Dictioanries”,2,30); 1 mark for each correct query | |||||||||||||||||||||
Part B | ||||||||||||||||||||||
Section I | ||||||||||||||||||||||
24 | 1 mark for correct definition of System Software 1 mark for correct definition of Application Software | |||||||||||||||||||||
25 | ½ mark for each correct definition of tuple and list ½ mark for each correct example | |||||||||||||||||||||
26 | 5.25 5 8 0 ½ mark for each correct output OR i. dict_keys([1, 2, 3]) ii. 3 1 mark for each correct output | |||||||||||||||||||||
27 | What will be the output produced by the following code fragments- (i) 26 22 18 14 10
1 mark for correct output (ii) 20 1 mark for correct output OR i=1 while i<10: print(i) i=i+2 ½ mark for initialisation 1 mark for correct while loop ½ mark for increment | |||||||||||||||||||||
28 | Items={'Ravi':89,'Suman':95,'Anil':70} 2 marks for correct declaring dictionary | |||||||||||||||||||||
29 | Find the output of the queries based on the following relation STUDENT: (i)
(ii)
1 mark for each correct output | |||||||||||||||||||||
30 | Create table Customer ( Custid int(4) Primary key, Custname varchar(25), Balance Decimal(5,2), Creditlimit int(8) ); ½ mark for create table statement ½ mark for primary key constraint 1 mark for rest of correct table definition | |||||||||||||||||||||
31 | ½ mark for correct definition of DDL and DML ½ mark for example of DDL and DML | |||||||||||||||||||||
32 | Wild card characters used in SQL select queries for pattern matching are % and _ . Eg. Select * from student where name like “S%”; Will show details of all students whose name starts with S. 1 mark for correct wild card characters 1 mark for any correct example. | |||||||||||||||||||||
33 | 2 marks for correct explaination. | |||||||||||||||||||||
Section II | ||||||||||||||||||||||
34 | (i) 2 MB= 2 * 1024 * 1024 bytes 1 mark for correct answer (ii) ½ mark for each correct function of operating system (iii) ½ mark for each correct definition of CU and ALU. | |||||||||||||||||||||
35 | 1 mark for accepting 3 numbers 1 marks for correct usage of if..elif..else statement 1 mark for correct indentation OR ½ mark for accepting number 1 mark for correct syntax of while / for loop 1 mark for multiplication ½ mark for indentation | |||||||||||||||||||||
36 | (i) Select * from employee where salary between 30000 and 5000; 1 mark for correct query (ii) ½ mark for correct definition of candidate key and ½ mark for correct example. (iii) 1 mark for correct definition of domain | |||||||||||||||||||||
37 | (i) degree=3 cardinality=4 After adding 5 rows, cardinality will be 9. 1 mark before adding rows 1 mark after adding rows (ii) ½ mark for each correct advantage of database system. OR (i) FL_No (ii) Degree=5, Cardinality=3 (iii) Varchar 1 mark for each correct answer | |||||||||||||||||||||
Section III | ||||||||||||||||||||||
38 | (i) ½ mark for correct initialisation 1 mark for correct loop 1 mark for correct multiplication ½ mark for increment OR ½ mark for correct accepting 2 numbers 1 mark for correct loop 1 mark for summing numbers ½ mark for increment
(ii) ½ mark for accepting number 1 mark for correct loop 1 mark for checking remainder ½ mark for increment OR ½ mark for accepting percentage 2 marks for correct usage of if..elif..else statement ½ mark for correct indentation (iii) ½ mark for correct definition of comments ½ mark for correct syntax OR ½ mark for correct definition of keywords ½ mark for correct example | |||||||||||||||||||||
39 | (i) Select Voterno, Votername, Age from Voter order by Age; (ii) Select * from Voter where Address=”Guwahati”; (iii) Select * from Voter where Address=”Delhi” and Age>30; (iv) Select Votername, Address from Voter where Votername like “S%”; (v) Select * from Voter where Address=”Delhi” or Address=”Mumbai” Or Select * from Voter where Address in(”Delhi”,”Mumbai”); 1 mark for each correct query. | |||||||||||||||||||||
40 | (i) 1 mark for correct definition of cloud computing ½ mark for each correct advantage (ii) Artificial Intelligence 1 mark for correct answer (iii) IoT = Internet of Things VR =Virtual Reality ½ mark for each correct expansion (iv) 1 mark for correct definition of block chain technology |
************** End of Paper **************
No comments:
If you have any doubt so you can comment me then i will 100% help you ,Through comment Chat