Data types & variables
Quiz
•
Computers
•
University
•
Hard
Julie Hartz
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of
"3.14" ?
Boolean
String
Float
Integer
Answer explanation
Because of the dble quotes, it's a STRING.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
n_students = 250
How would you check the type of n_students?
which(n_students)
data(n_students)
type(n_students)
typeof(n_students)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following:
6.26 > 5
True
False
Error
Answer explanation
You can compare floats to integers, so the answer would be a boolean with the value True
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you create a new variable called my_university?
my_university = McMaster
my_university ==
"McMaster"
my_university is "McMaster"
my_university = "McMaster"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Correct the code below:
my_age = 29
"I am my_age years old"
"I am " + my_age + " years old"
"I am {my_age} years old"
f"I am {my_age} years old"
Answer explanation
my_age is an INTEGER so you need to use a formatted STRING f"... { } ..." to include my_age in your string
Similar Resources on Wayground
10 questions
WN-CELLULAR CONCEPT
Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
10 questions
ALM-CTPS
Quiz
•
University
10 questions
Java Quiz 1
Quiz
•
University
10 questions
Big Data Analytics - Week 2 (Data storage)
Quiz
•
University - Professi...
10 questions
Ulangan Harian Informatika
Quiz
•
University
10 questions
Java Arrays
Quiz
•
University
10 questions
GUI Quiz
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University