CST 231: Midterm Prep Quiz

CST 231: Midterm Prep Quiz

University

16 Qs

quiz-placeholder

Similar activities

Teknologi Informasi

Teknologi Informasi

University

15 Qs

Input and Output Devices Quiz

Input and Output Devices Quiz

10th Grade - University

14 Qs

Quiz3

Quiz3

University

12 Qs

ITIPT01 Quiz No 1

ITIPT01 Quiz No 1

University

20 Qs

PTS PROGDAS

PTS PROGDAS

1st Grade - University

20 Qs

CS 2.0. Input/Output device quiz

CS 2.0. Input/Output device quiz

University

20 Qs

Grade 4 Quiz Computer Systems -

Grade 4 Quiz Computer Systems -

4th Grade - University

19 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

CST 231: Midterm Prep Quiz

CST 231: Midterm Prep Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Sameer Dingore

Used 3+ times

FREE Resource

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

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?