Question: Java questions. I bolded how I answered but I was just looking to see what someone else thought. Q1 Bytecode is the machine language of

Java questions. I bolded how I answered but I was just looking to see what someone else thought.

Q1

Bytecode is the machine language of the JVM?

True

False

Q2

A java package is a collection of related classes.

True

False

Q3

String variables are primitive variable data types.

True

False

Q4

A loop is a control structure that causes certain statements to be executed over and over until certain conditions are met.

True

False

Q5

The operating system monitors the overall activity of the computer and provides services such as memory management, input/output activities, and storage management.

True

False

Q6

Successfully compiling a java source file resutls in a .class file?

True

False

Q7

Multiplication and division have the same operator order of precedence.

True

False

Q8

Given a decimal number, the method format of the class DecimalFormat returns a string containing the digits of the number formatted.

True

False

Q9

The value of a variable cannot change during program execution.

True

False

Q10

In Java, && has a higher precedence than ||.

True

False

Q11

Suppose x = 8. After the execution of the statement y = x++; y is 9 and x is 8.

True

False

Q12

The showMessageDialog method takes ____ parameters.

1

2, 4 or 5

None

3 or 6

Q13

Which of the following loops is guaranteed to execute at least once?

counter-controlled while loop

for loop

do...while loop

sentinel-controlled while loop

Suppose x and y are int variables. Consider the following statements.

if (x > 5) {

y = 1;

} else if (x < 5) {

if (x < 3) {

y = 2;

} else {

y = 3;

}

} else {

y = 4;

}

What is the value y if x = 3?

1

2

3

4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!