Search Header Logo

CST 231: Midterm Prep Quiz

Authored by Sameer Dingore

Computers

University

Used 3+ times

CST 231: Midterm Prep Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

System.___.println("Hello world");

out

in

over

on

2.

MULTIPLE SELECT QUESTION

20 sec • 2 pts

Which is the correct way to read a decimal number from a user?

Scanner s = new Scanner(System.in);

int number = s.nextDouble();

Scanner s = new Scanner(System.in);

double number = s.nextDouble();

Scanner s = new Scanner(System.in);

float number = s.nextDouble();

Scanner s = new Scanner(System.in);

double number = s.nextInt();

3.

MULTIPLE CHOICE QUESTION

10 sec • 4 pts

The type or range of allowed values for a variable is called?

Datarange

datacapacity

datastore

datatype

4.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

what will be the output of Math.sqrt(64)

8

6

8.0

4

5.

MULTIPLE CHOICE QUESTION

10 sec • 3 pts

what will be the output of Math.pow(3,3)

9.0

Invalid input

27.0

6.0

6.

MULTIPLE CHOICE QUESTION

10 sec • 3 pts

what will be the output of Math.floor(12.2)

12

13

12.0

13.0

7.

MULTIPLE CHOICE QUESTION

10 sec • 3 pts

Math.ceil(12.6)

12.0

12

13

13.0

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?