CS Python Fundamentals Flashcard 4 Practice

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

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the best definition of the term initialization?
Back
The process of setting a variable equal to a known value.
2.
FLASHCARD QUESTION
Front
In the following code, what is output?
Options:
1 2 3 4 5 6 7,
1 2 3 4 5 6,
1 3 5 7 9 11,
1 2 3 4 5 6
Back
1 2 3 4 5 6
3.
FLASHCARD QUESTION
Front
In the following code, c would be called a(an) ...
Back
loop control variable
4.
FLASHCARD QUESTION
Front
What would be printed by the following loop? Options: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20, 1 4 7 10 13 16 19, 4 7 10 13 16 19, 4 7 10 13 16 19 22
Back
4 7 10 13 16 19 22
5.
FLASHCARD QUESTION
Front
Which of the following is NOT true about for loops? They frequently use the range function, They allow the user to have control to stop the loop, They are used when you know in advance how many times a loop should run, They can execute multiple lines of indented code
Back
They allow the user to have control to stop the loop
6.
FLASHCARD QUESTION
Front
What is output by the following code?
for x in range(5):
print (x,end="")
Back
0 1 2 3 4
7.
FLASHCARD QUESTION
Front
What is output by the following code?
for x in range(10, 1, -3):
print(x, end=" ")
Back
10 7 4
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Reading and Writing Files with Python Intro

Flashcard
•
9th - 12th Grade
3 questions
Untitled Flashcards

Flashcard
•
9th Grade - University
10 questions
Python Loops Flashcard

Flashcard
•
10th Grade
11 questions
Flow charts and pseudo code

Flashcard
•
9th - 11th Grade
8 questions
Lab 0- EduBlocks- Terms and Concepts

Flashcard
•
9th - 12th Grade
10 questions
DSL 106 W8 D2

Flashcard
•
KG - University
8 questions
Java CH4 - Control Statements EXIT

Flashcard
•
10th - 12th Grade
10 questions
Unit3L10and11The Draw Loop and Movement

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade