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