Basic Python Coding

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
choki dorji
Used 795+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is correct way of declaring and initializing a variable, x with value 5?
int x
x=5
int x=5
x=5
declare x=5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not valid variable name in Python?
_var
var_name
var11
11var
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is False?
Variable names can be arbitrarily long.
They can contain both letters and numbers.
Variable name can begin with underscore.
Variable name can begin with number.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print 10//3
3.5
3
1
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the operator means less than equal to ?
>
<
>=
<=
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the correct output
PYn PYnat ive PYnativ
Yna PYnat tiv PYnativ
Yna PYnat tive PYnativ
Yna PYnat tive PYnative
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
8. If, else and elif is used for…..
Selection
Indentation
printing
iteration
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quiz on String

Quiz
•
12th Grade
20 questions
Ch.8 - Introducing Python

Quiz
•
6th Grade - Professio...
20 questions
Lists - Built in Functions

Quiz
•
11th Grade
20 questions
Python while loops

Quiz
•
12th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
11 questions
Python Quiz

Quiz
•
12th Grade
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
11 questions
4.3 - Trosi Rhifau Pwynt Arnawf

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade