Java Basics Quiz

Java Basics Quiz

12th Grade

20 Qs

quiz-placeholder

Similar activities

JS 1

JS 1

12th Grade

15 Qs

8525 AQA  GCSE Computer Science 3.7.1 Relational databases

8525 AQA GCSE Computer Science 3.7.1 Relational databases

7th - 12th Grade

16 Qs

App Development SC Assessment 2

App Development SC Assessment 2

7th - 12th Grade

15 Qs

JavaScript and Graphics

JavaScript and Graphics

12th Grade

17 Qs

Midterm 12C SU

Midterm 12C SU

12th Grade

19 Qs

Java Primitive Practice

Java Primitive Practice

12th Grade

20 Qs

SAINS KOMPUTER T4

SAINS KOMPUTER T4

12th Grade

20 Qs

Unit 1 Terms

Unit 1 Terms

12th Grade

22 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?