
Quiz1
Authored by Mohand Mahmoud
Computers
University
Used 3+ 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 • 2 pts
What is output of this code:
int x = 5.2
print(x)
5.0
5
5.2
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = 14.9;
what is the type of variable x?
int
float
double
Nontype
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill the gaps.
___Declaring an integer
and printing it___
x = 42;
print(x);
//......//
/*.....*/
<..............>
""" ....................""
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output of this code?
R = 3.1
R=5
print(R)
3.1
5
Error
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which one print 10?
num =9
print ("the number is $num + 1")
num =9
print ("the number is num +1")
num =9
print ("the number is ${num + 1}")
num =9
print ("the number is " , (num +1))
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a ="4";
b ="2";
print(a + b);
what is the output of this code?
Error
6
42
Error
Null
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to determine the remainder?
/
*
%
+
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?