placeholder image to represent content

Programming

Quiz by Ximena Soto Hernández

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
30 questions
Show answers
  • 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 text
    Type an Answer
    30s
  • Q3

    The type of information of Java to store True or False

    Users enter free text
    Type an Answer
    30s
  • Q4

    The type of information in Java to store number with decimals is

    Users re-arrange answers into correct order
    Jumble
    30s
  • 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");

    };

    true
    false
    True or False
    30s
  • 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 text
    Type an Answer
    30s
  • Q10

    How can I get the square root of a number? (only the code)

    Users enter free text
    Type an Answer
    30s
  • Q11

    Tell me the JAVA conditional statements

    Users re-arrange answers into correct order
    Jumble
    30s
  • Q12

    The function of the for loop

    Users re-arrange answers into correct order
    Jumble
    30s
  • Q13

    What is the line of code to change to lower case letters to upper case letters?

    Users enter free text
    Type an Answer
    30s
  • Q14

    What is the line of code to find the smallest number between 60 and 45?

    Users enter free text
    Type an Answer
    30s
  • Q15

    We use the else if statement if we want to test a third condition is the second is false.

    false
    true
    True or False
    30s

Teachers give this quiz to your class