Python Programming Quiz

Quiz
•
Computers
•
5th Grade
•
Hard
Debaprasad Maity
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the extension of a Python file?
.txt
.py
.java
.doc
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Who began working on Python in the late 1980s?
Dennis Ritchie
Guido van Rossum
James Gosling
Bjarne Stroustrup
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does indentation in Python indicate?
A function
A variable
A block of code
A comment
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to create a comment in Python?
/* This is a comment */
<-- This is a comment -->
# This is a comment
// This is a comment
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the print() function in Python?
To output a variable
To create variables
To define a function
To import libraries
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a data type in Python?
int
float
array
string
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in Python?
A way to create comments
A method to handle errors
A block of code that runs when called
A type of variable
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
quiz 1

Quiz
•
1st - 5th Grade
10 questions
Python Basics Quiz

Quiz
•
5th Grade
10 questions
Roblox Scripting Quiz 1

Quiz
•
5th Grade
15 questions
Computer Coding Quiz

Quiz
•
2nd - 8th Grade
10 questions
Python тілінде программалау

Quiz
•
1st - 10th Grade
10 questions
Trabajo Básico con Python 3

Quiz
•
5th Grade
10 questions
HTML Language

Quiz
•
KG - 12th Grade
10 questions
Intro to Python

Quiz
•
KG - 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