1) What is correct syntax to output"Hello World". a) print("Hello World") b) Print('Hello World') c) print('hello World') d) All 2) How do you insert comments in multiple lines? a) ''' b) # c) """ d) a and c 3) Which one is not a legal variable name? a) _avar b) avr@ c) _a_vr d) AVAR 4) How will you create a variable with string "Go India"? a) x=go india b) x="Go India" c) str(x)="Go India" d) None 5) In Python , a variable may be assigned a value of one type, and later assigned of different type. a) True b) False 6) Consider statements:  n=300 ,m=n .Python has created how many objects and references?   a) One,Two b) Two,Two c) One,One d) Two,One 7) Which Python built in function returns unique number assigned to an object? a) ref() b) input() c) id() d) type() 8) Which of the following are valid Python Variables names: a) Age b) home-address c) home*address d) var1.3 9) What will be output, x=36/4*(3+2)*4+2 a) 182.0 b) 117 c) 32 d) error 10) For x in range(.5 , 5.5, .5):This is called a) selection b) sequence c) Iteration d) None

Tauler de classificació

Estil visual

Opcions

Canvia de fonament

Restaurar desada automàtica: ?