
Python Programming Basics Quiz

Quiz
•
Information Technology (IT)
•
University
•
Hard

amna mohammed
Used 2+ times
FREE Resource
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"
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
IT01

Quiz
•
University
10 questions
Quiz 2

Quiz
•
University
10 questions
CSA Africa Python Workshop

Quiz
•
University
10 questions
Викторина ИИ

Quiz
•
University
15 questions
Selection Programming_If condition

Quiz
•
8th Grade - University
10 questions
Cuestionario I Big data: Conceptos

Quiz
•
University
13 questions
Python Programming Quiz

Quiz
•
University
10 questions
Refresh Python

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 Information Technology (IT)
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