No student devices needed. Know more
26 questions
What is a programming language?
Written English
An artificial language used to program a computer
A language used in pseudocode
Machine code
What is a program?
A series of a step-by-step instructions that tell a computer how to solve a task
A video that is watched on a computer
A flowchart written on a computer
The make and model of a computer
What does the print command do?
Outputs a hard copy of a program to a printer
Outputs a message on screen
Print a hard copy of a flow chart to a printer
Prints out the the commands line by line on the screen
How do we get user input from the keyboard?
input = (What is your name?)
input = What is your name?
output = ("What is your name?")
input("What is your name? ")
Which data type would you use for the quantity of stock in a shop?
integer
float
string
boolean
If you want to change the data type to an integer which line of code would you use?
int ("How much pocket money do you have?")
input("How much pocket money do you have?")
int(input("How much pocket money do you have?"))
int = ("How much pocket money do you have?")
What is a variable in Python
A reserved memory location in computer used to store data.
A statement that allows a program to follow a different path
A choice in an if statement
A smaller program with in a bigger programme
What would we call number 1, number 2 and sum in Python
number1=input("Input first number: ")
# variable to store 1st number
number2=input("Input second number: ")
# variable to store 2nd number
sum=number1 + number2
Process
Selection
Pesudocode
Variable
Which symbols are used to open and close a list?
( ) round brackets
( ) curly brackets
[ ] square brackets
" " speech marks
Which of these is the correct code for creating a list of names?
nameList = John, Harry, Jesse, John, Harry, Harry
nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList = [John, Harry, Jesse, John, Harry, Harry]
people = ["John", "Rob", "Bob"]
print (people[1])
what would this result be?
List items have an index number. In the following list, which item has the index number of 3?
["John", "Harry", "Jesse", "John", "Jeremy", "Tom"]
"John"
"Harry"
"Jesse"
"Jeremy"
Which of these pieces of code would return the name "Harry" from the following list?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList()
nameList[1]
NameList(4)
nameList["4"]
In programming, iteration means ....
Never repeating code
repeating a piece of code
switching between code sections
hacking
Which is an example of iteration?
While
if
print()
int()
Conditional Iteration is
Iteration that lasts for a set number of times
Iteration that depends on the value of a variable
Iteration written by an amateur
Iteration with mistakes in it
In programming, selection means ....
Never repeating code
repeating a piece of code
switching between parts of the code based on conditions
hacking
to compare 2 values use
=
==
===
=?
How can you add a comment in Python
type in red
add speech marks
add # before the comment
write it in italics
Why should you add comments in Python?
To make the program work better
To help people to understand what the code does
To Show how clever you are
To protect the code form errors
Which of these is the definition of Big Data?
Data sets that are too large or complex for traditional data processing tools to handle.
Data sets of numbers that have extremely large values (both positive and negative)
There are both positive and negative effects of data collection
True
False
Credit card transactions, measurements, sound files, and images that can be classified as Big Data Sets.
True
False
Spreadsheets and databases are examples of software tools that allow us to process Big Data.
True
False
Big Data is significant because of all of the following except it___________________.
helps us in identifying trends in data
allows us to determine how much data a database can store
can be used to make connections in data
helps us solve questions we might have
Explore all questions with a free account