Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Q 1/30
Score 0
How can you show a message in Java?
30
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");
}
}
Q 2/30
Score 0
<P>What is a variable?</P>
30
Users enter free text
Q 3/30
Score 0
<P>The type of information of Java to store True or False</P>
30
Users enter free text
Q 4/30
Score 0
<P>The type of information in Java to store number with decimals is</P>
30
Users re-arrange answers into correct order
Q 5/30
Score 0
<P>What is the programming structure that allows you to run a piece of code if a condition is true?</P>
30
<P>else statement</P>
<P>else if statement</P>
<P>for loop</P>
<P>if statement</P>
Q 6/30
Score 0
<P>Does this code have an error?</P><P>class Main {</P><P> public static void main(String[] args){</P><P>
if (5>3) (</P><P> System.out.println("5 is greater than 3");
</P><P> };
</P><P>int x = 5;
</P><P>int y = 3;</P><P>
if (x > y) {
</P><P> System.out.println("x is greater than y");
</P><P>};</P>
<P>It is similar to the if statement, but the difference is that you will need to use the switch statement several times.</P>
<P>It is a tool that will run only when it is called.</P>
<P>It is a tool that will allows us to do different math operations. We can test different cases.</P>
<P>Is a tool that allows us to test several cases.</P>
Q 9/30
Score 0
<P> A block of code that only runs when it is called (lower case letters)</P>
30
Users enter free text
Q 10/30
Score 0
<P>How can I get the square root of a number? (only the code)</P>
30
Users enter free text
Q 11/30
Score 0
<P>Tell me the JAVA conditional statements</P>
30
Users re-arrange answers into correct order
Q 12/30
Score 0
<P>The function of the for loop</P>
30
Users re-arrange answers into correct order
Q 13/30
Score 0
<P>What is the line of code to change to lower case letters to upper case letters?</P>
30
Users enter free text
Q 14/30
Score 0
<P>What is the line of code to find the smallest number between 60 and 45?</P>
30
Users enter free text
Q 15/30
Score 0
<P>We use the else if statement if we want to test a third condition is the second is false.</P>
30
false
true
Q 16/30
Score 0
<P>What is a condition?</P>
30
Users re-arrange answers into correct order
Q 17/30
Score 0
<P>Syntax to create a variable</P>
30
Users enter free text
Q 18/30
Score 0
<P>For adding a comment in java, you can use ¨//¨and ¨*"</P>
30
false
true
Q 19/30
Score 0
<P>If you want to print "I like programming class" which code do you need to use?</P>
30
<P>public class Main{</P><P> public static void main(String[] args){</P><P> System.out.println("I like programming class"):</P><P> }</P><P>}</P>
<P>public class Main{</P><P> public static void main(String[] args){</P><P> System.out.println("I like programming class");</P><P> }</P><P>}</P>
<P>public class main{</P><P> public static void main(String[] args){</P><P> System.out.println("I like programming class");</P><P> }</P><P>}</P>
<P>public class Main{</P><P> public static void main(String[] args){</P><P> System.out,println("I like programming class");</P><P> }</P><P>}</P>
Q 20/30
Score 0
<P>We use float to</P>
30
Users re-arrange answers into correct order
Q 21/30
Score 0
<P>In JAVA we can't introduce mathematical conditions</P>
30
false
true
Q 22/30
Score 0
<P>We use the if statement to</P>
30
<P>to run a piece of code.</P>
<P>to run a piece of code if a condition is false.</P>
<P>to run a piece of code if a condition is true.</P>
<P>to run a piece of code if a condition is not false neither true. </P>
Q 23/30
Score 0
<P>What is going to be the output of this code? </P><P>public class Main{</P><P> public static void main(String[] args){</P><P> if (56>34){</P><P> System.out.println(56 + 34);</P><P>}</P>
30
Users enter free text
Q 24/30
Score 0
<P>What is the output of the following code?</P><P>public class Main{</P><P> public static void main(String[] args){</P><P> if (34=56){</P><P> System.out.println(21+21);</P><P> } else{</P><P> System.out.println(45+45);</P><P> }</P><P>}</P>
30
Users enter free text
Q 25/30
Score 0
<P>What is the code to apply the switch statement</P>
30
<P>switch (expression) {</P><P> case x:</P><P> //code block</P><P> break;</P><P> case y:</P><P> //code block</P><P> break;</P><P> default:</P><P> //code block</P><P>}</P>
<P>switch (expression) {</P><P> case x;</P><P> //code block</P><P> break;</P><P> case y;</P><P> //code block</P><P> break;</P><P> default;</P><P> //code block</P><P>}</P>
<P>switch (expression) {</P><P> case x:</P><P> //code block</P><P> break;</P><P> case x:</P><P> //code block</P><P> break;</P><P> default:</P><P> //code block</P><P>}</P>
<P>switch (expression) {</P><P> case x:</P><P> //code block</P><P> case y:</P><P> //code block</P><P> default:</P><P> //code block</P><P>}</P>
Q 26/30
Score 0
<P>Program to find the sum of natural numbers from 1 to 1000.</P>
30
<P>class Main{</P><P> public static void main(String[] args){</P><P> </P><P> int sum = 0;</P><P> int n = 1000;</P><P> for (int i = 1; i<=n; ++1){</P><P> sum +=i;</P><P> }</P><P></P><P> System.out.println("Sum = " +sum);</P><P> }</P><P>}</P>
<P>class Main{</P><P> public static void main(String[] args){</P><P> </P><P> int sum = 0;</P><P> int n = 1000;</P><P> for (int i = 1; i<=n; ++i){</P><P> sum +=i;</P><P> }</P><P></P><P> System.out.println("Sum = " +sum);</P><P> }</P><P>}</P>
<P>class Main{</P><P> public static void main(String[] args){</P><P> </P><P> int sum = 0;</P><P> int n = 1000;</P><P> for (int i = 1; i<=n; +i){</P><P> sum +=i;</P><P> }</P><P></P><P> System.out.println("Sum = " +sum);</P><P> }</P><P>}</P>
<P>class Main{</P><P> public static void main(String[] arg){</P><P> </P><P> int sum = 0;</P><P> int n = 1000;</P><P> for (int i = 1; i<=n; ++i){</P><P> sum +=i;</P><P> }</P><P></P><P> System.out.println("Sum = " +sum);</P><P> }</P><P>}</P>
Q 27/30
Score 0
<P>What is the command we use to find the biggest number between 45 and 67</P>
30
Users enter free text
Q 28/30
Score 0
<P>What is the line of code for asking an input to the user?</P>
30
<P>import javautil.Scanner:</P>
<P>inport java.util.Scanner;</P>
<P>import javautil.Scanner;</P>
<P>import java.util.Scanner;</P>
Q 29/30
Score 0
<P>Line of code to count the number of elements inside</P>
30
<P>System.out.print(x.length);</P>
<P>System.out.println(length);</P>
<P>System.out.println(x.length):</P>
<P>System.out.println(x.length);</P>
Q 30/30
Score 0
<P>Why do we use functions?</P>
30
Users re-arrange answers into correct order
30 questions
Q.How can you show a message in Java?
1
30 sec
Q.What is a variable?
2
30 sec
Q.The type of information of Java to store True or False
3
30 sec
Q.The type of information in Java to store number with decimals is
4
30 sec
Q.What is the programming structure that allows you to run a piece of code if a condition is true?
5
30 sec
Q.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");
};
6
30 sec
Q.Syntax to apply the else statement
7
30 sec
Q.What is the switch statement?
8
30 sec
Q. A block of code that only runs when it is called (lower case letters)
9
30 sec
Q.How can I get the square root of a number? (only the code)
10
30 sec
Q.Tell me the JAVA conditional statements
11
30 sec
Q.The function of the for loop
12
30 sec
Q.What is the line of code to change to lower case letters to upper case letters?
13
30 sec
Q.What is the line of code to find the smallest number between 60 and 45?
14
30 sec
Q.We use the else if statement if we want to test a third condition is the second is false.
15
30 sec
Q.What is a condition?
16
30 sec
Q.Syntax to create a variable
17
30 sec
Q.For adding a comment in java, you can use ¨//¨and ¨*"
18
30 sec
Q.If you want to print "I like programming class" which code do you need to use?
19
30 sec
Q.We use float to
20
30 sec
Q.In JAVA we can't introduce mathematical conditions
21
30 sec
Q.We use the if statement to
22
30 sec
Q.What is going to be the output of this code? public class Main{ public static void main(String[] args){ if (56>34){ System.out.println(56 + 34);}
23
30 sec
Q.What is the output of the following code?public class Main{ public static void main(String[] args){ if (34=56){ System.out.println(21+21); } else{ System.out.println(45+45); }}
24
30 sec
Q.What is the code to apply the switch statement
25
30 sec
Q.Program to find the sum of natural numbers from 1 to 1000.
26
30 sec
Q.What is the command we use to find the biggest number between 45 and 67
27
30 sec
Q.What is the line of code for asking an input to the user?
28
30 sec
Q.Line of code to count the number of elements inside