Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Question 1 ________ is an informal language that helps you develop ______without having to worry about the strict details of Java language syntax. Pseudocode, algorithm

Question 1

________ is an informal language that helps you develop ______without having to worry about the strict details of Java language syntax.

Pseudocode, algorithm
Algorithm, pseudocode
UML, pseudocode
UML, algorithm

2. The four elements of a counter controlled loop include all of the following except:

a counter variable
an initial value
a sentinel
an increment

a loop continuation condition

3.

The scope of a control variable is

the loop
the program
the main method

the class

4.

The format specifier %20s creates

a column 20 characters wide for a single
a 2 character ordinal string
a column 20 characters wide for a string

a 2 character optional string

5.

If base2 = 2 and pow = 3 what is the value of result for the following equation:

result = (int) Math.pow(base2, pow);

8
6
5

16

6.

At a minimum how many times does a do...while loop execute

1
2
3

4

7.

A switch statement is an example of a

single selection statement
double selection statement
triple selection statement

multiple selection statement

8.

A ___________ exits the loop permanently.

quit
exit
break

continue

9.

Given two statements, the entire statement is true using an AND (&&) operator if __________ statement(s) is/are true.

either
both
the first
the second

neither

10.

To read multiple lines of data that is being input by a user, you would use the Scanner method

nextInput
getInput
hasNext
nextValue

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions