Introduction To Coding Flashcards
7 cards from real Amazon practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Introduction To Coding flashcards as text
What is the primary purpose of a variable in programming?
Answer: To store a value that can be referenced and changed later
A variable is a named container that holds a value which can be read or modified during execution.
Which of the following is a Boolean value?
Answer: true
Boolean values are either true or false.
What does a 'loop' allow a program to do?
Answer: Repeat a block of code multiple times
Loops repeat instructions until a condition is met, avoiding duplicated code.
In most languages, what symbol commonly ends a statement?
Answer: Semicolon (;)
Many languages like C, Java, and JavaScript use a semicolon to terminate statements.
What is a function in programming?
Answer: A reusable block of code that performs a task
Functions group instructions so they can be called repeatedly with different inputs.
Which data structure stores an ordered collection of items accessed by index?
Answer: Array
An array (or list) holds multiple values that are accessed by their numeric index.
What is the term for finding and fixing errors in code?
Answer: Debugging
Debugging is the process of locating and resolving bugs or defects in a program.