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");
}
}
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