stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
IGCSE Computer science Chapter 8 Programming Flashcards | StudBud
Explore
/
IGCSE Computer science Chapter 8 Programming
IGCSE Computer science Chapter 8 Programming
21 terms
·
StudBud Administration
·
70 plays
Imported from external platform
Flashcards
21 cards
F
Practice quiz
P
Host live
L
Questions
21
Answers
1
Which of this method of class String is used to obtain a length of String object?
lengthof()
get()
capacity()
length()
2
What does a WHILE loop do?
Repeats the instructions until a condition is met
Stops the program running
Repeats the instructions a certain number of times
Prints "Hello" on the screen
3
what are Boolean operators
All of the Above
OR
NOT
AND
4
What is camel case?
A case statement that is as big as a camel.
A suitcase used when traveling by camel?
Starts with lower case and every other word is upper case.
A format invented by nomadic tribes in the Sahara.
5
An algorithm can be represented as pseudocode because
pseudo code is a cross between computer code and English
pseudocode is computer code
pseudocode is the same thing as English
pseudocode is the same thing as Blockly
6
What is programming ?
Gaming is the running of specialized applications known as electronic
Click Teams from the App bar.Click the Join or Create a Team.
The process of creating a set of instructions that tell the computer tasks.
7
What does the CASE statement do?
Same job as multiple IF/ELSE statements
The same thing as a single IF ELSE statement
Looks at each instruction on a case by case basis
Selects one instruction from a set
8
What are variables in programming?
None of the above
Numbers and text stored in memory
Code blocks
Loops
9
The 'while' loop iterates an instruction for a fixed number of times
True
False
10
How would we fix this code?
Remove the '='
Removed the ' ' from around Bob
Remove the ( ) around name
Make 'Name' lower case
11
What is an IF function?
A fork in the road, watch out!
Function that tests something first and gives you 2 options
A road sign
After the test you can have 2 values, true or false
12
What is the output of this code?
I love Coding
I love my_class
"I love Coding"
13
Arithmetic operators are used to
Store a value
Determine if something is true
Make mathematical calculations
Compare different amounts
14
A substring is:
A frayed string
A line of code beneath another
A string on a submarine.
A word or part of a longer string
15
Why else can pseudocode be used?
To switch laptops on
To switch laptops off
No idea
It can help programmers to develop algorithms
16
What are data types
a programming language used in computing
the programming language so that operations can be preformed
Like 4g and 3g
5g coming soon!!!!
17
If you know how many times you want a loop to iterate, you should use what type of loop?
if else
while
do while
for
18
What type of statement is an IF...ELSE...ENDIF statement?
Selection
Consequence
Iteration
Sequence
19
Sequence
something that repeats over and over again
a language
set of steps in order to finish a task
an algorthim
20
Which of these contains all of the correct logical operators?
&& , || , & , | , ^ , ~ , >> , << , >>>
<< , >> , >>> , &, | , ^ , ~
= , += , -= , *= , /= , %=
&& , || , !
21
What can constants not do?
have a name or a label
be declared at the start of the program
store data values
be changed as the program runs