stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Introductory Python Quiz Flashcards | StudBud
Explore
/
Introductory Python Quiz
Introductory Python Quiz
15 terms
·
StudBud Administration
·
11 plays
Use this for your Intro to CS class or related difficulty classes!
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
What package can you use to make a simple Python GUI?
shapes_n_stuff
C#
tkinter
Swing
2
How do you assign a String to a variable? (Assuming no previous variables are declared)
ourString = text
ourString = "Some text"
STRING "text"
"text" = ourString
3
What displays text to the console?
Console.log()
print()
System.out.println()
display()
4
How do you get the console to print the answer to 5 + 5?
print(((5 * 2) + 6) % 11)
10
answer = 5 + 5
print(5 + 5)
5
How many people have experienced 2D Lists/Arrays?
I have but they hurt my brain.
I have not...
I haven't but I want to!
I have!
6
What word is used to import packages into a project?
export
import
give
use
7
4 * 5 = 20
False
True
8
Python is a general use programming language
True
False
9
What function takes the square root of an integer?
math.sqrt()
sqrt()
squareroot()
Math()
10
What is a function in Python?
A special math equation
Reusable code that only returns values
Really convenient
Reusable code that takes in parameters
11
What function do you use to cast an integer to a String?
float()
str()
print_as_String()
print(int())
12
Trivia: Where was the name "Python" inspired from?
The snake
Monty Python
Pythagorean Theorem
Pythagoras
13
How many times does this for-loop run?
5
6
10
4
14
Advanced: How many times does THIS for loop run?
16
100
15
50
15
You can create GUIs with Python
True
False