Which one is correct way of declaring variable in python?

G12 Sem 2 T 3

Quiz
•
Information Technology (IT)
•
12th Grade
•
Easy
Ab Fil
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Profesi Utama di Bidang Informatika

Quiz
•
10th Grade - University
14 questions
C++ QUIZ

Quiz
•
12th Grade
8 questions
Understanding Web Development Stacks

Quiz
•
11th Grade - University
10 questions
Quizzi bài 29 Tin học 10

Quiz
•
10th Grade - University
12 questions
eXtensible Markup Language

Quiz
•
12th Grade - University
12 questions
Loop Timedoor

Quiz
•
9th - 12th Grade
12 questions
AI Quiz. Coding Club

Quiz
•
9th - 12th Grade
10 questions
Unity Modul 2 Quiz

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University