Question 1
What are boolean values in programming?
Correct Answer:
True and false values used in conditions
Explanation:
Boolean values are true or false, and they’re what let programs make decisions. When you test a condition in an if statement or a loop, the result is either true (the condition is met) or false (it isn’t). Those true/false results come from comparisons like 5 > 3 or 2 == 2, and from combining statements with and, or, and not. This true/false information tells the program which path to take or whether to keep repeating a block. Booleans are a distinct type in many languages, separate from numbers or text, though some languages also treat other values as true or false in a broader sense (truthy or falsy).
Question 2
Which term describes the common programming structure that implements conditional statements?
Correct Answer:
If-Statement
Explanation:
Conditional decisions in a program are handled by checking a condition and taking different actions depending on whether that condition is true. The common structure for this is the if-statement, which evaluates a condition and runs a block of code when the condition is true. It can also include an else part to run something when the condition is false, and sometimes else-if for additional checks. For example: if (temperature > 100) { alert('Too hot'); } An expression is any combination that yields a value, such as a comparison like x > 5. The result of that comparison is a Boolean—true or false—which can serve as the condition inside the if-statement. Abstraction is about simplifying complexity, not about the specific control flow used to make decisions. So the term that names this common programming structure for implementing conditional logic is the if-statement.
Question 3
Which term refers to the language used to describe how HTML elements should be styled?
Correct Answer:
CSS
Explanation:
Styling language is CSS. HTML defines the page structure and content, while CSS describes how that content should look—such as colors, fonts, spacing, and layout. CSS uses selectors to target elements and declarations to set presentation properties, allowing you to change appearance without altering the underlying content. The other options don’t fit because HTML is for structure, JavaScript handles behavior and interactivity, and XML is another markup language not specifically used for styling web pages.
Question 4
Which term means any valid unit of code that resolves to a value?
Correct Answer:
Expression
Explanation:
An expression is any valid unit of code that evaluates to a value. This includes simple values like 7 or true, variables like x, or more complex combinations such as x + 3 or max(a, b) * 2. The key idea is that expressions are things the computer can compute to produce a value, which is different from actions that don’t yield a value. Boolean refers to a data type for true/false, which is a kind of value an expression can produce but isn’t itself the unit of code that resolves to a value. Frame isn’t a standard term for a unit of code, and Abstraction is about hiding details to manage complexity, not a code unit that yields a value. So the best fit for “any valid unit of code that resolves to a value” is the expression.
Question 5
What is the purpose of the tag in HTML?
Correct Answer:
To define a paragraph of text.
Explanation:
Using a

tag creates a paragraph of text in HTML. It marks a block of content as a paragraph, which gives it the typical paragraph spacing in browsers and makes it easy to style with CSS. You wrap sentences inside

…

to separate different blocks of text. This tag is specifically for text paragraphs, not for embedding video, creating lists, or making hyperlinks (those use
Question 1
Exam overview

About this Exam

Prepare with the Code.org Computer Science Discoveries Practice Test practice quiz. This question bank includes 10 questions covering term, html, programming, structure, and elements. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

Code.org Computer Science Discoveries Practice Test

This practice set contains 10 questions from the matching question bank and focuses on term, html, programming, structure, and elements. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions