
ECE B_Python Class Test_QA
Authored by Mrs.P.Malin 1588
others
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code snippet? print(2**3 + (5 + 6)**(1 + 1))
129
8
121
None of the above.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the datatype of the var in the below code snippet?
var = 10;
print(type(var));
var = "Hello";
print(type(var))
str and int
int and int
str and str
int and str
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How is a code block indicated in Python?
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code snippet?
a = 3;
b = 1;
print(a, b);
a, b = b, a;
print(a, b);
3 1 1 3
3 1 3 1
1 3 1 3
1 3 3 1
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following types of loops are not supported in Python?
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code snippet?
s = {1, 2, 3, 3, 2, 4, 5, 5};
print(s);
{1,2,3,3,2,4,5,5}
{1,2,3,4,5}
None
{1,5}
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following are valid string manipulation functions 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?