APCSP 5.6-5.10 Quiz Questions with Correct Answers
Question 1:
Concatenate
Answer:
to link together or join. Typically used when joining together text Strings in programming (e.g.
"Hello, "+name)
Question 2:
String
A string is a sequence of ASCII character
You can use "" to reset a value
Answer:
Any sequence of characters between quotation marks (ex: "hello", "42", "this is a string!").
"\n" is kind of like enter
Question 3:
Conditionals
Answer:
Statements that only run under certain conditions.
Question 4:
If-Statement
Answer:
The common programming structure that implements "conditional statements".
Question 5:
Selection
Answer:
A generic term for a type of programming statement (usually an if-statement) that uses a
Boolean condition to determine, or select, whether or not to run a certain block of statements
Question 1:
Concatenate
Answer:
to link together or join. Typically used when joining together text Strings in programming (e.g.
"Hello, "+name)
Question 2:
String
A string is a sequence of ASCII character
You can use "" to reset a value
Answer:
Any sequence of characters between quotation marks (ex: "hello", "42", "this is a string!").
"\n" is kind of like enter
Question 3:
Conditionals
Answer:
Statements that only run under certain conditions.
Question 4:
If-Statement
Answer:
The common programming structure that implements "conditional statements".
Question 5:
Selection
Answer:
A generic term for a type of programming statement (usually an if-statement) that uses a
Boolean condition to determine, or select, whether or not to run a certain block of statements