Search Header Logo

Exploring Computer Science

Authored by Charles Martinez

Mathematics

9th - 12th Grade

CCSS covered

Used 2+ times

Exploring Computer Science
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which line of code would set x = to a number between 50 and 100?

int x = (int) (Math.random()*50)+50;

int x = (int) (Math.random()*50)-50;

int x = (int) (Math.random()*50)+51;

int x = (int) (Math.random()*50)+49;

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is printed when the code is run?

Frankvelt

ranklivelt

Franko

lino

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What will print when this code is run?

7

9.0

5.66

5.0

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What will s equal? int s = Math.abs(13-21);

8

-8

8.0

-8.0

Tags

CCSS.6.NS.C.7

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

Which would be a valid call to this code?

PT(21.0, 8);

PT(7,"4");

PT(2,4);

PT(1.0,1.0);

Tags

CCSS.HSF.IF.A.1

CCSS.HSF.IF.A.2

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What will l = after the code is run?

5

6

7

8

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What will p = after the code is run? String p = "cat " + 9;

cat

Nothing will print

The code will not compile

cat 9

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?