
Intro to CS Semester 1 Unit 2 flashcard

Flashcard
•
Computers
•
12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which line of code outputs the decimal portion of a float stored in the variable x? Options: print (x / 1000), print (x - int(x)), print (x), print (x % 1000)
Back
print (x - int(x))
2.
FLASHCARD QUESTION
Front
What happens if the user types in A when executing the code: x = int(input("Enter a number: "))
print (x)?
Back
This would cause an error: an integer variable cannot store a string.
3.
FLASHCARD QUESTION
Front
Which of the following is NOT a data type in Python? float, string, decimal, integer
Back
decimal
4.
FLASHCARD QUESTION
Front
When would you NOT use a string command? Options: To store a list of colors, To store decimal values, To store a word, To store values NOT used for calculations.
Back
To store decimal values
5.
FLASHCARD QUESTION
Front
Which of the following numbers might this code generate: random.randint(1,9)? Options: 10, 1, 11, 0
Back
1
6.
FLASHCARD QUESTION
Front
What is NOT a built-in function in python? Options: sqrt(), string(), fabs(), print()
Back
string()
7.
FLASHCARD QUESTION
Front
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)
Back
random.randint(-10, 10)
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python modules, operators and random

Flashcard
•
University
20 questions
Python Pygame

Flashcard
•
12th Grade
16 questions
Python Basics Unit 3.1

Flashcard
•
12th Grade
15 questions
Python Programming Flashcard

Flashcard
•
University
15 questions
Python if statement

Flashcard
•
University
15 questions
Python if statement

Flashcard
•
University
14 questions
AP CS ArrayLists

Flashcard
•
12th Grade
16 questions
AP CSA Primitive Types Practice

Flashcard
•
11th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University