Java Basics Quiz

Java Basics Quiz

12th Grade

20 Qs

quiz-placeholder

Similar activities

App Development SC Assessment 2

App Development SC Assessment 2

7th - 12th Grade

15 Qs

AP CSP Unit 5 Review 2021

AP CSP Unit 5 Review 2021

12th Grade

21 Qs

Java Primitive Practice

Java Primitive Practice

12th Grade

20 Qs

Java Primitive Unit 1-A

Java Primitive Unit 1-A

12th Grade

22 Qs

SAINS KOMPUTER T4

SAINS KOMPUTER T4

12th Grade

20 Qs

Unit 1 Terms

Unit 1 Terms

12th Grade

22 Qs

JS 1

JS 1

12th Grade

15 Qs

Programming with Python Section 2.1 and 2.2

Programming with Python Section 2.1 and 2.2

9th - 12th Grade

23 Qs

Java Basics Quiz

Java Basics Quiz

Assessment

Quiz

Other

12th Grade

Medium

Created by

Ingrid Merwe

Used 8+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does int stand for in Java?

Integer

Internal

Internet

Input

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly initializes a boolean variable named isActive to true?

boolean isActive = "true";

boolean isActive = true;

boolean isActive = 1;

boolean isActive = yes;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to start a single-line comment in Java?

#

/*

//

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Elijah is working on a project where he needs to define a value that represents the maximum number of attempts a user can make to log in. He wants to ensure that this value cannot be changed throughout the program. Which keyword should he use to define this constant value in Java?

static

final

constant

fixed

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of System.out.print in Java?

To display text in a pop-up window

To read input from the user

To display text in the console without a newline

To declare a new variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents a valid String initialization in Java?

String name = 'John';

String name = John;

String name = "John";

String name = true;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an IDE?

A tool to run system updates

Software for integrated development and coding

A type of memory in computers

An input device

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?