Interactive Quiz for Chapter 11

Question
Your Answer Result/Explanation
11.1
Write a statement that declares a pointer variable named p of the int type.
11.2
Write a statement that assigns the address of a int variable count to a pointer p.
11.3
Write an expression that returns the value pointed by a pointer variable p.
11.4
Define a synonym named DoublePrecision for the double type.
11.5
Assume int list[] = {1, 2, 3, 4}, write an expression that returns the first element in the array using a pointer.
11.6
Assume int list[] = {1, 2, 3, 4}, write an expression that returns the second element in the array using a pointer.
11.7
Write an expression that returns the minimal element in an array named list of 6 elements.
11.8
Write an expression that returns the maximal element in an array named list of 6 elements.
11.9
Write a statement that sorts an array named list of 6 elements.
11.10
Write a statement that randomly shuffles an array named list of 6 elements.
11.11
Write a statement that declares a pointer p and assign a Circle object to the pointer. The Circle object is created using its no-arg constructor.
11.12
Assume p is a pointer for a Circle object, write an expression that returns the area of the circle using the -> operator.
11.13
Assume p is a pointer for a Circle object, write an expression that returns the area of the circle using the * operator.