Topic 1 TEST review

Topic 1 TEST review

Assessment

Flashcard

Computers

9th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?