Completion Complete each statement. 36. The two categories of shortcut arithmeti
ID: 3918179 • Letter: C
Question
Completion Complete each statement.
36. The two categories of shortcut arithmetic operators are ____________________ operators and increment and decrement operators.
37. Each case in a switch statement can be followed by any number of statements to execute. Unlike with the if statement, the statements to be executed do not need to be contained in a block with ____________________.
38. Memory locations beyond an array are ____________________ for the array.
39. To “____________________” means to take precedence over.
40. A(n) ____________________ constructor is one that does not require any arguments.
Matching
Match each term with the correct statement below. a. implementation section f. this pointer b. class variable g. interface c. abstract data type h. polymorphism d. pointer-to-member operator i. access modifier e. class
____ 41. category of objects
____ 42. contains the functions of a class
____ 43. field that does not belong to a specific object
____ 44. looks like an arrow
____ 45. allows the same operation to be carried out differently depending on the object
Explanation / Answer
36. The two categories of shortcut arithmetic operators are ____________________ operators and increment and decrement operators.
Answer: ++ and –
++ operator is used to increase the operand value by one.
-- operator is used to decrease the operand value by one.
37. Each case in a switch statement can be followed by any number of statements to execute. Unlike with the if statement, the statements to be executed do not need to be contained in a block with ____________________.
Answer: Curly brackets
In switch case if we want to execute more than one statement we do not need to enclose the statements within opening curly bracket “{” and closing curly bracket “}”. The case is terminated by break statement.
38. Memory locations beyond an array are ____________________ for the array.
Answer: Index out of bounds
Array last index position is always array size minus one. Suppose the array size is 5 then its last index position is 4. If we will refer to the 6th index position then it will show an error message “Array index out of bounds.”
40. A(n) ____________________ constructor is one that does not require any arguments.
Answer: Default constructor
The constructor which does not take any argument are called default constructor.
class 41. category of objects
Each class can have their own objects. So, the objects declared for different class belongs to different category.
interface 42. contains the functions of a class
Interface only contains the declaration part of a class. The functions definition are implemented in class.
class variable 43. field that does not belong to a specific object
The static variables are also called class variables.
pointer-to-member operator 44. looks like an arrow
à operator is called member access operator or pointer to member operator.
polymorphism 45. allows the same operation to be carried out differently depending on the object
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.