CST 231: Midterm Prep Quiz

CST 231: Midterm Prep Quiz

University

16 Qs

quiz-placeholder

Similar activities

Python Recap

Python Recap

7th Grade - University

20 Qs

Coding Titans

Coding Titans

University

17 Qs

Python Strings

Python Strings

University

20 Qs

Python Programming Basics

Python Programming Basics

University

14 Qs

Python Basics

Python Basics

KG - University

16 Qs

Python Basics

Python Basics

KG - University

15 Qs

Python Revision

Python Revision

University

14 Qs

G7B_Quiz1_2T

G7B_Quiz1_2T

University

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?