Practice: Print - evylang/evy GitHub Wiki
What does this program output?
print "hello"
Choose one correct answer:
-
A
"hello" -
B:
hello -
C:
print hello -
D:
print "hello" -
E: program errors
-
F: none of the above
Consider being a computer..
asdlf
alskdjf
Solution
BWhat does this program output?
print "hola
Choose one correct answer:
-
A:
"hola" -
B:
hola -
C:
print hola -
D:
print "hola" -
E: program errors
-
F: none of the above
Solution
EWhat does this program output?
print "2"
print "1"
Choose one correct answer:
-
A:
1 2 -
B:
2 1 -
C:
"1" "2" -
D:
"2" "1" -
E: program errors
-
F: none of the above
Solution
BWhat does this program output?
print "1" "2"
print "3"
Choose one correct answer:
-
A:
1 2 3 -
B:
12 3 -
C:
1 2 3 -
D:
"1" "2" "3" -
E:
"1" "2" "3" -
F:
1 2 3
Solution
CWhat does this program output?
print "x"
print "y" "z"
Choose one correct answer:
-
A:
x y z -
B:
x yz -
C:
x y z -
D:
"x" "y" "z" -
E:
"x" "y" "z"
Solution
AWhich program creates the following output?
(● _ ●)
Choose two correct answers:
-
A:
print "(●" "_" "●)" -
B:
print "(●" print "_" print "●)" -
C:
print "(●_●)" -
D:
print "(● _ ●)"
Solution
A,DWhich program creates the following output?
*
* *
* * *
Choose two correct answers:
-
A:
print "*" print "* *" print "* * *" -
B:
print " *" print " * *" print "* * *" -
C:
print " *" " * *" "* * *" -
D:
print " *" print " *" "*" print "*" "*" "*"
Solution
B,DWhat does this program output
print "Say 'hello'" "twice."
Enter output:
Solution
Say 'hello' twice.
What does this program output
print "Say 'bye'."
print "Then leave."
Enter output:
Solution
Say 'bye'.
Then leave.
Write a program that prints
1 2 3
4 5 6
Enter code:
Sample solution
print "1 2 3"
print "4 5 6"
Write a program that prints
a b
c d
e F
Enter code:
Sample solution
print "a b"
print "c d"
print "e F"
Write a program that prints
print 1 2 3
print 4 5 6
Enter code:
Sample solution
print "print 1 2 3"
print "print 4 5 6"