Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 1 ________ is an informal language that helps you develop ______without

ID: 3725945 • Letter: Q

Question

Question 1

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

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

a loop continuation condition

3.

The scope of a control variable is

the class

4.

The format specifier %20s creates

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);

16

6.

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

4

7.

A switch statement is an example of a

multiple selection statement

8.

A ___________ exits the loop permanently.

continue

9.

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

neither

10.

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

Pseudocode, algorithm

Explanation / Answer

Dear Student ,

Kindly find the below answers for above questions.

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

Answer :  Pseudocode , algorithm

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

Answer : a sentinel

Question 3 :The scope of a control variable is

Answer : the loop

Question 4 : The format specifier %20s creates

Answer :

a column 20 characters wide for a string

Question 5 :

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

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

Answer : 8

Explanation : Here we have value for base2=2 and pow =3 so equation become

result=(int) Math.pow(2,3) so it will return value 8.

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

Answer : 1

Explanation : do ...while loop first executes the block of code that is statements that are in do block at least once and then it will check for the condition. If condition fails then also do....while loop gives you the output at least once.

Question 7 : A switch statement is an example of a

Answer : single selection statement

Question 8 : A ___________ exits the loop permanently.

Answer : break

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

Answer : both

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

Answer :  hasNext

Note : Kindly provide the feedback about the solution.

a column 20 characters wide for a string

Question 5 :

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

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

Answer : 8

Explanation : Here we have value for base2=2 and pow =3 so equation become

result=(int) Math.pow(2,3) so it will return value 8.

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

Answer : 1

Explanation : do ...while loop first executes the block of code that is statements that are in do block at least once and then it will check for the condition. If condition fails then also do....while loop gives you the output at least once.

Question 7 : A switch statement is an example of a

Answer : single selection statement

Question 8 : A ___________ exits the loop permanently.

Answer : break

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

Answer : both

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

Answer :  hasNext

Note : Kindly provide the feedback about the solution.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote