Programming Library Routines Activity

Programming Library Routines Activity

10th Grade

10 Qs

quiz-placeholder

Similar activities

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

Lesson 1 Introduction to Database System

Lesson 1 Introduction to Database System

10th Grade

10 Qs

Review

Review

9th - 12th Grade

10 Qs

G7 - Ôn tập C1,2

G7 - Ôn tập C1,2

KG - University

10 Qs

evolution of computer

evolution of computer

9th - 12th Grade

14 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

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