
6P.04 – Develop block-based programs using data types
Quiz
•
Computers
•
6th Grade
•
Practice Problem
•
Easy
Shervon Yak
Used 1+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Computer Fundamentals
Quiz
•
2nd - 10th Grade
10 questions
Artificial Intelligence
Quiz
•
6th - 12th Grade
10 questions
Sumatif Informatika 1: Berpikir Komputasional
Quiz
•
6th Grade
10 questions
ICT 5 EPP
Quiz
•
5th - 6th Grade
10 questions
Programs
Quiz
•
3rd - 6th Grade
10 questions
[ APJII ] Training FTTH - Fiber to the Home
Quiz
•
KG - University
10 questions
Computer Basic
Quiz
•
4th - 10th Grade
10 questions
AVALIAÇÃO | 2º TRIMESTRE |BLOCO 2|
Quiz
•
6th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
