Pre-Assessment: Java Basics

Pre-Assessment: Java Basics

Professional Development

20 Qs

quiz-placeholder

Similar activities

OS Quiz

OS Quiz

Professional Development

15 Qs

MS Excel practice

MS Excel practice

Professional Development

18 Qs

Gen. Assembly Recap Day 1

Gen. Assembly Recap Day 1

Professional Development

15 Qs

Rol del INFOTEP

Rol del INFOTEP

Professional Development

17 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

Fibra Óptica, Medios Inalámbricos, Cableado Estructurado

Fibra Óptica, Medios Inalámbricos, Cableado Estructurado

Professional Development

20 Qs

DI (EM24) - Diseño de Contenidos (T8)

DI (EM24) - Diseño de Contenidos (T8)

University - Professional Development

20 Qs

Evaluacion Continua 2

Evaluacion Continua 2

Professional Development

20 Qs

Pre-Assessment: Java Basics

Pre-Assessment: Java Basics

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Danny Casimero

Used 8+ 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 • 2 pts

  1. What is a variable?

A location in memory with a name and a type

A keyword in Java programming

A method to print output

A loop in a program

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

  1. How do you declare a variable in Java?

Using a keyword "declare"

 By assigning a value directly without declaration

By specifying its type and giving it a name

By using quotation marks around the value

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which primitive type is used for numbers with decimal places in Java?

int

double

char

boolean

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the default type of a literal number in Java?

double

float

int

long

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the output of the following code:

System.out.println("Hello"+5+3);
?

Hello53

8

Hello8

there is an error

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

In Java, which of the following is NOT a primitive data type?

char

double

string

boolean

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the result of the expression
2 + 3 * ( 4 % 5 )
in Java?

14

20

4

10

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?