stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Basics Flashcards | StudBud
Explore
/
Python Basics
Python Basics
10 terms
·
StudBud Administration
·
296 plays
A #CS Quiz covering basic #Python concepts along with some generic, introductory #programming ideas.
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
Data types are...
Something that repeats
How we provide instructions to a computer
A way to classify information
A branch in code that changes based on data.
2
Which type of data only contains a number?
Floating point
Character
Boolean
String
3
I want a loop to repeat 5 times. Which line will accomplish that in Python?
Repeat(5):
while True:
(i=1; i++, i = 5)
for x in range(5):
4
Which type of data only contains True and False?
Character
String
Floating point number
Boolean
5
What is a program?
A branch in code
A decision based on information
A set of instructions
Something that repeats over and over
6
A loop is...
A way to classify information
A branch in code that changes based on data.
Something that repeats
How we provide instructions to a computer
7
Which function gets information from the user?
else:
input()
print()
str()
8
What does Python use to group code together?
Indentation
The hash symbol before and after the code
Putting all code inside parentheses
Putting all code inside curly braces { }
9
Which function changes the contents to a string data type?
else:
print()
input()
str()
10
A conditional statement is...
Something that repeats
A branch in code that changes based on data.
A way to classify information
How we provide instructions to a computer