CB30: Unit 2 TEST Review

CB30: Unit 2 TEST Review

9th - 12th Grade

34 Qs

quiz-placeholder

Similar activities

latihan soal UTS

latihan soal UTS

10th Grade

30 Qs

Excel 2016 Introduction

Excel 2016 Introduction

10th - 12th Grade

35 Qs

Computer Hardware and Networking Quiz

Computer Hardware and Networking Quiz

10th Grade

36 Qs

Cuestionario sobre Sistemas Operativos

Cuestionario sobre Sistemas Operativos

10th Grade

36 Qs

ÔN TẬP GK2 - TIN HỌC 12

ÔN TẬP GK2 - TIN HỌC 12

12th Grade

38 Qs

Have fun with quiz !

Have fun with quiz !

3rd Grade - University

39 Qs

KT 45 tin 11 Giua HK1

KT 45 tin 11 Giua HK1

11th Grade

33 Qs

UTS1 X TKJ C PEMROGRAMAN DASAR

UTS1 X TKJ C PEMROGRAMAN DASAR

10th Grade

30 Qs

CB30: Unit 2 TEST Review

CB30: Unit 2 TEST Review

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Used 154+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which line of code outputs the decimal portion of a float stored in the variable x?

print(x / 1000)

print(x - int(x))

print(x)

print(x % 1000)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Three of the following values could be stored as strings. When would you NOT use a string command?

To store a list of colors

To store decimal values

To store a word

To store values NOT used for calculations

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Consider the following code:

x = int(input("Enter a number: "))

print (x)


What happens if the user types in A?

It prints 65

It prints A

This would cause an error: an integer variable cannot store a string.

This would cause an error: int and input cannot be used together in the same line

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is NOT a data type in Python?

float

string

decimal

integer

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following numbers might this code generate: random.randint(1,9)?

10

1

11

0

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is NOT a built-in function in python?

sqrt()

string()

fabs()

print()

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

To generate numbers between and including -10 to 10 you would use:

random.random()*20 + -10

randint(-10, 10)

random.random(-10, 10)

random.randint(-10, 10)

Create a free account and access millions of resources

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?