
Python Programming Basics Quiz
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
amna mohammed
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is Python, and why is it a popular programming language?
It's a type of snake, popular for its strength.
It's a programming language known for its readability and versatility.
It's a type of software for making games.
It's an operating system like Windows or MacOS.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a simple "Hello, World!" program in Python?
print("Hello, World!")
echo "Hello, World!"
console.log("Hello, World!")
printf("Hello, World!")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are variables in Python? Can you give an example of how to create and use one?
Variables store data values; example: x = 5
Variables are used to display messages; example: show("x")
Variables are used to create loops; example: for x in range(5)
Variables define functions; example: def x()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between integers and floats in Python.
Integers are whole numbers, floats are numbers with decimal points.
Integers are text, floats are images.
Integers are positive numbers, floats are negative numbers.
Integers are large numbers, floats are small numbers.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to start a comment in Python?
//
#
/* */
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the command to create the directory for Exercise 00 in Cell 0?
mkdir -p ~/discovery_piscine/cell00/ex00
mkdir cell00/ex00
create dir ~/discovery_piscine/cell00/ex00
make directory ~/discovery_piscine/cell00/ex00
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Cell 0, Exercise 01, what does the script 42.py print?
"Hello World"
42
"My first script"
"Python is awesome"
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
ADBM_Quiz_2_C
Quiz
•
University
13 questions
Explorando Jogos Digitais e Criatividade
Quiz
•
9th Grade - University
10 questions
Entity Relationship Diagram
Quiz
•
University
15 questions
Huawei Security
Quiz
•
University
10 questions
Abstracciones procedimentales
Quiz
•
University
13 questions
Session 15 + 16 : Function
Quiz
•
University
10 questions
Veri Tabanı Yönetim Sistemleri
Quiz
•
12th Grade - University
15 questions
Web Application - PHP Repetition
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
