
Chapter1
Authored by Ngọc Phan
Computers
Professional Development
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
What will happen when you compile and run the following code?
}
}
1 will be printed out
2 will be printed out
A compile time error will be generated
An exception will be thrown
2.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which will be compiled
double a = 100.0;
double a = 100_.0;
double a = 1_000.0;
double a = _100.0;
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which will be compiled
int val = null;
int val = 1;
int val = 1;
int len = val.length();
String val = "hello";
int len = val.length();
4.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which will be compiled
String main;
String $val;
String 1val;
String const;
5.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which of the following legally fill in the blank so you can run the main() method from the command line?
public static void main(______)
String _name []
String [] 123
String ... abc
String [] $n
6.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which method declarations will enable a class to be run as a standalone program?
static void main(String args[ ])
public void static main(String args[ ])
public static main(String[ ] argv)
final public static void main(String [ ] array)
public static void main(String args[ ])
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following code print when run?
Hello
It will not print anything.
It will not compile
It will throw an Error at runtime.
None of the above.
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?
Similar Resources on Wayground
15 questions
CSS
Quiz
•
Professional Development
20 questions
CompTIA Sec+
Quiz
•
University - Professi...
20 questions
QUIZ-5 static, String and StringBuffer
Quiz
•
Professional Development
16 questions
First Quiz (Full Stack Development Course)
Quiz
•
Professional Development
15 questions
JavaScript
Quiz
•
Professional Development
18 questions
INTRODUCTION TO C++
Quiz
•
Professional Development
20 questions
Révision HTML, CSS et JavaScript
Quiz
•
Professional Development
15 questions
BrightChamps Technical Round - C language
Quiz
•
Professional Development
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade