Java Primitives Unit 1-B

Java Primitives Unit 1-B

12th Grade

12 Qs

quiz-placeholder

Similar activities

Tema 8

Tema 8

10th - 12th Grade

12 Qs

3D Printing Terminology

3D Printing Terminology

KG - 12th Grade

10 Qs

ABOUT TÜRKİYE

ABOUT TÜRKİYE

6th - 12th Grade

13 Qs

Foreign exchange

Foreign exchange

12th Grade

10 Qs

Ant science

Ant science

5th Grade - University

11 Qs

Marketing and Sales 1.4

Marketing and Sales 1.4

9th - 12th Grade

9 Qs

Reviewing Related Literature

Reviewing Related Literature

12th Grade

10 Qs

Engaging Secondary Science

Engaging Secondary Science

6th - 12th Grade

14 Qs

Java Primitives Unit 1-B

Java Primitives Unit 1-B

Assessment

Quiz

Other

12th Grade

Easy

Created by

Angel Ligon

Used 1+ times

FREE Resource

AI

Enhance your content

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

12 questions

Show all answers

1.

MATCH QUESTION

1 min • 1 pt

Match the following

Package

A class within java.util. It contains code specifically designed to help with user input.

Scanner class

Allows users to input String values.

variable.nextDouble( )

Allows users to input double values.

variable.nextInt( )

Allows users to input int values.

variable.nextLine( )

Used to group code into a folder for easy use.

2.

MATCH QUESTION

1 min • 1 pt

Match the following

overflow

When Java automatically casts the value correctly without the programmer needing to do so

casting

When a calculation relies on a number outside the acceptable number range, Java will wrap back to the MIN or MAX value depending on the value.

(int) (x + .05)

Rounds the value of a double to the nearest whole number.

implicit casting

Turning something of one type into another type!

3.

HOTSPOT QUESTION

1 min • 1 pt

Click on the data type.

4.

HOTSPOT QUESTION

1 min • 1 pt

Click on the variable name.

5.

HOTSPOT QUESTION

1 min • 1 pt

Click on the what creates a new object.

6.

HOTSPOT QUESTION

1 min • 1 pt

Click on the argument or actual parameter.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you collect a users age and then collect their name what is the result? Assuming the user age is 16 and name is "Eric" and you are using the appropriate println statement.

16

Eric

16

Eric 16

16 Eric

Answer explanation

Remember to add a buffer if you use an int or double before a String.

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?