Quiz
Python Basics
Este quiz tem tipos de pergunta que abrem no player de sempre.
Perguntas do quiz (25)
1[blank_start]print[blank_end]("Hello, World!")
- Aprint
2Select the following parenthesis during input.
'Hello!,everyone.'
'Hello!,everyone.'
"Hello!,everyone."- A" "
- B""" """
- C''' '''
- D' '
3[blank_start]#[blank_end]This is a Single line comment
- A#
4[blank_start]'''[blank_end]This is a
multi-lined
comment'''- A'''
5myVariableName = "John"
MyVariableName = "John"
my_variable_name = "John"- ASnake Case, Camel Case and Pascal Case
- BCamel Case, Pascal Case and Snake Case
- CPascal Case, Camel Case and Snake Case
6x, y, z = "Orange", "Banana", "Cherry"
print(x)
print(y)
print(z)
Select the output in order- ACherry , Orange , Banana
- BOrange , Banana , Cherry
- CBanana , Cherry , Orange
7fruits = ["apple", "banana", "cherry"]
x, y, z = fruits
print(x)
print(y)
print(z)- Abanana , cherry , apple
- Bcherry , apple , banana
- Capple , banana , cherry
8x = "Hello World"
- Aint
- Blist
- Cstr
- Dset
9x = 20
- Atuple
- Blist
- Cfloat
- Dint
10x = 20.5
- Afloat
- Bint
- Cstr
- Dtuple
11x = 1j
- Astring
- Bfloat
- Cint
- Dcomplex
12x = ["apple", "banana", "cherry"]
- ASet
- BTuple
- CDictionary
- DList
13x = ("apple", "banana", "cherry")
- ADictionary
- BTuple
- CSet
- DFrozen-set
14x = range(6)
- AFloat
- BStr
- CInt
- DRange
15x = {"name" : "John", "age" : 36}
- AFrozen-set
- BDict
- CSet
- DTuple
16x = {"apple", "banana", "cherry"}
- ASet
- BTuple
- CDictionary
- DList
17x = frozenset({"apple", "banana", "cherry"})
- AFrozen-set
- BSet
- CDictionary
- DList
18x = True
- AStr
- BBool
- CInt
- DTuple
19x = b"Hello"
- ASet
- BTuple
- CBytes
- DInt
20x = bytearray(5)
- ASet
- BBytearray
- CBytes
- DFrozenset
21x = memoryview(bytes(5))
- ABytearray
- BMemoryview
- CInt
- DBytes
22Input:
x=10
print([blank_start]type(x)[blank_end])
Output:
<class 'int'>- Atype(x)
23You cannot convert [blank_start]complex[blank_end] numbers into another number type.
- Acomplex
24x = int(1)
y = int(2.8)
z = int("3")
Select the right output- A1.0 ,2.8 , 3.0
- B1 ,2.8 , 3
- C1.0 ,2.0, 3.0
- D1 ,2, 3
25x = float(1)
y = float(2.8)
z = float("3")- A1.0 ,2.8 , 3.0
- B1.0 ,2.0, 3.0
- C1 ,2.8 , 3
- D1 ,2, 3
Informações
- Descrição
- Computer Science Quiz sobre Python Basics, criado por revanth naidu em 28-03-2021.
- Autor
- revanth naidu
- Idioma
- English
- Visualizações
- 2
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz