menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
System.out.print((k%3) + " "); if ((k % 3) == 0) k = k + 2; else k++; } what is printed as a result of executing the code segment? question 21 options: a. 0 2 1 0 2 b. 0 2 0 2 0 2 c. 0 1 2 1 2 1 2 d. 0
asked
Apr 9, 2019
194k
views
2
votes
System.out.print((k%3) + " "); if ((k % 3) == 0) k = k + 2; else k++; } what is printed as a result of executing the code segment? question 21 options:
a. 0 2 1 0 2
b. 0 2 0 2 0 2
c. 0 1 2 1 2 1 2
d. 0 2 0 2 0 2 0
e. 0 2 1 0 2 1 0
Mathematics
college
Dotjoe
asked
by
Dotjoe
7.8k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
Either B or D. Your question is missing information.
Bidisha Mukherjee
answered
Apr 14, 2019
by
Bidisha Mukherjee
8.1k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Aug 22, 2024
137k
views
Consider the following code segment. double x = 4.5; int y = (int) x * 2; System.out.print(y); What is printed as a result of executing the code segment? Responses 8 8 8.0 8.0 9 9 9.0 9.0 10
Mohan Mahajan
asked
Aug 22, 2024
by
Mohan Mahajan
9.0k
points
Computers and Technology
high-school
1
answer
1
vote
137k
views
asked
Feb 19, 2024
104k
views
Consider the following code segment. String str = "AP-CSA"; for (int i = 0; i < str.length(); i++) { if (str.substring(i, i + 1).equals("A")) { System.out.print(i + " "); } } What is printed as a result of executing the code segment? A. 0 B. 5 C. 0 5 D. 0 6 E. 1 6
Edofic
asked
Feb 19, 2024
by
Edofic
8.5k
points
Computers and Technology
high-school
1
answer
0
votes
104k
views
asked
Dec 25, 2024
3.0k
views
Consider the following code segment. System.out.print("Hello!"); System.out.println("How "); System.out.print("are "); System.out.print("you?"); What is printed as a result of executing the code segment?
Hhut
asked
Dec 25, 2024
by
Hhut
7.9k
points
Computers and Technology
high-school
1
answer
1
vote
3.0k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
How do you can you solve this problem 37 + y = 87; y =
What is .725 as a fraction
How do you estimate of 4 5/8 X 1/3
A bathtub is being filled with water. After 3 minutes 4/5 of the tub is full. Assuming the rate is constant, how much longer will it take to fill the tub?
i have a field 60m long and 110 wide going to be paved i ordered 660000000cm cubed of cement how thick must the cement be to cover field
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org