MS Core Java Quiz-2 2023
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Atul Bondre
Used 101+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way of writing main() function in Java?
public static void main(String args[ ])
public void main(String args[ ])
public static main(String args[ ])
public void static main(String args[ ])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way of writing println() function in Java?
System.out.println("Message = " + variable);
System.println("Message = " + variable);
System.output.println("Message = " + variable);
System.println.out("Message = " + variable);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many built-in packages in Java?
6
8
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a correct difference between print() and println()?
print() prints the output and move to new line, println() prints the output and stays on same line
print() prints the output and stays on same line, println() prints the output and move to new line
None of the given
Both of the given
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following are built-in packages in Java? Select TWO correct answers.
util
stdio
lang
out
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is use to add / link packages in our program?
add
import
include
link
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select TWO correct differences between C++ and Java.
In C++ operator + is not used for concatenation, In Java it is used for concatenation
In C++ class ends with semicolon, In Java class doesn't end with semicolon
C++ is POP, Java is OOP
In C++ default access specifier (visibility mode) is private, In java it is friendly (default)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
Python Quiz 1.4
Quiz
•
University
10 questions
CodeMonkey for B.Ed IT
Quiz
•
University
10 questions
Android
Quiz
•
University
10 questions
TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)
Quiz
•
University
10 questions
Bài 25 tin 10
Quiz
•
9th Grade - University
10 questions
Unguided transmission media
Quiz
•
University
10 questions
Understanding Email, Contacts and Calendaring
Quiz
•
University
15 questions
ICT 0513 - Chapter 4 : System Unit
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
