SPRING 2020 CSIS 212-B01 LUO
• Question 1
- out of 3 points
Which software product release category is "generally feature complete and supposedly bug free, and ready for use by the community?"
Selected Answer: Release candidate.
• Question 2
- out of 3 points
Which of the following statements is false?
Selected
Answer:
Today’s fastest Internet speeds are on the order of trillionsof bits per second with quadrillion-bit-per-second speeds on the horizon.
• Question 3
- out of 3 points
Which of the following statements is false?
Selected Answer: Each class can be used only once to build many objects.
• Question 4
- out of 3 points
Which of the following statements is false?
Selected
Answer:
A quadrillion-instruction-per-section computer can perform in one second more than 100,000 instructions for every person on the planet.
• Question 5
- out of 3 points
Which of the following statements is false?
Selected
Answer:
Android—the fastest-growing mobile and smartphone operating system—is based on the Windows kernel and uses Java.
• Question 6
- out of 3 points
________ involves reworking programs to make them clearer and easier to maintain while preserving their correctness and functionality.
Selected Answer: Refactoring
• Question 7
- out of 3 points
________ models software in terms similar to those that people use to describe real- world objects.
Selected Answer: Object-oriented design
• Question 8
- out of 3 points
Which of the following statements is true?
Selected Answer: The Internet is just a network of computers.
• Question 9
- out of 3 points
All import declarations must be placed
Selected Answer: before the class declaration.
• Question 10
- out of 3 points
Which of the following is a variable declaration statement?
Selected Answer: int total;
• Question 11
- out of 3 points
Which of the following does not contain a syntax error?
Selected Answer: System.out.println("Hello
world!");
• Question 12
- out of 3 points
Which of the following statements does not alter the value stored in a memory location?
Selected Answer: int a;
• Question 13
- out of 3 points
Each of the following is a relational or equality operator except:
Selected Answer: =!
• Question 14
- out of 3 points
When method printf requires multiple arguments, the arguments are separated with
________.
Selected Answer: commas (,).
• Question 15
- out of 3 points
Which of the following cannot cause a syntax error to be reported by the Java compiler?
Selected Answer: An extra blank line.
• Question 16
- out of 3 points
Which of the following statements would display the phase Java is fun?
Selected Answer: System.out.println("hellois fun\rJava ");
• Question 17
- out of 3 points
Which of the following statements is false?
Selected
Answer:
Each class declaration that begins with the access modifier private must be stored in a file that has the same name as the class and ends with the .java filename extension.
• Question 18
- out of 3 points
Floating-point literals are of type ________ by default.
Selected Answer: double
• Question 19
- out of 3 points
An import declaration is not required if you always refer to a class with its ________ name, which includes its package name and class name.
Selected Answer: fully qualified name
• Question 20
- out of 3 points
Which of the following statements is true?
Selected
Answer:
Every instance variable has a default initial value—a value provided by Java when you do not specify the instance variable’s initial value.
• Question 21
- out of 3 points
Which of the following statements is false?
Selected
Answer:
To distinguish a constructor from a class’s operations, the UML places the word “constructor” between double quotes before the constructor’s name.
• Question 22
- out of 3 points
The format specifier %.2f specifies that two digits of precision should be output ________ in the floating-point number.
Selected Answer: to the right of the decimal point
• Question 23
- out of 3 points
Types in Java are divided into two categories. The primitive types are boolean, byte, char, short, int, long, float and double. All other types are ________ types.
Selected Answer: reference
• Question 24
- out of 3 points
Java requires a ________ call for every object that’s created.
Selected Answer: constructor
• Question 25
- out of 3 points
Which of the following statements about the conditional operator (?:) is false?
Selected
Answer:
The second operand is the result value if the condition evaluates to false.
• Question 26
- out of 3 points
What is the size in bits of an int?
Selected Answer: 32
• Question 27
- out of 3 points
Which primitive type can hold the largest value?
Selected Answer: double
• Question 28
- out of 3 points
Which of the following statements is true?
Selected
Answer:
Logic errors are caught by the compiler. Syntax errors have effects at execution time.
• Question 29
- out of 3 points
How many times is the body of the loop below executed?int counter = 1;
while (counter > 20) {