
CSC401 Recap
Authored by Joumana Naji
Computers
9th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of the 'end' parameter in the print() function?
empty string ('')
newline character (\n)
comma (,)
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? print("Hello", "World", sep="-")
Hello-World
Hello World
Hello-World-
HelloWorld
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid data type in Python?
int
str
bool
num
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of the value returned by the expression 3.14?
int
float
str
bool
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to declare a variable in Python?
1st_variable = 10
my-variable = 10
my_variable = 10
my variable = 10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? print(5 + "5")
10
55
TypeError
5 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to concatenate strings in Python?
+
*
/
&
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?