Java nested if program

Quiz
•
Computers
•
10th - 11th Grade
•
Hard
Claire Firman
Used 12+ times
FREE Resource
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';
}
8.
FILL IN THE BLANK QUESTION
1 min • 1 pt
To end off the laddered if,
(all other marks get an 'E'):
____
{
symbol = 'E';
}
9.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The Output at the end of the class:
System.out.println("Your symbol: " + ____ );
Similar Resources on Wayground
11 questions
Logic Gates and Circuits Quiz

Quiz
•
9th - 12th Grade
11 questions
HTML CSS - Missing Symbols

Quiz
•
9th - 12th Grade
13 questions
CS Edexcel 1.2a Writing Algorithms

Quiz
•
9th - 10th Grade
10 questions
11 - Avoiding Copyright Infringement

Quiz
•
9th Grade - University
10 questions
APCSP 3.7 Debugging

Quiz
•
9th - 12th Grade
13 questions
Understanding Flow Charts

Quiz
•
6th Grade - University
12 questions
Divs and Spans

Quiz
•
9th - 12th Grade
14 questions
S1 Spreadsheets Functions/Formulae

Quiz
•
7th - 11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade