Get the FREE certificate on C, C++, Java, Python, Perl, PHP, SQL, Linux & Javascript!  

CppBuzz.com
  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux

You are here : Home » Python Objective Questions

Python Objective Questions - 19 Questions


Question: 1

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

Beginner other[Posted by: Admin | Chicago, USA]



Question: 2

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

Beginner other[Posted by: Admin | Chicago, USA]



Question: 3

(A) Yes
(B) No

Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 4

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

Beginner methods[Posted by: Admin | Chicago, USA]



Question: 5

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

Beginner variables[Posted by: Admin | Chicago, USA]



Question: 6

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

Beginner methods[Posted by: Admin | Chicago, USA]



Question: 7

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

Beginner methods[Posted by: Admin | Chicago, USA]



Question: 8

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

Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 9

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

Beginner other[Posted by: Admin | Chicago, USA]



Question: 10

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

Practionar other[Posted by: Admin | Chicago, USA]



Question: 11

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

Beginner other[Posted by: Admin | Chicago, USA]



Question: 12

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

Beginner other[Posted by: Admin | Chicago, USA]



Question: 13

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

Beginner operators[Posted by: Harshit Gupta | Allahabad,India]



Question: 14

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

Beginner variables[Posted by: Harshit Gupta | Allahabad,India]



Question: 15

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

Beginner variables[Posted by: Harshit Gupta | Allahabad,India]



Question: 16

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

Beginner variables[Posted by: Harshit Gupta | Allahabad,India]



Question: 17

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

Beginner methods[Posted by: Harshit Gupta | Allahabad,India]



Question: 18

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

Beginner other[Posted by: Harshit Gupta | Allahabad,India]



Question: 19

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

Beginner variables[Posted by: Shani pratap singh | Pune]



[Contribute Here]