Search Header Logo

Day2Competition

Authored by Linda Shaner

Computers

9th Grade

Used 2+ times

Day2Competition
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This has two operands.

binary operators

multiple operators

unary operators

None of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

These two operators can be binary or unary operators.

* and %

* and /

+ and -

* and -

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A string that contains no characters is called an empty or _______________string.

undefined

literal

null

none of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The length of this string---"Ahoy mateys!"

11

12

13

14

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All of the following are valid ways to initialize variable(s) except:

int a=10;

double a=10.5, b=11.6, c=12.7;

int a=10;

int b=a;

int a=6-4+2*3;

int a=10; int b=5;

int a+b=11;

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

String x = "10";

String y = "20";

String z = x + y;


Guess the output.

1020

10 20

30

"10 20"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is correct?

public static main(Strings[] args) { }

public private static main(Strings[] args) { }

public static void main(Strings[] args) { }

public void static main(Strings[] args) { }

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?