stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
PYM Day 9 Flashcards | StudBud
Explore
/
PYM Day 9
PYM Day 9
28 terms
·
StudBud Administration
·
4 plays
Data Types and Conditions
Flashcards
28 cards
F
Practice quiz
P
Host live
L
Questions
28
Answers
1
_______ are used when an action is required based on options.
Conditions
Variables
Integers
Booleans
2
The two types of boolean values are True and False
False
True
3
To extend conditions, python programmers can connect multiple IF statements together using _______ statements.
NOT
AND
ELIF
IF
4
A data structure is a method of organizing and storing data so that it can easily be accessed and acted upon.
True
False
5
Conditional Operations: ____ reverses the result of the operation
"And"
"Xor"
"Or"
"Not"
6
A python String (STR) is identified by...
.
/ /
" "
*
7
____, _____, and ____ are the types of variables in Python
X, Y, and Z
ALPHA, BETA, and CHARLIE
Hot Potato, Cold Potato, and Boiled Potato
String, Interger, and Float
8
In Python, what is slicing? (Select ONE of TWO correct answers below)
A method of taking specific characters from a string
Also known as "string sub-string"
An innate way to cut/delete half of your python program
What we do to sandwiches, bread, pizza, and cake
9
Python programmers connect multiple STRs together by using....
+
%
!
@
10
In Python, the Split() function.....
Separates integers from strings within a body of code
Separates long strings from short strings in order to organize code
Separates a string and arranges it as a list
Separates a line into two lines
11
Conditional Operations: In ___ condition, only one of the operations needs to be true.
"Not"
"And"
"Or"
"Xor"
12
In Python mathematical operators, ** means.....
** means exponent
** means multiply by 2
** means divide
** is short for "print" and will end the function
13
Other data types can be added to a STR
False
True
14
Python programmer cannot use as many booleans as they want in a program. There is a boolean limit.
True
False
15
In Python type casting, "str()" constructs a string from a wide variety of data types.
False
True
16
A Python Tuple is NOT (two possible answers, select one)...
An immutable sequence of Python objects
Read-only and cannot beedited
Underscored and indented
Separated by parantheses
17
In Python mathematical operators, * means.....
* means end of statement
* means star
* means time to go home
* means multiply
18
Python data structures can hold other data structures and this is called Embedded Data
False
True
19
In Python type casting, "float()" constructs a floating number from an integer or a float.
False
True
20
In Python type casting, "int()" constructs an integer number casted from a string or a float.
False
True
21
Data structures in Python include dictionary, tuple, and ____.
Chain
List
Analogy
Thesaurus
22
A ____ is a type of Python variable
String
All of the above
Float
Integer
23
It's over! I really enjoyed this class
agreed
respectfully yes
give us harder questions
Python is easy
24
Which of the below is NOT a true statements about Python Dictionaries:
A dictionary in python is a collection of items
Only lowercase letters are accepted in Python dictionaries
Items in the dictionary have a key:value format
Dictionaries are identified by curly brackets
25
Conditions are executed by ________ statements.
IF and OR
ELSE and PRINT
IF and ELSE
TRY and END
26
The correct syntax (the correct way to write) a user input is:
input__:
input:
input()
input*
27
Variable names must begin with a _____ or underscore
Number
Letter
Symbol
Picture
28
_______ are used to store data for reference and manipulation in computer programs.
Integers
Variables
Bash hash
Boxes