Chapter1

Quiz
•
Computers
•
Professional Development
•
Hard
Ngọc Phan
Used 9+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Java Quiz

Quiz
•
Professional Development
17 questions
Java programming

Quiz
•
Professional Development
20 questions
Quiz 2- Entrada, Saída e Variáveis

Quiz
•
Professional Development
18 questions
ENTERPRISE COMPUTING WITH ADVANCED JAVA

Quiz
•
Professional Development
15 questions
Test JS

Quiz
•
Professional Development
16 questions
Flutter Test

Quiz
•
Professional Development
20 questions
QUIZ-5 static, String and StringBuffer

Quiz
•
Professional Development
23 questions
OCA Unit 1

Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade