-
Notifications
You must be signed in to change notification settings - Fork 9
Practice: Basic Data Types
What is the type of 2
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
CWhat is the type of -2.3
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
CWhat is the type of 0
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
CWhat is the type of true
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
BWhat is the type of false
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
BWhat is the type of "abc"
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
AWhat is the type of "Howdie!"
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
AWhat is the type of "1"
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
AWhat is the type of "-3.1"
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
AWhat is the type of "true"
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
AWhat is the type of "false"
?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
AWhat does this program output?
print 1 2 12
Choose one correct answer:
-
A:
1212
-
B:
1 2 12
-
C:
print 1 2 12
-
E: program errors
-
F: none of the above
Solution
BWhat does this program output?
print false true
Choose one correct answer:
-
A:
false true
-
B:
false true
-
C:
print false true
-
E: program errors
-
F: none of the above
Solution
AWhat does this program output?
print false "true"
Choose one correct answer:
-
A:
false true
-
B:
false "true"
-
C:
print false "true"
-
E: program errors
-
F: none of the above
Solution
AWhat does this program output?
print 1 "2"
Choose one correct answer:
-
A:
1 2
-
B:
1 "2"
-
C:
print 1 "2"
-
E: program errors
-
F: none of the above
Solution
AWhat does this program output?
print 1 "2
Choose one correct answer:
-
A:
1 2
-
B:
1 "2"
-
C:
print 1 "2"
-
E: program errors
-
F: none of the above
Solution
EWhat does this program output?
print +1 "2"
Choose one correct answer:
-
A:
1 2
-
B:
1 "2"
-
C:
print 1 "2"
-
E: program errors
-
F: none of the above
Solution
EWhat does this program output?
print "3" .5
Choose one correct answer:
-
A:
3 .5
-
B:
"3" .5
-
C:
print "3" .5
-
E: program errors
-
F: none of the above
Solution
EWhich program creates the following output?
true false
Choose three correct answers:
-
A:
print "true" false
-
B:
print "true false"
-
C:
print true false
-
D:
print "tru" false
Solution
A,B,CWhich program creates the following output?
1 2
Choose three correct answers:
-
A:
print "1" 2
-
B:
print "1 2"
-
C:
print 1 2
-
D:
print "1 " 2
Solution
A,B,CWhich program creates the following output?
true 2
Choose three correct answers:
-
A:
print "true" 2
-
B:
print "tru 2"
-
C:
print true 2
-
D:
print true "2"
Solution
A,C,DWhat type is the argument of the color
command?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
AWhat type is the argument of the circle
command?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
CWhat type is the argument of the width
command?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
CWhat type is the argument of the clear
command if there is one given?
Choose one correct answer:
- A:
string
- B:
bool
- C:
num
- D: none of the above
Solution
AOverview | About | Playground | Gallery