MS Core Java Quiz-2 2023

Quiz
•
Computers
•
University
•
Medium
Atul Bondre
Used 101+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
G12_Week7

Quiz
•
12th Grade - University
10 questions
Milestone 1 Quiz WTN

Quiz
•
University
10 questions
Vivekquiz3

Quiz
•
University
15 questions
CODE ZENITH

Quiz
•
University
10 questions
Weekly Contest #3 - TechXNinjas

Quiz
•
University
16 questions
Java Flashcards

Quiz
•
University
15 questions
Soal Java

Quiz
•
11th Grade - University
8 questions
Java operators

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th 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
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University