stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Platform STEM Chapter 1 Test Review (1.1 - 1.9) Flashcards | StudBud
Explore
/
Platform STEM Chapter 1 Test Review (1.1 - 1.9)
Platform STEM Chapter 1 Test Review (1.1 - 1.9)
30 terms
·
StudBud Administration
·
51 plays
A revision quiz
Flashcards
30 cards
F
Practice quiz
P
Host live
L
Questions
30
Answers
1
What are the two main data types in Python?
numbers and Boolean
Strings and numbers
Boolean
Strings and floats
2
# symbol is used for comments
Both
True
False
3
Python is a programming language in codes while scratch is a program using block of codes.
True
False
4
Text is what data type?
String
Real
Integer
Boolean
5
What do we use to define a block of code in Python language?
Indentation
Key
Brackets
None of these
6
What is computer science?
Rocket science
Liking my friend's post on Instagram
the study of how we solve real human problems using technology.
League of Legends
7
This code is doing something....what is the name of this process?
Finding the length
Substring
Printing names
Concatenation
8
What is the difference between hardware and software?
all of the above
Hardware is physical machine while software programs that run on hardware.
Software is physical machine while hardware programs that run on hardware.
9
The Python interpreter ALWAYS run on your computer.
True
False
10
What does the "input" code do in Python
Asks the user to input numbers
Asks the user to stand on their head
Asks the User to input information
asks the user to output data
11
Which is the correct way to get an input from a user?
x = input("Enter value")
x.input("Enter value")
x = USERINPUT
x = userinput()
12
Python's keywords are NOT case sensitive.
False
True
13
What is the symbol for div in python?
/
&
%
div
14
Which of these would result in an error in python?
a
c
d
b
15
What does the str command do?
none of the above
all of the above
Changes a string to a numeber so it can be combined with other floats
Changes a number to a String so it can be combined with other Strings
16
Computer understands this language
Machine code
Medium level programming language
Assembly language
High level programming language
17
Which of the following words cannot be a variable in python language?
_try_
try
_val
val
18
Which of the following functions is a built-in function in python language?
None of these
print()
val()
printf()
19
What is the difference between analog and digital?
Digital data from the real world & analog is info converted to numeric data
Analog data from real world & digital is info converted to numeric data
all of the above
none of the above
20
A variable value in Python cannot be updated
True
False
21
Assume that found = False. What will happen if townName = Leicester?
Once it has found Leicester in the list, the loop will stop
It finds Leicester within the list so found is set to true
As Leicester is not in the list, found will remain as false
22
text = "I am just absolutely fantastic" a = SUBSTRING(0,8, text) What is assigned to a?
just absolutely
I am just
I am just absolutely fantastic
absolutely fantastic
23
This piece of Python code is an example of an ....
Decision
Input/Output
Termination
Process
24
What type of language is Python?
Compiled
A stupid One
An Object Based One
Interpreted
25
Write the code to input a number.
num = int (input ("Enter a number: "))
num = input ("Enter a number: ")
num = int ("Enter a number: "))
int = input ("Enter a number: ")
26
List the three types of software
Compiler, data & variable
all of the above
None of the above
Operating System, applications & Compiler
27
Which is the correct way to declare a variable?
name."Ms. Bah"
name = ("Ms. Bah")
NAME = "Ms. Bah"
name = MissFlewitt
28
a = 5 and b = 10, which of the following will x = TRUE
If NOT(a < 10 and b < 20) then x = TRUE
If a > 10 or b > 10 then x = FALSE
If a > 3 or b > 10 then x = TRUE
If a > 3 and b > 10 then x = TRUE
29
Assume that found = False. What will be printed if townName = Margate?
found = False
Nothing
Well done, you have found Margate
found = True
30
What is the CPU?
none of the above
all of the above
Central Processing Unitand carries out the program instructions
Central Processing Format and doesn't carriy out the program instructions