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

You are here : Home » Python Objective Questions

Python Objective Questions - 19


Question: 1

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

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



Question: 2

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

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



Question: 3

(A) Yes
(B) No

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



Question: 4

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

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



Question: 5

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

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



Question: 6

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

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



Question: 7

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

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



Question: 8

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

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



Question: 9

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

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



Question: 10

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

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



Question: 11

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

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



Question: 12

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

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



Question: 13

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

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



Question: 14

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

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



Question: 15

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

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



Question: 16

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

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



Question: 17

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

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



Question: 18

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

DiscussOnForum
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.

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



[Contribute Here]