Info Tech

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:36 PM on 1/15/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

18 Terms

1
New cards

What is the formula to calculate the area of a rectangle?

Area = length * width

2
New cards

What is the formula to calculate the perimeter of a rectangle?

Perimeter = 2 * (length + width)

3
New cards

How do you request input from a user in Python?

Use the input() function to get input from a user.

4
New cards

What formula is used to calculate the area of a circle?

Area = 3.14 * radius^2

5
New cards

How do you determine if a number is even or odd in Python?

Use an if statement with the condition 'number % 2'.

6
New cards

What are the conditions for a year to be a leap year?

A year is a leap year if it is divisible by 4 but not by 100, or if it is divisible by 400.

7
New cards

How do you round a floating point number to two decimal places in Python?

Use the round() function with the second argument set to 2.

8
New cards

What is the purpose of a for loop in Python?

To iterate over a sequence (like a list or a range) and execute a block of code for each item.

9
New cards

What does a while loop do?

It repeatedly executes a block of code as long as a specified condition is True.

10
New cards

How do you define a function in Python?

Use the 'def' keyword followed by the function name and parentheses.

11
New cards

What is the mathematical representation of factorial?

N! = N * (N-1) * (N-2) * ... * 2 * 1.

12
New cards

How do you convert degrees Celsius to Fahrenheit in Python?

Use the formula F = (C * 9/5) + 32.

13
New cards

What does a dictionary in Python do?

It stores data in key-value pairs.

14
New cards

How do you create a list in Python?

Use square brackets [], with items separated by commas.

15
New cards

What is list comprehension?

A concise way to create lists using a single line of code with an expression inside square brackets.

16
New cards

How can you calculate the average of a list in Python?

Sum the elements of the list and divide by the number of elements.

17
New cards

What does 'distance_km' represent when converting from 'distance_miles'?

A list containing distances converted from miles to kilometers.

18
New cards

Explore top notes

note
Invisible Man Chapter 1
Updated 1173d ago
0.0(0)
note
Media & Information Literacy
Updated 322d ago
0.0(0)
note
Invisible Man Chapter 7
Updated 1173d ago
0.0(0)
note
Unit 3 : Macromolecules
Updated 313d ago
0.0(0)
note
International Cooperation
Updated 1195d ago
0.0(0)
note
Biochimie
Updated 746d ago
0.0(0)
note
Invisible Man Chapter 1
Updated 1173d ago
0.0(0)
note
Media & Information Literacy
Updated 322d ago
0.0(0)
note
Invisible Man Chapter 7
Updated 1173d ago
0.0(0)
note
Unit 3 : Macromolecules
Updated 313d ago
0.0(0)
note
International Cooperation
Updated 1195d ago
0.0(0)
note
Biochimie
Updated 746d ago
0.0(0)

Explore top flashcards

flashcards
S.S. Unit 3 - Study Guide
57
Updated 126d ago
0.0(0)
flashcards
Chapter 27
120
Updated 705d ago
0.0(0)
flashcards
Lit Words: 2 The Boogaloo
24
Updated 496d ago
0.0(0)
flashcards
Lab Practical 3
75
Updated 755d ago
0.0(0)
flashcards
Polyatomic Ions
21
Updated 768d ago
0.0(0)
flashcards
Latin Week 5
26
Updated 920d ago
0.0(0)
flashcards
Connect 4, Unit 3
52
Updated 1011d ago
0.0(0)
flashcards
S.S. Unit 3 - Study Guide
57
Updated 126d ago
0.0(0)
flashcards
Chapter 27
120
Updated 705d ago
0.0(0)
flashcards
Lit Words: 2 The Boogaloo
24
Updated 496d ago
0.0(0)
flashcards
Lab Practical 3
75
Updated 755d ago
0.0(0)
flashcards
Polyatomic Ions
21
Updated 768d ago
0.0(0)
flashcards
Latin Week 5
26
Updated 920d ago
0.0(0)
flashcards
Connect 4, Unit 3
52
Updated 1011d ago
0.0(0)