CST 231: Midterm Prep Quiz

CST 231: Midterm Prep Quiz

University

16 Qs

quiz-placeholder

Similar activities

Susulan PBO XIRPL (2021/2022)

Susulan PBO XIRPL (2021/2022)

11th Grade - University

20 Qs

Python Basics

Python Basics

University

15 Qs

javaquizvivek

javaquizvivek

University

12 Qs

Bootcamp Day 3 - Java Array

Bootcamp Day 3 - Java Array

University

15 Qs

Java Programming

Java Programming

University

20 Qs

Python Loops

Python Loops

University

17 Qs

OOP - Quiz

OOP - Quiz

University

15 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 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?