Orange IP065 11 QP
Orange IP065 11 QP
Orange IP065 11 QP
General Instructions:
● This question paper contains 37 questions.
● The paper is divided into 5 Sections- A, B, C, D, and E.
● Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
● Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
● Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
● Section D consists of 2 questions (33 to 34). Each question carries 4 Marks.
● Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
● All programming questions are to be answered using Python Language only.
● In case of MCQ, text of the correct answer should also be written.
[1]
5. What value will be produced when the following expression is evaluated? 1
not False and True or False
(A) None
(B) 0
(C) True
(D) False
6. Rudra wants to access the second-to-last list element of the list object, myList. Help him select 1
an appropriate expression to accomplish his task.
(A) myList[2]
(B) myList[-2]
(C) myList [len(myList)-4]
(D) myList-2
11. Identify which of the following SQL queries is incorrect and will result in an error: 1
(A) SELECT * FROM EMP WHERE EMPID = 10003;
(B) SELECT EMPID FROM EMP WHERE EMPID = 10006;
(C) SELECT EMPID FROM EMP;
(D) SELECT EMPID WHERE EMPID =10009 AND LASTNAME='GUPTA';
[2]
12. Which of the following is NOT true about an RDBMS? 1
(A) It follows a relational data model to define and represent data
(B) It stands for Relational Data Management System
(C) It allows users to enforce various constraints on data.
(D) Each attribute in a relation has a unique name
14. Which of the following signifies the absence of value in a MySQL table? 1
(A) None
(B) NULL
(C) Space
(D) 0 (Zero)
17. _______________technology makes the users feel as if they truly exist in a virtual 1
environment.
(A) NLP
(B) AR
(C) VR
(D) ML
19. While in the office, Ravish can use his smartphone to switch on the air conditioner installed at 1
his home. This is an example of ___________.
(A) Machine Learning
(B) Artificial Intelligence
(C) Natural Language Processing
(D) Internet of Things
[3]
Q20 and 21 are ASSERTION AND REASONING-based questions. Mark the correct choice as
(A) Both A and R are true, and R is the correct explanation for A
(B) Both A and R are true, and R is not the correct explanation for A
(C) A is True, but R is False
(D) A is false, but R is True
21. Assertion (A): break statement causes unconditional exit from the loop 1
Reason (R): Once a break statement is encountered, the control moves to the statement
immediately following the loop.
24. Bhavya created a Python program to find out that while reaching to value1, do we encounter 2
value2 somewhere? However, the code contains syntactical errors. Please identify and correct
the errors in the code. Underline the changes you made.
value1 = 2
value2 = 5
for x is range(value1):
if x = value2:
print("EQUAL")
else
print("NOT EQUAL")
25. (i) Write the following code using the while loop: 1+1=
2
for value in range(10,50,5):
value *= 10
print(value)
[4]
26. Consider the table, Emp, given below: 2
27. Write an SQL statement to create the table Salesman with the following fields: 2
salesmanNo - integer
sName – string of size 30
area - string of size 15
target - integer
DOB - date
28. Describe the term Big Data. Give any two characteristics of Big Data. 2
29. Describe the major components of a computer with the help of a suitable block diagram. 3
30. Write a Python program to accept an even number and display the following series: 3
0, 4, 16, 36, 64, ..... nn
OR
Write a program to accept a number and check whether it is a palindrome.
31. For each of the following function calls, write the start value, stop value, step value, and the 3
sequence of values produced:
a. range(5)
b. range(-5,5,2)
c. range(3,-3)
[5]
32. Consider the table Student given below: 3
TABLE: Student
RollNo SName Stream Average
101 Sita Sharma Science 95
102 Gita Verma Commerce 94
103 Jay Shah Commerce 96
104 Smita Roy Science
105 Suresh Menon Science 89
106 Sneha Patel Commerce 67
107 Sudhir Guha Humanities 87
108 Hina Verma Humanities 77
For each of the following queries ((a) to (c)), write the output that will be produced on its
execution :
a. SELECT SNAME FROM STUDENT WHERE Stream = "Science" AND average >90;
b. SELECT Stream FROM STUDENT;
c. SELECT * FROM STUDENT WHERE Average BETWEEN 85 AND 95;
SECTION D (2 × 4 = 8 marks)
33. (i) Manvi has just learnt about the different types of operators. She has decided to 2+2=
practice the if-else statement with a mix of operators. With loads of effort, she came 4
up with a program that finally showed no syntax errors. Now she is trying the code,
she has made, with multiple inputs to see how it works and find out if the program is
working according to what she is expecting out of it.
Consider the code given below:
(ii) Write a program to accept roll numbers and marks of n (user-defined value) students
and store them in a dictionary.
[6]
34. Diya is preparing SQL for her interview. She has few similar terms in hand that are confusing 2+2=
her a lot. Differentiate between the following terms with suitable examples to help her clarify 4
her doubts and perform her best in her interview. (Differentiate between any two)
a. s
36. Consider a dictionary Points comprising name:points entries of the students, and the list sAge 5
given below:
Points = {"Varun" : 10, "Arnav" : 3, "Smita" : 7, "Shaily" :
10, "Aadil" : 5}
sAge = [11, 12, 15, 10, 13]
Write the statements (using built-in Functions) to perform the following tasks:
a. add an entry to the given dictionary for Simran, having 7 points.
b. display the number of key-value pairs in the given dictionary.
c. delete all elements of the dictionary.
d. display the highest age value from the list sAge.
e. display the value of a list, sAge in ascending order.
[7]