Topic 1 TEST review

Flashcard
•
Computers
•
9th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

26 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Boolean is
Back
True/False Value
Answer explanation
Boolean refers to a data type that can hold one of two values: true or false. This makes 'True/False Value' the correct choice, as it accurately describes the fundamental nature of Boolean logic.
2.
FLASHCARD QUESTION
Front
Which operator checks if a value is equal to another value?
Back
==
Answer explanation
The operator '==' checks if two values are equal. The single '=' is used for assignment, while '!=' checks for inequality. Therefore, '==' is the correct choice for checking equality.
3.
FLASHCARD QUESTION
Front
What data type is "67" ?
Back
string
Answer explanation
The data type "67" is a string because it is enclosed in quotes. In programming, anything within quotes is treated as a string, regardless of its numeric appearance.
4.
FLASHCARD QUESTION
Front
What data type is 12.0? Options: string, int, float, boolean
Back
float
Answer explanation
The value 12.0 is a decimal number, which is classified as a float in programming. Unlike integers (int), floats can represent fractional values, making 'float' the correct data type for 12.0.
5.
FLASHCARD QUESTION
Front
Which variable correctly stores a string value? Options: greeting = hello, greeting = 81, greeting = "hello", greeting = 45.8
Back
greeting = "hello"
Answer explanation
The correct choice is 'greeting = "hello"' because it uses double quotes to define a string. The other options either lack quotes or contain numeric values, which do not represent strings.
6.
FLASHCARD QUESTION
Front
How can you compare if two things are not equal?
Back
!=
Answer explanation
To compare if two things are not equal, the correct operator is '!='. This operator is commonly used in programming languages to denote inequality, while 'not equals' and 'NOT EQUALS' are not standard syntax.
7.
FLASHCARD QUESTION
Front
What type of data is the following?: X = "195.67"
Back
String
Answer explanation
The value X = "195.67" is enclosed in quotes, indicating it is a string. Although it represents a number, it is not treated as a float or integer in this context because it is a sequence of characters.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Basics Review (TSK)

Flashcard
•
9th - 12th Grade
20 questions
13.7 Histograms

Flashcard
•
9th Grade
21 questions
Python Basics Review

Flashcard
•
10th Grade
18 questions
Python Basics Review

Flashcard
•
10th Grade
18 questions
Python Basics Review

Flashcard
•
10th Grade
18 questions
Python Functions

Flashcard
•
9th Grade
18 questions
Python Functions

Flashcard
•
9th Grade
18 questions
Microbit Flashcard

Flashcard
•
8th - 10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade