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

  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux

You are here : Home » Python Objective Questions

Python Objective Questions - 12 Questions


Question: 1

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

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



Question: 2

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

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



Question: 3

(A) Yes
(B) No

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



Question: 4

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

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



Question: 5

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

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



Question: 6

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

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



Question: 7

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

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



Question: 8

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

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



Question: 9

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

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



Question: 10

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

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



Question: 11

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

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



Question: 12

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

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



[Contribute Here]