stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Basics Flashcards | StudBud
Explore
/
Python Basics
Python Basics
16 terms
·
StudBud Administration
·
91 plays
Test your knowledge of Python programming language and its basic concepts
Flashcards
16 cards
F
Practice quiz
P
Host live
L
Questions
16
Answers
1
True or false: '==' checks for equality.
True
False
2
True or false: Comments make code clearer.
False
True
3
What does 'x = 15.0' represent?
Integer
Float
Boolean
String
4
True or false: Python is outdated.
False
True
5
How to write a single-line comment?
= This is a comment
# This is a comment
/ This is a comment
/* This is a comment */
6
True or false: A while loop runs indefinitely if true.
True
False
7
True or false: The 'if' statement checks conditions.
False
True
8
What is the common extension for Python files?
.docx
.html
.py
.ppt
9
True or false: Meaningful variable names are important.
False
True
10
What is the purpose of the elif statement?
To end the program
To replace if statements
To check multiple conditions
To check one condition
11
What is Python known for?
Limited applications
Being difficult to learn
Only for web design
Being powerful and easy
12
True or false: Python is free to use.
True
False
13
Which operator performs integer division?
8//3
8%3
8*3
8/3
14
What does 'age = 16' define in Python?
A function name
The age of a person
A secret code
A variable storing 16
15
What is the data type of 'name = "John"'?
Integer
Float
String
Text
16
True or false: Variable names can start with numbers.
False
True