
G12 Sem 2 T 3
Authored by Ab Fil
Information Technology (IT)
12th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is correct way of declaring variable in python?
var x
int x
declare x
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is correct way of providing single line comment in python?
//comment text
#comment text
/*comment text*/
<!--comment text-->
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is valid variable naming in python?
7num
num 7
_7num
#num7
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code shown?
15
105
"10+5"
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the error type in the code fragment shown?
Type Error
Name Error
Syntax Error
Invalid Indentation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code fragment shown?
01234
012345
1234
12345
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the if statement in Python?
To define a function
To declare variable
To create a loop
To execute conditional block of code
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?