stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Basics Pt.2 Flashcards | StudBud
Explore
/
Python Basics Pt.2
Python Basics Pt.2
23 terms
·
StudBud Administration
·
275 plays
#Basics of #Programming in the #Python language
Flashcards
23 cards
F
Practice quiz
P
Host live
L
Questions
23
Answers
1
In Python this symbol is an...
A sign mint opera ray tore
Telephone Operator
Assignment Operator
Equality checker
2
Loops will repeat commands until an expression is...
False
Perfectly Divisible
Indented
True
3
What kind of number does not contain a decimal
Irrational
Float
Integer
Variable
4
What is the result of: 7%4
1
4
11
3
5
The assignment operator assigns a new ____________ to a variable.
String
Variable
Value
Statement
6
Extra information passed into a method to modify what the method does
Parameters
Parentheses
Arguments
Comments
7
When using the assignment operator, the variable must be on the _______________ side.
Strong
Right
Left
8
Which of the following is an example of an
expression
input()
numBounces < 0
student.walk()
Parameter
9
Which symbol below can comment a single line of text in Python?
^
//
#
/*
10
Which of the following are an example of an infinite loop?
while numBounces > 3:
to infinity and beyond
while true:
while ture:
11
Expresses action to be carried out
Variables
Method
Command
Statement
12
Pieces of information that will not be executed & are used to explain part of your code
Comments
Methods
Parameters
Commands
13
Which line below is written correctly?
whlie clothes > 0:
while clothes > 0
while clothes > 0.
while clothes > 0:
14
What are used to repeat actions, without having to write the same line of code over and over
Methods
Comments
Commands
Loops
15
How many lines can you put inside a loop
Two
One
Ten
As many as needed
16
When using the input method, what do we store the user response in?
Cookie Jar
Loop
Variable
Parameter
17
To be included 'inside' a loop, commands must be...
telepathically shared from the mind of Daniel Chavez
true
indented
new
18
Which symbol returns the remainder after division?
-
*
%
/
19
Text is a specific type of data called
Variables
Booleans
Strings
Brackets
20
True or False: Variable names can have spaces between words
False
True
21
The rules for correct spelling, grammar, and punctuation in a programming language
Sequence
Syntax
Comments
Methods
22
a specific data type used for text. (a sequence of characters)
Integer
Float
String
Variable
23
Which of the following is a number with a decimal?
Float
Integer
String
Modulus