Programming Library Routines Activity

Programming Library Routines Activity

10th Grade

10 Qs

quiz-placeholder

Similar activities

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

ICT 10 : Introduction to Adobe Illustrator(CS5)

ICT 10 : Introduction to Adobe Illustrator(CS5)

10th Grade

10 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

Kuiz ICT

Kuiz ICT

KG - 12th Grade

10 Qs

Sistem Komputer

Sistem Komputer

10th Grade

10 Qs

UNIT 1.8 ELCE

UNIT 1.8 ELCE

10th Grade

14 Qs

UNIT 2.4 LOGIC

UNIT 2.4 LOGIC

10th Grade

10 Qs

Programming Library Routines Activity

Programming Library Routines Activity

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

JackR JackR

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Round 18.7356 to two decimal place would use the pseudocode?

ROUND(18.7356, 2)

ROUND(Distance, 2)

ROUND(18.7356, 1)

ROUND(18.7356, 0)

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the pseudocode to carry out the following? Round 18.7356 to one decimal place

ROUND(18.7356, 0)

ROUND(18.7356, 3)

ROUND(18.7356, 2)

ROUND(18.7356, 1)

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

How could you create a random integer between 0 and 100?

ROUND(RANDOM() * 100, 3)

ROUND(RANDOM() * 100, 2)

ROUND(RANDOM() * 100, 0)

ROUND(RANDOM() * 100, 1)

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Explain what the following algorithm does: import statistics ages = [18,2,14,6] a = min(Ages) b = max(Ages) c = sum(Ages) d = statistics.mean(ages) ages.sort() print(ages) print(a,b,c,d) if 14 in ages: print("14 present")

Prints the sorted ages and their minimum, maximum, sum, and mean. Then checks if 14 is present in the ages.

Prints the sorted ages and their maximum, minimum, sum, and mean. Then checks if 14 is present in the ages.

Prints the sorted ages and their sum, minimum, maximum, and mean. Then checks if 14 is present in the ages.

Prints the sorted ages and their mean, maximum, minimum, sum. Then checks if 14 is present in the ages.

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What would the pseudocode be to convert the floating point number stored in totalBill to two decimal places?

ROUND(totalBill, 3)

ROUND(totalBill, 1)

ROUND(totalBill, 2)

ROUND(totalBill, 0)

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

How could you simulate the throw of a dice?

import random dice = random.randint(1, 5) print(dice)

import random dice = random.randint(0, 5) print(dice)

import random dice = random.randint(1, 6) print(dice)

import random dice = random.randint(0, 6) print(dice)

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

A random number between 0 and 100 can be generated with a statement such as

RANDOM() * 102

RANDOM() * 99

RANDOM() * 101

RANDOM() * 100

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?