MS Core Java Quiz-2 2023

MS Core Java Quiz-2 2023

University

12 Qs

quiz-placeholder

Similar activities

Java Quiz 4

Java Quiz 4

University

15 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

CS100||MsWord

CS100||MsWord

University

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Binary Tree

Binary Tree

University

14 Qs

Linked List 2

Linked List 2

University

10 Qs

Website Usability and UX

Website Usability and UX

University

10 Qs

Hands-on Modul 3

Hands-on Modul 3

University

10 Qs

MS Core Java Quiz-2 2023

MS Core Java Quiz-2 2023

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Atul Bondre

Used 101+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?