Java Programming Quiz 2

Java Programming Quiz 2

Professional Development

20 Qs

quiz-placeholder

Similar activities

Examen de Desarrollo Ágil Unidad I

Examen de Desarrollo Ágil Unidad I

Professional Development

15 Qs

U II - TENDENCIAS ACTUALES EN CIENCIA Y TECNOLOGÍA DE ALIMENTOS

U II - TENDENCIAS ACTUALES EN CIENCIA Y TECNOLOGÍA DE ALIMENTOS

Professional Development

20 Qs

ERB 5,6 & 7

ERB 5,6 & 7

Professional Development

15 Qs

ERB 8.9 & 10

ERB 8.9 & 10

Professional Development

15 Qs

Curso reparación de celulares

Curso reparación de celulares

Professional Development

20 Qs

Simulación Certificación Calendarización CD

Simulación Certificación Calendarización CD

Professional Development

17 Qs

CANDU COOP Not-Kahoot Quiz

CANDU COOP Not-Kahoot Quiz

Professional Development

20 Qs

8. Earthing & Bonding, Clearances, Safety and Quality Procedures

8. Earthing & Bonding, Clearances, Safety and Quality Procedures

Professional Development

15 Qs

Java Programming Quiz 2

Java Programming Quiz 2

Assessment

Quiz

Engineering

Professional Development

Practice Problem

Hard

Created by

Zohaib Hasan

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for a Java source file?

.class

.java

.exe

.jar

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about writing Java code?

Java is case-insensitive

Class names must match the filename

Java allows multiple public classes in a single file

A Java program must have a function named run()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct naming convention for Java class names?

camelCase

UPPERCASE

PascalCase

snake_case

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct main method declaration in Java?

public static void Main(String args[])

static public void main(String[] args)

public void static main(String args)

public static void main()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid identifier in Java?

_myVariable

$myVar

123abc

myVar123

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement about Java identifiers is correct?

Identifiers can start with a digit

Identifiers can use special symbols like @ and #

Identifiers are case-sensitive

Java has a predefined list of identifiers

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the size of int in Java?

2 bytes

4 bytes

8 bytes

Depends on the system

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

Already have an account?