Search Header Logo

9th-2 TEST Q1

Authored by Random Student

Instructional Technology

9th Grade

9th-2 TEST Q1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

Which company developed Java?

Google
Microsoft
Oracle
IBM
Sun Microsystems

2.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

What is the name of the online compiler used in this class for Java programs?

OnlineGDB
CompileJava
Replit
JDoodle
CodeChef

3.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which of the following is NOT a valid Java identifier?

myNumber

number1

_result!

totalSum

2total

4.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which of the following is a correct single-line comment in Java?

# This is a comment in Python
# This is a comment in Ruby

$This is a Java Comment

/* This is a comment in C++ */
// This is a comment in Java

5.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

Which of these is the correct syntax to declare a floating-point number in Java?

int myFloat = 5.5f;
double myFloat = 5.5f;
float myFloat = 5.5d;
float myFloat = 5.5;
float myFloat = 5.5f;

6.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

Which of the following data types is used to store a true or false value in Java?

char

String

float

int

boolean

7.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

Which data type should be used for a decimal number like 3.1416?

boolean
float
char
string
int

Access all questions and much more by creating a free account

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?