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
0%
Python Quiz1
Delen
Delen
Delen
door
Mmps
Inhoud Bewerken
Afdrukken
Embedden
Meer
Toewijzingen
Scorebord
Meer weergeven
Minder weergeven
Dit scoreboard is momenteel privé. Klik op
Delen
om het publiek te maken.
Dit scoreboard is uitgeschakeld door de eigenaar.
Dit scoreboard is uitgeschakeld omdat uw opties anders zijn dan die van de eigenaar.
Opties Herstellen
Vakjes openmaken
is een open template. Het genereert geen scores voor een scoreboard.
Inloggen vereist
Visuele stijl
Lettertypen
Abonnement vereist
Opties
Template wisselen
Alles weergeven
Er zullen meer templates verschijnen terwijl je de activiteit gebruikt.
Open resultaten
Kopieer link
QR-code
Verwijderen
Automatisch opgeslagen activiteit "
" herstellen?