QUESTION IMAGE
Question
question: 14
what is the correct keyword to create a constant variable?
○ constant
○ const
○ let
○ def
question: 15
which of the following is part of the navigators role in pair - programming?
○ defining all of the functions
○ focusing on the task at hand
○ thinking of alternative ways to solve the problem
○ initializing the variables
Question 14
To determine the correct keyword for a constant variable:
- "constant" is not a standard keyword in most programming languages (e.g., JavaScript, C++).
- "const" is the standard keyword (e.g., in JavaScript, C++) to declare a constant variable whose value cannot be reassigned.
- "let" is used to declare a variable that can be reassigned (in JavaScript).
- "def" is used for function definitions (e.g., in Python) and not for constants.
In pair - programming, the navigator's role is to review the code, think about the overall approach, and consider alternative solutions.
- "defining all of the functions" is more of the driver's task (the one typing code).
- "focusing on the task at hand" is a general task but not specific to the navigator.
- "thinking of alternative ways to solve the problem" aligns with the navigator's role of providing a broader perspective.
- "initializing the variables" is part of coding, done by the driver.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
B. const