6P.04 – Develop block-based programs using data types

6P.04 – Develop block-based programs using data types

6th Grade

10 Qs

quiz-placeholder

Similar activities

NotchUp - Scratch My First Quiz

NotchUp - Scratch My First Quiz

1st - 8th Grade

8 Qs

Evaluasi Materi Teknologi Informasi

Evaluasi Materi Teknologi Informasi

1st - 10th Grade

10 Qs

Основы PASCAL

Основы PASCAL

4th - 8th Grade

10 Qs

Một số khái niệm về lập trình và ngôn ngữ lập trình

Một số khái niệm về lập trình và ngôn ngữ lập trình

KG - 12th Grade

15 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

Artificial Intelligence Quiz

Artificial Intelligence Quiz

6th Grade

12 Qs

Quiz 5 - Networking and the Internet

Quiz 5 - Networking and the Internet

4th - 8th Grade

12 Qs

Flowol

Flowol

KG - University

10 Qs

6P.04 – Develop block-based programs using data types

6P.04 – Develop block-based programs using data types

Assessment

Quiz

Computers

6th Grade

Practice Problem

Easy

Created by

Shervon Yak

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an INTEGER?

“8”

8

“Hello”

“A”

Answer explanation

The only INTEGER in the options is 8. The other choices are either strings ("8", "Hello", "A") or non-numeric values, making 8 the correct answer.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which example is a STRING?

25

-3

“Raffles123”

A

Answer explanation

A STRING is a sequence of characters enclosed in quotes. Among the options, "Raffles123" is the only one that meets this criterion, making it the correct choice.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is best to store a person’s initial (e.g., ‘A’)?

Integer

String

Character

Boolean

Answer explanation

The best data type to store a person's initial, like 'A', is 'Character'. This type is specifically designed to hold single characters, making it ideal for representing initials. Strings can also work, but 'Character' is more precise.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable “score” should be which type?

Integer

Character

Answer explanation

The variable 'score' should be an Integer because scores are typically represented as whole numbers, allowing for arithmetic operations. A Character type would not be suitable for numerical scoring.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation can ONLY be used with integers?

Adding two values

Joining text

Changing to uppercase

Splitting letters

Answer explanation

Adding two values is an operation that can only be performed with integers, as it involves arithmetic. The other options—joining text, changing to uppercase, and splitting letters—are operations applicable to strings.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Scratch, what happens if you try to add “5” (string) + 3 (integer)?

Error

Scratch converts “5” to 5 and adds → result 8

Scratch converts 3 to “3” and joins → “53”

Program crashes

Answer explanation

In Scratch, when adding a string "5" and an integer 3, the string is converted to a number. Thus, 5 + 3 equals 8, making the correct choice: Scratch converts "5" to 5 and adds → result 8.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the BEST data type to store a username?

Integer

Character

String

Boolean

Answer explanation

The BEST data type to store a username is a String, as usernames can contain letters, numbers, and special characters. Integers, Characters, and Booleans do not accommodate the diverse nature of usernames.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers