Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

How do you add two harmonic motions having different frequencies?

Answered: 1 week ago

Question

How do rules guide verbal communication?

Answered: 1 week ago