1. The keyword ……………………... used at method declaration to specify that the method returns an integer value in a minimum domain range . 2. To check if two string variables string1 and string2 refer to the same memory address we use the command ……………………… 3. The integer type that could not be promoted to another type is …………………….... 4. The purpose of (int) in the statement: int x = (int)(Math.log(16)); is to ……………………...... 5. In order to read from the user a character value in a single line, we use the command ……………………... 6. In order to assigning a float value in a short variable, we have to use a casting of type ……………………...... 7. Consider the array: int[] values={75,69,10,15,33,410,213}; what is the value of the statement: System.out.println(values.length); …………………….... 8. To know the number of items in the first row in a 2D array variable array2D we use the command ……………………... 9. Regarding the size of variable type, the necessary condition for automatic type conversion is ……………………...... 10. Consider the following array declaration: byte[][] byteValues = {{7,2,12}, {1,3,10,11}, {8,30}}; What is the value of the item byteValues[2][1] after executing the expression: byteValues[2][1] -= byteValues[1][3];

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.4: Program Input Using Cin
Problem 9E
icon
Related questions
Question

Question 1: (10 marks)
Complete the following sentences by filling the right word(s). Each question carries one
point.
1. The keyword ……………………... used at method declaration to specify that the method returns
an integer value in a minimum domain range .
2. To check if two string variables string1 and string2 refer to the same memory address
we use the command ………………………
3. The integer type that could not be promoted to another type is ……………………....
4. The purpose of (int) in the statement: int x = (int)(Math.log(16)); is to
……………………......
5. In order to read from the user a character value in a single line, we use the command
……………………...
6. In order to assigning a float value in a short variable, we have to use a casting of type
……………………......
7. Consider the array: int[] values={75,69,10,15,33,410,213}; what is the value of
the statement: System.out.println(values.length); ……………………....
8. To know the number of items in the first row in a 2D array variable array2D we use the
command ……………………...
9. Regarding the size of variable type, the necessary condition for automatic type conversion is
……………………......
10. Consider the following array declaration:
byte[][] byteValues = {{7,2,12}, {1,3,10,11}, {8,30}};
What is the value of the item byteValues[2][1] after executing the expression:
byteValues[2][1] -= byteValues[1][3];

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning