Java Quiz2

Java Quiz2

University

11 Qs

quiz-placeholder

Similar activities

Revision Gr2-2025

Revision Gr2-2025

3rd Grade - University

12 Qs

Adobe Photoshop

Adobe Photoshop

University

10 Qs

Pengantar Coding

Pengantar Coding

University

10 Qs

CSC1243 - Introduction to Computer Programs (Programming Langua)

CSC1243 - Introduction to Computer Programs (Programming Langua)

University

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

MULTIMEDIA STORYBOARD

MULTIMEDIA STORYBOARD

University

10 Qs

Digital Icons

Digital Icons

12th Grade - University

16 Qs

Herencia y Paquetes

Herencia y Paquetes

University

10 Qs

Java Quiz2

Java Quiz2

Assessment

Quiz

Computers

University

Medium

Created by

Vijayaraman P

Used 92+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Command to compile a java program

javab filename.java

java filename.java

javac filename

javac filename.java

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Command to run a java program

java filename.class

java filename

java filename.java

-java filename

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

__________ is needed to access a method in a class.

class name

class variable

function

object

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

main method is a

non static method

static method

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Object is not needed in case the method is

public

static

void

main

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following class is used to read input during execution?

Array

String

Scanner

Main

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Scanner class is available in

javax.util package

javay.util package

java.util.Scanner package

javax.util.Scanner package

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers