Aayan Test 1 Result

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Student Name: Aayan Jawad

Teachers Name: Gulsher Naeem


Test Type: Monthly Test 1

Instructions to attempt the Test:


Write all the Answers in your notebook and take the picture of your answer sheet and
upload it on ERP

Question 1: Choose the Correct Option from the following and write it on your notebook.
(5 Marks)
1. Where we use ‘is’ operator in python?
A. Arithmetic Operators
we use 'is' operator in Identity operators
B. Identity Operator
C. Membership Operator
D. None of the above.
2. Which operator is used to check if a value is present in an object?
A. ‘in’
B. ‘not’
C. ‘or’
D. ‘is’

3. The statement below would print a Boolean value, which one?

print (bool("Hello"))

A. True

B. False

C. None of the above

D. Both

4. The statement below would print a Boolean value, which one?

print (bool(0))

A. True

B. False

C. None of the above

D. Both

5. What does the pop() method do in Python lists?

A. Removes the last element

B. Adds an element

C. Removes the first element

D. Returns the length of the list


Question 2: Create a List with the name of Aayan and give the following items to the list that are;
“Samsung”, “Apple”, ”Nokia”. Now use the method to insert “LG” item to the second position of the list?

(Note: Write a Full Program) (5 Marks)

You might also like