Pregunta 1
Pregunta
What is the result of 2 + 3 * 4 in Python?
Pregunta 2
Pregunta
Which of the following is a valid variable name in Python?
Respuesta
-
1variable
-
my_variable
-
variable-1
-
var&ble
Pregunta 3
Pregunta
What will be the output of print("Hello" * 3) in Python?
Respuesta
-
HelloHelloHello
-
9
-
Hello 3 times
-
Rasengan
Pregunta 4
Pregunta
In Python, which statement is used to make a decision based on a condition?
Pregunta 5
Pregunta
How do you define a function in Python?
Respuesta
-
function myFunction():
-
define myFunction():
-
def myFunction():
-
func myFunction():
Pregunta 6
Pregunta
What is the correct way to call a function named my_function with two arguments in Python?
Respuesta
-
call my_function()
-
function my_function()
-
my_function(arguments)
-
my_function(arg1, arg2)
Pregunta 7
Pregunta
What will the following code snippet output: 5 > 3 and 10 < 20?
Pregunta 8
Pregunta
Which data type can not execute a calculation in Python?
Respuesta
-
string
-
integer
-
float
-
all of above
Pregunta 9
Pregunta
What does the "return" statement do in a function?
Pregunta 10
Pregunta
What is the result of range(7) in Python?
Respuesta
-
1,2,3,4,5,6
-
0,1,2,3,4,5,6
-
0,1,2,3,4,5,6,7
-
1,2,3,4,5,6,7
Pregunta 11
Pregunta
Which of the following program segment (s) is an example of a compound(複合的) conditional statement in Python?
Respuesta
-
if x > 5 or y < 10:
-
if x > 5 and y < 10:
-
if x > 5 then y < 10:
-
if x > 5
Pregunta 12
Pregunta
What is the output of print(3 == 3) in Python?
Pregunta 13
Pregunta
What is the purpose of the not keyword in Python?
Pregunta 14
Pregunta
What will be the output of the following code snippet?
Pregunta 15
Pregunta
What does the != operator signify in Python?
Respuesta
-
Less than or equal to
-
Not equal to
-
Greater than or equal to
-
Assignment
Pregunta 16
Pregunta
What will be the output of the following code snippet?
Respuesta
-
Out of range
-
In range
-
out of range
-
Zaphkiel Bet
Pregunta 17
Pregunta
What is the value of z after the execution of the following code snippet?
def my_function(x, y):
return x + y
z = my_function(3, 4) * 2
Pregunta 18
Pregunta
What is the value of z after the execution of the following code snippet?
Pregunta 19
Pregunta
What will be the output of the following code snippet?
Pregunta 20
Pregunta
What will be the output of the following code snippet?
Respuesta
-
3.33333
3
-
3
3.33333
-
error
-
3 / 3
3 // 3
Pregunta 21
Pregunta
What is the result of True + True in Python?
Pregunta 22
Pregunta
Are you ready for the test?
Respuesta
-
Absolute Cinema
-
Yes
-
No
-
Will Win
Pregunta 23
Pregunta
What will be the output of the following code snippet?
Respuesta
-
2
3
-
2
2.66666
-
8
3
-
2.66666
2
Pregunta 24
Pregunta
What will be the output of the following code snippet?
Pregunta 25
Pregunta
What is the value of the result variable in the following code snippet?
Pregunta 26
Pregunta
What does the += operator do in Python?
Respuesta
-
Subtracts the right operand from the left operand
-
Multiplies the left operand by the right operand
-
Adds the right operand to the left operand
-
None of the above
Pregunta 27
Pregunta
What will be the output of the following code snippet?
Pregunta 28
Pregunta
What is the result of (True or False and True) in Python?
Respuesta
-
True
-
False
-
Error
-
None of the above
Pregunta 29
Pregunta
What does the // operator do in Python?
Pregunta 30
Pregunta
the display output of
print (f" Answer = { name } ")
is equivalent to
print ("Answer = name")
Pregunta 31
Pregunta
Write a Python program segment to ask "the user to input their test mark" and store it in the test variable as a float type. The programme should ask the user a question "What is your test result? >"
[blank_start]test[blank_end] = [blank_start]float([blank_end][blank_start]input([blank_end][blank_start]"What is your test result? >"[blank_end][blank_start]))[blank_end]
Respuesta
-
test
-
text
-
float(
-
int(
-
str(
-
input(
-
output(
-
"What is your test result? >"
-
"What is your test result?"
-
"What is your text result? >"
-
"what is your text result? >"
-
"What is your text result?>"
-
))
Pregunta 32
Pregunta
The Data type of variable "Future" is String
SYNY = 1
Future = SYNY == "True"
Pregunta 33
Pregunta
Which of the following variable names uses the snake case approach?
Respuesta
-
3711ModuleCode
-
SeeYouNextYear
-
HKIIT_Modules
-
if
Pregunta 34
Pregunta
Which of the following variable names uses the camel case approach?
Respuesta
-
seeYouNextYear
-
HKIIT_Modules
-
3711moduleCode
-
____main____
Pregunta 35
Pregunta
Which of the following variable names uses the Pascal Case approach?
Respuesta
-
See You Next Year
-
See_You_Next_Year
-
SeeYouNextYear
-
ifelse
Pregunta 36
Pregunta
What is the correct way to declare a variable in Python?
Respuesta
-
create variable mark is 100;
-
x <- 100
-
dim Sum As Integer = "HarGow";
-
SeeYouNextYear = "Higher Diploma"
Pregunta 37
Pregunta
What is the value of the variable Result stored when the following Python segment is executed?
Pregunta 38
Pregunta
Which of the following Python segments is/are able to execute the below function CallMe()?
Pregunta 39
Pregunta
Which of the following Python segments able to execute the provided function CallMe() and display the result
21850000 Call Me
Pregunta 40
Pregunta
Which operator is used to calculate reminders in Python?
Pregunta 41
Pregunta
Which of the following Python code is a correct answer to the following expression?
Expression: 73% of 467
Respuesta
-
467 * 0.73
-
467 // 0.73
-
467 * 73%
-
467 // 73/100
Pregunta 42
Pregunta
Which of the following is/are a software development stage?
Respuesta
-
Planning
-
Analysis
-
Design
-
Implementation
-
Katon Goukakyuu no jutsu
Pregunta 43
Pregunta
What is the output of the following program segment?
print(10*(3.7 + 2.3))
Pregunta 44
Pregunta
What is the displayed result of the Python program segment?
Respuesta
-
GoodGood Bye
-
=========
=========
GoodGood Bye
-
=========
GoodGood Bye
=========
-
=========
Jutsushiki jyunten "Ao", Jutsushiki hanten "Aka"
=========
Pregunta 45
Pregunta
What is the python expression that can represent the following mathematics equation?
Respuesta
-
(a + b) ** (5/2)
-
(a + b) ** (2/5)
-
(a + b) ^ (2/5)
-
(a + b) ^ (5/2)
Pregunta 46
Pregunta
Choose all of the following Python expression(s) that are possible to represent the displayed mathematics equation.
Pregunta 47
Pregunta
What is the displayed result when the following Python code executed?
Respuesta
-
GGWP
WPGG
-
WPGG
GGWP
-
Error
-
GGWP
-
WPGG
Pregunta 48
Pregunta
What will be the output of the following code segnment?
Pregunta 49
Pregunta
What will be the output of the following code segment?
Pregunta 50
Pregunta
What happens if a function in Python does not have a return statement?
Pregunta 51
Pregunta
Identify the data type of the following variables.
Respuesta
-
string
-
float
-
integer
-
float
-
boolean