
java core (Kiem tra lan 1)
Authored by HuyPP2
Instructional Technology
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the correct syntax for java main method?
public void main(String[] args)
public static void main(string[] args)
public static void main()
none of the above
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Choose the appropriate data type for this field: isSwimmer
double
boolean
string
Int
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
If you want your condition to depend upon two conditions BOTH being true, What is the proper notation to put
between the two Boolean statements
!
||
&&
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Choose the appropriate data type for this value: 5.5
int
double
boolean
String
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is an assignment statement ?
Adding a number to an int
Assigning a multiplication
Assigning a name to a variable
Assigning a value to a variable
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Can you compare a boolean to an integer?
Yes
No
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
public static void main(String[] args) {
int a = 5;
int b = 25;
int c = 35;
int d = 123;
System.out.print(a++ + ++b - ++c + d++);
}
what is the result in that code?
117
118
119
120
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?