MCQ Collection
china-ncre-2 MCQs
Practice china-ncre-2 questions with answers and explanations.
Choose an option to check your answer.
Correct Answer: C. A primary key uniquely identifies each row in a table
Explanation:
Primary-key values are unique and support reliable row identification and relationships.
Choose an option to check your answer.
Correct Answer: C. Encapsulation groups data with methods and controls access to internal state
Explanation:
Encapsulation supports modular design by hiding implementation details behind a defined interface.
Choose an option to check your answer.
Correct Answer: B. Big-O notation describes how resource use grows with input size
Explanation:
Asymptotic notation characterises growth rates rather than exact machine-specific time.
Choose an option to check your answer.
Correct Answer: A. A primary key uniquely identifies each row in a table
Explanation:
Primary-key values are unique and support reliable row identification and relationships.
Choose an option to check your answer.
Correct Answer: C. Encapsulation groups data with methods and controls access to internal state
Explanation:
Encapsulation supports modular design by hiding implementation details behind a defined interface.
Choose an option to check your answer.
Correct Answer: D. Testing seeks evidence about defects and behaviour but cannot prove the complete absence of defects
Explanation:
Testing samples behaviour against expectations; exhaustive proof is usually infeasible.
Choose an option to check your answer.
Correct Answer: B. A data type constrains the values and operations valid for a variable
Explanation:
Types define representation and permitted operations, helping programs detect invalid use.
Choose an option to check your answer.
Correct Answer: A. A function packages reusable behaviour and parameters supply inputs to that behaviour
Explanation:
Functions support abstraction and reuse, while parameters pass values into a call.
Choose an option to check your answer.
Correct Answer: A. A useful debugging process reproduces the fault, isolates causes and verifies the fix with tests
Explanation:
Reproduction, isolation and regression testing make a fix explainable and less likely to create new faults.
Choose an option to check your answer.
Correct Answer: D. Big-O notation describes how resource use grows with input size
Explanation:
Asymptotic notation characterises growth rates rather than exact machine-specific time.
Choose an option to check your answer.
Correct Answer: C. A primary key uniquely identifies each row in a table
Explanation:
Primary-key values are unique and support reliable row identification and relationships.
Choose an option to check your answer.
Correct Answer: B. Encapsulation groups data with methods and controls access to internal state
Explanation:
Encapsulation supports modular design by hiding implementation details behind a defined interface.