

Library Routine and Arrays
Presentation
•
Computers
•
10th Grade
•
Easy
kt geethu
Used 2+ times
FREE Resource
4 Slides • 5 Questions
1
Multiple Choice
2
Multiple Choice
3
Multiple Choice
A subroutine that does return a value to the program that called it
Subroutines
Functions
Procedures
Parameters
4
Multiple Choice
The variable or constant that can be only be accessed in the subroutine it is declared within.
Local variable
Global
None of the options are correct
Parameters
5
Open Ended
LIST FOUR LIBRARY ROUTINES YOU HAD LEARNT IN THE CLASS
6
LIBRARY ROUTINE EXAMPLE
import statistics
import numpy
data = [1, 2, 3, 4, 5]
# Using statistics.mean
mean1= statistics.mean(data)
print("Mean:",mean1)
# Using numpy.mean
mean2 = numpy.mean(data)
print("Mean",mean2)
7
QUESTION
Write a pseudocode & python code to simulate a temperature conversion program. Your program should: -
Prompt the user to enter a temperature in Celsius.
Convert the temperature to Fahrenheit using the formula: F = (C * 9/5) + 32.
Use the ROUND function to round the Fahrenheit temperature to two decimal places.
Display the rounded Fahrenheit temperature.
Use the MOD function to determine if the Fahrenheit temperature is an even or odd number. - Display whether the temperature is even or odd.
8
ARRAYS
9
DECLARATION
Show answer
Auto Play
Slide 1 / 9
MULTIPLE CHOICE
Similar Resources on Wayground
10 questions
Evolution
Presentation
•
10th Grade
7 questions
Quiz - Coding 1 Vocabulary Words
Presentation
•
10th Grade
7 questions
Symmetry
Presentation
•
9th - 10th Grade
7 questions
EDU-202-Plot, Setting and Characterization
Presentation
•
10th Grade
10 questions
Databases Introduction
Presentation
•
10th Grade
8 questions
Variables and Hypothesis Review
Presentation
•
9th - 10th Grade
9 questions
Unit 5: Digital Imaging
Presentation
•
10th Grade
Popular Resources on Wayground
10 questions
HCS SCI 03 Summer School Review 4
Quiz
•
3rd Grade
11 questions
HSMS - Standard Response Protocol
Quiz
•
6th - 8th Grade
16 questions
1.1-1.2 Quiz Review
Quiz
•
9th - 12th Grade
12 questions
Exponent Expressions
Quiz
•
6th Grade
20 questions
Adding and Subtracting Integers
Quiz
•
6th - 7th Grade
11 questions
Northeast States
Quiz
•
3rd - 4th Grade
10 questions
Characterization
Quiz
•
3rd - 7th Grade
10 questions
Common Denominators
Quiz
•
5th Grade