
Intro to CS Unit 3 Practice test

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

16 questions
Show all answers
1.
FLASHCARD QUESTION
Front
When do you use an else statement?
Back
To tell what will happen when an if-statement is false
Answer explanation
The else case will run when all of the other conditions checked are false
2.
FLASHCARD QUESTION
Front
Which of the following is NOT true about all algorithms?
- All algorithms can only do number calculations
- All algorithms have clear instructions
- All algorithms stop in a finite amount of time
- All algorithms have an order
Back
All algorithms can only do number calculations
Answer explanation
Algorithms are not restricted to only number calculations, they can do other processes as well.
3.
FLASHCARD QUESTION
Front
The following code could be rewritten using:
if (x > 12):
if (x < 34):
Back
and
Answer explanation
This is correct because both conditions need to be true
4.
FLASHCARD QUESTION
Front
Write the code to test if the number in the variable text1 is greater than 15.
Back
if (text1 > 15):
Answer explanation
This correctly tests if text1 is greater than the number 15
5.
FLASHCARD QUESTION
Front
Write the code to test if the number 78 is stored in the variable text1:
Back
if (text1 == 78):
Answer explanation
This correctly tests if text1 equals the number 78
6.
FLASHCARD QUESTION
Front
Write the code to test if the variables num1 and num2 are not the same
Back
if (num1 != num2 ):
Answer explanation
This correctly tests if num1 is not equal to num2
7.
FLASHCARD QUESTION
Front
To test if x is greater than or equal to y: if (x ___ y):
Back
>=
Answer explanation
This would be used to check if x is greater than or equal to y
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Halloween Java

Flashcard
•
12th Grade
8 questions
Investigating and Creating Variables Flashcard

Flashcard
•
11th Grade - University
10 questions
Циклдік операторлар. 6.1 Цикл ішінде циклдер 6.2 Continue опер

Flashcard
•
KG - University
10 questions
Graphing Inequalities

Flashcard
•
12th Grade
15 questions
PCEP Section 1A: Understand fundamental terms and definitions

Flashcard
•
12th Grade
11 questions
Python [Basic]

Flashcard
•
KG
10 questions
Concept check PDLC part 3

Flashcard
•
11th Grade - University
13 questions
Q2.1 Piecewise Functions (QZ)

Flashcard
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University