
Java nested if program
Authored by Claire Firman
Computers
10th - 11th Grade
Used 12+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
You are going to fill in the blanks.
You will complete the MarkSymbol class:
Code a program which will input a mark, then display a symbol for this mark according to this table.
public class _____
2.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
To input a mark (fill in missing code):
int mark = ______(JOptionPane.showInputDialog("Input number));
3.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
We need to declare a variable to store the symbol:
____ symbol = ' ';
4.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Complete the if:
if (mark __ 80)
{
symbol = 'A';
}
5.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
The next part of the laddered if:
else if (mark >= __ )
{
symbol = 'B';
}
6.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
The next part of the laddered if:
else if (mark >= 60 )
{
symbol = ___;
}
7.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
The next part of the laddered if:
else if (_____ >= 50 )
{
symbol = 'D';
}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
2223_S4_ICT_1stExam_MCQ_Ex1
Quiz
•
9th - 12th Grade
14 questions
4th quarter 2nd summative
Quiz
•
10th Grade
10 questions
UH EXCEL TIK
Quiz
•
10th Grade
10 questions
Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera
Quiz
•
1st Grade - Professio...
10 questions
Tin10CĐA Bài2: Sự ưu việt của m.tính và những th.tựu của tin học
Quiz
•
10th Grade
10 questions
𝐂𝐡𝐚𝐩𝐭𝐞𝐫 𝟓—𝐓𝐡𝐞 𝐅𝐮𝐭𝐮𝐫𝐞 𝐨𝐟 𝐂𝐨𝐦𝐩𝐮𝐭𝐢𝐧𝐠
Quiz
•
10th Grade
10 questions
Recap: Introduction to Python
Quiz
•
10th Grade
10 questions
ว30285-ทดสอบเรื่องคำสั่งแบบเงื่อนไข
Quiz
•
10th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade