Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Python » Python Objective Questions

Python Objective Questions - Set 1

Set 1 of 3


Question: 1

Level: Beginner Category of MCQ: other


Question: 2

(A) List is mutable && Tuple is immutable
(B) List is immutable && Tuple is mutable
(C) Both are Immutable
(D) Both are Mutable.

Level: Beginner Category of MCQ: variables


Question: 3

(A) b
(B) syntax error
(C) c
(D) b+1

Level: Beginner Category of MCQ: other


Question: 4

(A) list
(B) bool
(C) int
(D) str

Level: Beginner Category of MCQ: methods


Question: 5

(A) list
(B) bool
(C) int
(D) str

Level: Beginner Category of MCQ: variables


Question: 6

(A) Hello World
(B) Compilation Error
(C) Bye World
(D) Ambiguity

Level: Beginner Category of MCQ: variables


Question: 7

(A) a
(B) b
(C) c
(D) d

Level: Beginner Category of MCQ: variables


Question: 8

(A) 4.3
(B) 4.0
(C) 4
(D) compilation error

Level: Beginner Category of MCQ: operators


Question: 9

(A) cpp-buzz
(B) cppbuzz
(C) TypeError: unsupported operand
(D) None of the above

Level: Beginner Category of MCQ: other


Question: 10

(A) a+b
(B) a+''+b
(C) a+""+b
(D) All of the above

Level: Beginner Category of MCQ: other


Question: 11

(A) listA = listB[]
(B) listA = listB[:]
(C) listA = listB[]()
(D) listA = listB

Level: Practitioner Category of MCQ: other


Question: 12

(A) bikes[0]
(B) bikes[-1]
(C) bikes[lpos]
(D) bikes[:-1]

Level: Beginner Category of MCQ: other


Question: 13

(A) def __init__()
(B) def _init_()
(C) _init_()
(D) All of these

Level: Beginner Category of MCQ: classesAndobjects


Question: 14

(A) pbuzz
(B) buzzc
(C) bu
(D) None of these

Level: Beginner Category of MCQ: methods


Question: 15

(A) length()
(B) len()
(C) strlen()
(D) stringlength()

Level: Beginner Category of MCQ: methods


Question: 16

(A) fruit = 'banana'
(B) fruit = "banana"
(C) fruit = banana
(D) fruit = (banana)

Level: Beginner Category of MCQ: variables


Question: 17

(A) function
(B) def
(C) method
(D) All of these

Level: Beginner Category of MCQ: methods


Question: 18

(A) Yes
(B) No

Level: Beginner Category of MCQ: conditional


Question: 19

(A) //
(B) ''
(C) /**/
(D) #

Level: Beginner Category of MCQ: other


Question: 20

(A) else
(B) import
(C) raise
(D) All of these

Level: Beginner Category of MCQ: other



Test Your Python Skills Python Cheat Sheet