Python Basics

Quiz
•
Computers
•
University
•
Medium
Used 128+ 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
10 questions
algorithms INTRO

Quiz
•
KG - University
15 questions
Data Types & Variables

Quiz
•
University
10 questions
V1 unit 3 and 4Quiz

Quiz
•
University
10 questions
Python Sets

Quiz
•
University
12 questions
Python Quiz

Quiz
•
University
15 questions
Python Quiz 1 : Variable, Data Types, Slicing

Quiz
•
University
10 questions
python quiz

Quiz
•
6th Grade - Professio...
10 questions
basic programming quiz

Quiz
•
University
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
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University