Python Basics

Quiz
•
Computers
•
University
•
Medium
Used 129+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following statements is true?
Python is a high level programming language.
Python is an interpreted language.
Python is an object-oriented language.
All of the above.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is used to define a block of code (body of loop, fuction etc.) in Python?
Curly braces
Parenthesis
Indentation
Quotation
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is correct?
Comments are for programmers for better understanding of the program.
Python Interpreter ignores comment.
You can write multi-line comments in Python using triple quotes, either ''' or """.
All of the above
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is correct?
Variable name can start with an underscore.
Variable name can start with a digit.
Keywords cannot be used as a variable name.
Variable name can have symbols like: @, #, $ etc.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In the following code, n is a/an _______?
n = '5'
integer
string
tuple
operator
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following code?
print(1, 2, 3, 4, sep='*')
1 2 3 4
1234
1*2*3*4
24
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is used to take input from the user in Python?
cin
scanf()
input()
<>
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python2

Quiz
•
8th Grade - University
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
15 questions
Python Basics

Quiz
•
University
13 questions
Principles of Programming

Quiz
•
KG - University
10 questions
02 - Python - Introduction & Installation

Quiz
•
University - Professi...
10 questions
Python3

Quiz
•
4th Grade - University
10 questions
Basic python

Quiz
•
University
10 questions
python test 1_23_24

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University