
Programming
Quiz by Ximena Soto Hernández
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1
How can you show a message in Java?
public class Main{
public static void main (String[] args) {
System.out.println("Hello world");
}
public class Main{
public static void main (String[] args) {
System.out.println("Hello world");
}
}
public class Main{
public static void main (String[] args) {
System,out.println("Hello world");
}
}
public class main{
public static void main (String[] args) {
System.out.println("Hello world");
}
}
30s - Q2
What is a variable?
Users enter free textType an Answer30s - Q3
The type of information of Java to store True or False
Users enter free textType an Answer30s - Q4
The type of information in Java to store number with decimals is
Users re-arrange answers into correct orderJumble30s - Q5
What is the programming structure that allows you to run a piece of code if a condition is true?
else statement
else if statement
for loop
if statement
30s - Q6
Does this code have an error?
class Main {
public static void main(String[] args){
if (5>3) (
System.out.println("5 is greater than 3");
};
int x = 5;
int y = 3;
if (x > y) {
System.out.println("x is greater than y");
};
truefalseTrue or False30s - Q7
Syntax to apply the else statement
if (range) {
//block
} else {
//block
}
if (condition) {
} else {
//block
}
if (condition) {
//block
} else {
//block
}
if (condition) {
} else {
//block
}
30s - Q8
What is the switch statement?
It is similar to the if statement, but the difference is that you will need to use the switch statement several times.
It is a tool that will run only when it is called.
It is a tool that will allows us to do different math operations. We can test different cases.
Is a tool that allows us to test several cases.
30s - Q9
A block of code that only runs when it is called (lower case letters)
Users enter free textType an Answer30s - Q10
How can I get the square root of a number? (only the code)
Users enter free textType an Answer30s - Q11
Tell me the JAVA conditional statements
Users re-arrange answers into correct orderJumble30s - Q12
The function of the for loop
Users re-arrange answers into correct orderJumble30s - Q13
What is the line of code to change to lower case letters to upper case letters?
Users enter free textType an Answer30s - Q14
What is the line of code to find the smallest number between 60 and 45?
Users enter free textType an Answer30s - Q15
We use the else if statement if we want to test a third condition is the second is false.
falsetrueTrue or False30s