Based on the statement below, what will be the result? Int age = 10; Select one: O a age stores only an integer value Ob age will have a value 10 O. None of the above O d.The statement is wrong. Based on the staterment below, what will be the result? Int salary = 10000; %3D Select one: O a age stores only an integer value O b. The statement is wrong. O C. age will have a value 10 O d. None of the above Based on the statement below, which of the list generates an error? Select one: O a y=x+, Ob. final int x=10, System.out printin("x is+ x)x++ int y =y + X,

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question

can you help me in  those question about java

Based on the statement below, what will be the result?
Int age = 10;
Select one:
a. age stores only an integer value
b. age will have a value 10
C. None of the above
d. The statement is wrong.
Based on the staternent below, what will be the result?
Int salary = 10000;
Select one:
O a. age stores only an integer value
O b. The statement is wrong.
O C. age will have a value 10
O d. None of the above
Based on the statement below, which of the list generates an error?
Select one:
O a. y=x+;
b.
final int x=10;
Oc.
System.out.printin("x is+ x)x++
d.
int y =y + x;
Transcribed Image Text:Based on the statement below, what will be the result? Int age = 10; Select one: a. age stores only an integer value b. age will have a value 10 C. None of the above d. The statement is wrong. Based on the staternent below, what will be the result? Int salary = 10000; Select one: O a. age stores only an integer value O b. The statement is wrong. O C. age will have a value 10 O d. None of the above Based on the statement below, which of the list generates an error? Select one: O a. y=x+; b. final int x=10; Oc. System.out.printin("x is+ x)x++ d. int y =y + x;
What is the result of the expression below assuming that a=1, b=2, c=3?
int x = ++a + b++ - --c
Select one:
а. 1
b. 2
С. 4
d. 3
Based on the statement below, what is the output?
int num=5;
while (num!= 0)
{
for (int aa=1; aa > 2;aa--)
{
System.out.print(num);
}
num--;
}
Select one:
O a. It will display 12345
b. It will not display anything
c. It will not display anything because there is an error
O d. It will display 5 forever
A variable defined as
will only store whole numbers.
Select one:
O a. char
O b. float
O c. byte
O d. boolean
Transcribed Image Text:What is the result of the expression below assuming that a=1, b=2, c=3? int x = ++a + b++ - --c Select one: а. 1 b. 2 С. 4 d. 3 Based on the statement below, what is the output? int num=5; while (num!= 0) { for (int aa=1; aa > 2;aa--) { System.out.print(num); } num--; } Select one: O a. It will display 12345 b. It will not display anything c. It will not display anything because there is an error O d. It will display 5 forever A variable defined as will only store whole numbers. Select one: O a. char O b. float O c. byte O d. boolean
Expert Solution
steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Knowledge Booster
Structured English
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning