Q1: Which variable holds the Node environment information?
- A: `process.env.NODE_ENV`
- B: `process.dev.NODE_ENV`
- C: `node.env.NODE_ENV`
- D: `process.env.DEVELOPMENT`
Answer: A
Q2: What type of variable is `isDevelopment`?
- A: A constant variable
- B: A dynamic variable
- C: A string variable
- D: A boolean variable
Answer: C
Q3: If `isDevelopment` is true, which environment is the code running in?
- A: Production
- B: Development
- C: Testing
- D: Staging
Answer: B
Q4: What condition determines the value of `isDevelopment`?
- A: `isDevelopment = 'development'`
- B: `isDevelopment == 'development'`
- C: `isDevelopment === true`
- D: `process.env.NODE_ENV === 'development'`
Answer: D
Q5: If `process.env.NODE_ENV` is 'development', what value does `isDevelopment` hold?
- A: True
- B: False
- C: Null
- D: Undefined
Answer: A
Q6: If `process.env.NODE_ENV` is 'production', what value does `isDevelopment` hold?
- A: True
- B: False
- C: Null
- D: Undefined
Answer: B
Q7: What is a common use case for checking the value of `isDevelopment`?
- A: Check system compatibility
- B: Enable debugging tools
- C: Execute environment-specific code
- D: Optimize code for production
Answer: C
Q8: What is `process.env.NODE_ENV`?
- A: An environment variable
- B: A global variable
- C: A local variable
- D: A function parameter
Answer: A
Q9: What are the possible values of `process.env.NODE_ENV`?
- A: `'development'` if in development mode, `'production'` otherwise
- B: `true` if in development mode, `false` otherwise
- C: `1` if in development mode, `0` otherwise
- D: A string representing the current environment
Answer: D
Q10: What is the primary purpose of using environment variables like `NODE_ENV`?
- A: To define global constants
- B: To configure environment-specific behavior
- C: To store sensitive information
- D: To manage dependencies
Answer: B