stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Year 11 revision - Programming concepts Flashcards | StudBud
Explore
/
Year 11 revision - Programming concepts
Year 11 revision - Programming concepts
16 terms
·
StudBud Administration
·
106 plays
Variables, constants, data types, sequence, selection, iteration
Flashcards
16 cards
F
Practice quiz
P
Host live
L
Questions
16
Answers
1
Which symbol is used to represent an if statement in a flow chart?
Diamond
Parallelogram
Oval
Rectangle
2
What is an algorithm?
Rules on how devices communicate
Step by step instructions on how to solve a problem
Breaking a problem down I to smaller problems
A data structure
3
Which of these is not a built-in function in python?
str
print
input
character
4
What is selection?
Using a while loop
Using a for loop
Executing one line after another
Using an if statement
5
What is a constant?
An identifier to store a value that does not change
A
An identifier to store a value that changes
6
Iteration is ...
Looping
Executing line after line
An algorithm
if statements
7
An example of a logic error is..
Making a spelling mistake
Inputting the incorrect data type
Using the incorrect < or >
Dividing a number by zero
8
What is a local variable?
A variable that can be used anywhere within the program
A variable that can only be used in a subroutine
9
What is an integer?
True or False
A whole number
A mixture of letters and numbers
A decimal number
10
What is a variable?
A value that doesn't change
a data type
a string
An identifier used to store a value
11
Which would NOT be an example of a syntax error?
if x < y:
Plint
def my_subroutine
while true:
12
What data type would DIV or // return?
Boolean
Float
String
Integer
13
How does AQA declare a variable in pseudo code?
name ← "Peter"
"Peter" = name
name → "Peter"
name = "Peter"
14
A condition controlled loop is ...
for loop
while loop
15
What is a data type?
A value that doesn't change
It determines what you can do with your data
A mixture of letters and numbers
A value that changes
16
What value does MOD or % return?
Subtraction of two numbers
Addition of two numbers
The remainder
A percentage