MCQ Question Paper (Python + E-Commerce)
1. Which type of language is Python?
(a) Object Oriented
(b) SQL
(c) Functional
(d) All of these
2. Which is not an e-banking service?
(a) Google Pay
(b) PhonePe
(c) ATM
(d) Cheque Payment
3.
x = 10
y=x
x=x+5
print(y)
(a) 10
(b) 15
(c) 5
(d) Error
4. Full form of C2G Model
(a) Consumer to Guarantor
(b) Candidate to Government
(c) Candidates Guarantor
(d) Consumer to Government
5. Which is the Python command line?
(a) >>
(b) C:>
(c) $
(d) >>>
6.
tuple1 = (1, 2, 4, 3)
tuple2 = (1, 2, 3, 4)
print(tuple1 <= tuple2)
(a) True
(b) False
(c) Null
(d) Error
7. Which is a Dictionary?
(a) "123"
(b) {1 2 3}
(c) (1 2 3)
(d) {'a':1,'b':2,'c':3}
8. Which is not an e-commerce company?
(a) Amazon
(b) Flipkart
(c) Myntra
(d) Maruti Suzuki
9.
a=3
b=5
c=a*b
print(c)
(a) 125
(b) 15
(c) 243
(d) none of these
10. Assertion (A): Python supports more than one execution mode.
Reason (R): It is not possible to store code in Interactive mode.
(a) A and R both true
(b) A and R both false
(c) A true and R false
(d) A false and R true
11.
x = {1:"a", 2:"b"}
print([Link]())
(a) [1,2]
(b) ["a","b"]
(c) [(1,"a"),(2,"b")]
(d) [1,2,a,b]
12. Which Symbol is used for single line comment?
(a) //
(b) >>
(c) /* … */
(d) #
13. Rupay card belongs to which type?
(a) Credit Card
(b) Identity Card
(c) Debit Card
(d) Post Paid Card
14.
x = "hello"
print([Link]())
(a) HELLO
(b) Hello
(c) hEllo
(d) OLLEH
15. Python is a ______ type of Programming Language.
(a) Compiler
(b) Interpreter
(c) Assembler
(d) Linker
16. Which is cryptocurrency?
(a) Dollar
(b) Riyal
(c) Bitcoin
(d) Rupee
17.
print(2 * "Ta")
(a) Ta
(b) 2Ta
(c) Tata
(d) Ta2
18. Column Matching – Operators
(A) + / % * – ** → (i) Logical Operator
(B) != > < == → (ii) Arithmetic Operator
(C) not, and, or → (iii) Comparison Operator
(D) 7 % 2 → (iv) Remainder
Options:
(a) A-(iv), B-(iii), C-(ii), D-(i)
(b) A-(ii), B-(iv), C-(iii), D-(i)
(c) A-(iv), B-(iii), C-(i), D-(ii)
(d) A-(ii), B-(iii), C-(i), D-(iv)
19.
L1 = [10, 15]
L2 = [20, 40]
L3 = L1 + L2
print(L3)
(a) [20,40,10,15]
(b) [20,15,40,10]
(c) [10,15,20,40]
(d) none
20. Which is not an example of Internet marketing?
(a) Facebook Ad
(b) YouTube Ad
(c) Shopee Display
(d) Website Ad
21.
for i in range(1,6,2):
print(i,end=" ")
(a) 1 3 5
(b) 5 3 1
(c) Error
(d) none
22. Which is the example of string data?
(a) 'COMA'
(b) "COMA"
(c) """COMA"""
(d) All of these
23.
a=5
if a > 0:
print("Positive")
else:
print("Negative")
(a) positive
(b) negative
(c) zero
(d) error
24. Which is not a UPI App?
(a) BHIM
(b) Paytm
(c) PhonePe
(d) Flipkart
25.
for i in range(3):
print(i)
(a) 012
(b) 123
(c) 0123
(d) 01234
26. Column Matching – Data types
(a) List → (i) Sorted and not immutable
(b) Tuple → (ii) Sorted and mutable
(c) Set → (iii) Key-value added
(d) Dictionary → (iv) Not sorted, no recursion
Options:
(a) a-(ii), b-(i), c-(iii), d-(iv)
(b) a-(ii), b-(i), c-(iv), d-(iii)
(c) a-(i), b-(ii), c-(iv), d-(iii)
(d) a-(ii), b-(iv), c-(i), d-(iii)
27.
Str = "Welcome"
Str[3] = 'p'
print(Str)
(a) Welcome P
(b) P Welcome
(c) Welpome
(d) error
28. Which is iterable in Python?
(a) String
(b) List
(c) Tuple
(d) All of these
29.
L = [13,18,20,10,18,23,50]
print([Link](18))
(a) 0
(b) 6
(c) 8
(d) 2
30. Operator of power in Python
(a) x^y
(b) x * y
(c) x^Ay
(d) x**y
31.
C=0
while C < 5:
print(C)
C += 1
(a) 01234
(b) 012345
(c) 12345
(d) Infinite Loop
32. Type of x=3.1415
(a) int
(b) integer
(c) float
(d) none
33.
t = [1,2,4,3]
print(t[1:3])
(a) (1,4)
(b) (1,2,4)
(c) (2,4)
(d) (2,4,3)
34. Data type of x=True
(a) Integer
(b) String
(c) Float
(d) Boolean
35. Correct code to calculate sqrt(81)
(a) import math → sqrt(81)
(b) import math → print(sqrt(81))
(c) print([Link](81))
(d) import math → print([Link](81))
36. Which line will cause an error?
a) def f(a, b=2, c=3):
b) def f(a=1, b=2):
c) def f(a, b):
d) def f(a=1, b):
37.
x = 10
y = "20"
print(x + int(y))
(a) 1020
(b) 30
(c) "1020"
(d) "2010"
38. What is the output?
x=5
def change():
global x
x = 10
change()
print(x)
a) 5
b) 10
c) Error
d) None
39. Python Tuple vs Dictionary mutability
(a) Both true
(b) Both false
(c) I true, II false
(d) I false, II true
40. What does [Link]() do in Python?
a) Removes whitespace from both ends of the string
b) Removes spaces only from start
c) Removes punctuation
d) Removes tabs