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 difference between '==' and '=' in many languages?
Answer: '==' compares values while '=' assigns a value
A single equals sign assigns a value, while a double equals sign tests for equality.
Which of the following describes 'concatenation'?
Answer: Joining two or more strings together
Concatenation combines strings into one longer string.
What is an integer?
Answer: A whole number without a decimal point
An integer is a whole number, positive or negative, with no fractional part.
What does the term 'compile' mean?
Answer: Translate source code into machine-readable instructions
Compiling converts human-written code into a form the computer can execute.
In an array indexed starting at 0, which index holds the first element?
Answer: 0
Most languages use zero-based indexing, so the first element is at index 0.
What is a 'bug' in programming?
Answer: An error or flaw that causes incorrect behavior
A bug is a mistake in code that produces unexpected or incorrect results.
Which structure runs code while a condition remains true?
Answer: while loop
A while loop continues executing as long as its condition evaluates to true.