Computer Science > EXAM > CSIS 212 Midterm Quiz – Spring 2020 | SPRING 2020 CSIS 212-B01 LUO Midterm_Questions & Answers. (All)

CSIS 212 Midterm Quiz – Spring 2020 | SPRING 2020 CSIS 212-B01 LUO Midterm_Questions & Answers.

Document Content and Description Below

SPRING 2020 CSIS 212-B01 LUO • Question 1 Which software product release category is "generally feature complete and supposedly bug free, and ready for use by the community?" �... �� Question 2 Which of the following statements is false? • Question 3 Which of the following statements is false? • Question 4 Which of the following statements is false? • Question 5 Which of the following statements is false? • Question 6 ________ involves reworking programs to make them clearer and easier to maintain while preserving their correctness and functionality. • Question 7 ________ models software in terms similar to those that people use to describe real-world objects. • Question 8 Which of the following statements is true? • Question 9 All import declarations must be placed • Question 10 Which of the following is a variable declaration statement? • Question 11 Which of the following does not contain a syntax error? • Question 12 Which of the following statements does not alter the value stored in a memory location? • Question 13 Each of the following is a relational or equality operator except: • Question 14 When method printf requires multiple arguments, the arguments are separated with ________. • Question 15 Which of the following cannot cause a syntax error to be reported by the Java compiler? • Question 16 Which of the following statements would display the phase Java is fun? • Question 17 Which of the following statements is false? • Question 18 Floating-point literals are of type ________ by default. • Question 19 An import declaration is not required if you always refer to a class with its ________ name, which includes its package name and class name. • Question 20 Which of the following statements is true? • Question 21 Which of the following statements is false? • Question 22 The format specifier %.2f specifies that two digits of precision should be output ________ in the floating-point number. • Question 23 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. • Question 24 Java requires a ________ call for every object that’s created. • Question 25 Which of the following statements about the conditional operator (?:) is false? • Question 26 What is the size in bits of an int? • Question 27 Which primitive type can hold the largest value? • Question 28 Which of the following statements is true? • Question 29 How many times is the body of the loop below executed? int counter = 1; • Question 30 Which of the following is not a primitive type? • Question 31 Which statement is true? Selected Answer: All of the above. 24.Which of the following terms is not used to refer to a sentinel value that breaks out of a while loop? a. signal value. b. maximum value. c. dummy value. d. flag value. • Question 32 Which of the following is not an algorithm? • Question 33 Consider the classes below: public class TestA { public static void main(String[] args) { int x = 2; int y = 20 int counter = 0; for (int j = y % x; j < 100; j += (y / x)) { counter++; } } } public class TestB { public static void main(String[] args) { int counter = 0; for (int j = 10; j > 0; --j) { ++counter; } } } Which of the following statements is true? • Question 34 Which of the following for-loop headers results in equivalent numbers of iterations: • Question 35 Which expression is equivalent to if (!(grade == sentinelValue))? Selected Answer: if (grade != sentinelValue) • Question 36 Which of the following statements is true? Selected Answer: Strings can be used in a switch statement’s controlling expression and in its case labels. • Question 37 Consider the following two Java code segments: Segment 1 Segment 2 int i = 0; for (int i = 0; i <= 20; i++) { while (i < 20) { System.out.println(i); i++; } System.out.println(i); } Which of the following statements are true? • Question 38 The control variable of a counter-controlled loop should be declared as ________to prevent errors. • Question 39 For the code segment below: switch(q) { case 1: System.out.println("apple"); break; case 2: System.out.println("orange"); break; case 3: System.out.println("banana"); break; case 4: System.out.println("pear"); case 5: System.out.println("grapes"); default: System.out.println("kiwi"); } Which of the following values for q will result in kiwi being included in the output? • Question 40 Which case of the following would warrant using the boolean logical inclusive OR (|) rather than the conditional OR (||)? • Question 41 Which of the following can be used in a switch statement in the expression after keyword case? Selected Answer: an enumeration constant. a. A and B. b. A and C. c. B and C. d. All. • Question 42 Consider the code segment below. if (gender == 1) { if (age >= 65) { ++seniorFemales; } } This segment is equivalent to which of the following? • Question 43 Which of the following is not a type of iteration statement in Java? • Question 44 Which of the following statements about a do…while iteration statement is true? • Question 45 Which of the following statements about the switch statement is false? • Question 46 Which statement below is false? Selected Answer: Structured programming requires four forms of control. • Question 47 Which of the following will not help prevent infinite loops? • Question 48 For the two code segments below: Segment A int q = 5; switch(q) { case 1: System.out.println(1); case 2: System.out.println(2); case 3: System.out.println(3); case 4: System.out.println(4); case 5: System.out.println(5); default: System.out.println("default"); } Segment B q = 4; switch(q) { case 1: System.out.println(1); case 2: System.out.println(2); case 3: System.out.println(3); case 4: System.out.println(4); case 5: System.out.println(5); default: System.out.println("default"); } Which of the following statements is true? • Question 49 Which of the following statements about the continue statement is true? • Question 50 Which statement prints the floating-point value 123.456 right justified with a field width of 10? [Show More]

Last updated: 1 year ago

Preview 1 out of 10 pages

Add to cart

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Add to cart

Instant download

We Accept:

We Accept

Reviews( 0 )

$15.00

Add to cart

We Accept:

We Accept

Instant download

Can't find what you want? Try our AI powered Search

OR

REQUEST DOCUMENT
62
0

Document information


Connected school, study & course


About the document


Uploaded On

Sep 02, 2020

Number of pages

10

Written in

Seller


seller-icon
Expert#1

Member since 4 years

411 Documents Sold


Additional information

This document has been written for:

Uploaded

Sep 02, 2020

Downloads

 0

Views

 62

Document Keyword Tags

Recommended For You

Get more on EXAM »

$15.00
What is Browsegrades

In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Browsegrades · High quality services·