Q. What is the value of cos^(-1)(0)?
Solution
cos(π/2) = 0, thus cos^(-1)(0) = π/2.
Correct Answer:
B
— π/2
Learn More →
Q. What is the value of cos^(-1)(1/2)?
-
A.
π/6
-
B.
π/4
-
C.
π/3
-
D.
π/2
Solution
cos(π/3) = 1/2, thus cos^(-1)(1/2) = π/3.
Correct Answer:
C
— π/3
Learn More →
Q. What is the value of sin^(-1)(1/2)?
-
A.
π/6
-
B.
π/4
-
C.
π/3
-
D.
π/2
Solution
sin(π/6) = 1/2, therefore sin^(-1)(1/2) = π/6.
Correct Answer:
A
— π/6
Learn More →
Q. What is the value of tan^(-1)(0)?
Solution
tan(0) = 0, thus tan^(-1)(0) = 0.
Correct Answer:
A
— 0
Learn More →
Q. Which of the following best describes a loop in programming?
-
A.
A way to store data
-
B.
A sequence of instructions that repeats until a condition is met
-
C.
A method to define a function
-
D.
A way to create objects
Solution
A loop is a control structure that allows a sequence of instructions to be executed repeatedly until a specified condition is met.
Correct Answer:
B
— A sequence of instructions that repeats until a condition is met
Learn More →
Q. Which of the following is a common debugging technique?
-
A.
Adding more variables
-
B.
Using print statements to track variable values
-
C.
Removing all loops
-
D.
Ignoring error messages
Solution
Using print statements to track variable values is a common debugging technique that helps identify where errors occur in the code.
Correct Answer:
B
— Using print statements to track variable values
Learn More →
Q. Which of the following is NOT a characteristic of functions in programming?
-
A.
They can take parameters
-
B.
They can return values
-
C.
They can only be called once
-
D.
They can encapsulate code
Solution
Functions can be called multiple times, so the statement that they can only be called once is NOT a characteristic of functions.
Correct Answer:
C
— They can only be called once
Learn More →
Showing 61 to 67 of 67 (3 Pages)