Programming Java Chaprer 4(2)

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

True

Unicode is an international encoding system that is extensive enough to represent ALL the characters of ALL the world's alphabets. True or False

100

What is the value of ans after the following code has been executed? int x = 35; int y = 20, ans = 80; if (x < y); ans += y; -80 -100 -35 -55

No value, there is is a syntax error

What will be the value of ans after the following code has been executed? int x = 65; int y = 55; if (x >= y) int ans = x + y;

Multiple alternative decision structure

The switch statement is a: -Multiple alternative decision structure -Nested decision structure -Sequence structure -Test expression

ans = 60, x = 0, y = 50

What will be the values of ans, x, and y after the following statements are executed? int ans = 35, x = 50, y = 50; if (x >= y) { ans = x +10; x-=y; } else { ans = y +10; y +=x; }

(str1.compareTo(str2) < 0)

If str1 and str2 are both Strings, which of the following will correctly test to determine whether str1 is less than str2? -(str1 < str2) -(str1.equals(str2) < 0) -(str1.compareTo(str2) < 0)

True

In a switch statement, each of the case values must be unique. True or False

False

Programs never need more than one path of execution. True or False

##0.0%

Which of the following will format .1278 to display as 12.8%? -000.0% -#0.00% -###.##% -##0.0%


Kaugnay na mga set ng pag-aaral

U.S. History 1 Chapter 11, Section 2, The Politics Of War The Americans

View Set

Teaching Reading: Elementary (5205)

View Set

Article 250 - Grounding and Bonding (Quarter 4)

View Set

Chapter 17 Preoperative Nursing Practice Questions

View Set

Med Surg prepu, lower respiratory & chest

View Set

Final Test: Unit 1 Test Cog Psych, Exam 5 (Ch. 12-13), Exam 5 Psych, Chapter 12, Cog Psych Chapter 13, coglabs, Chapter 7 Quiz - Long-term Memory: Encoding, Retrieval, & Consolidation, CHAPTER 6 QUIZ, Chapter 6, PSYC231: Cognitive Psychology (Chapter...

View Set

Astronomy: Chapter 4 Spectroscopy (T/F)

View Set

Cardiac Arrest in Pregnancy In-Hospital ACLS Algorithm

View Set