Quiz1

Quiz1

University

10 Qs

quiz-placeholder

Similar activities

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Python

Python

University

10 Qs

Python Numpy

Python Numpy

University

11 Qs

Python Control Statements

Python Control Statements

University

10 Qs

Python input, output, and errors

Python input, output, and errors

University

14 Qs

PRF192 C Programming

PRF192 C Programming

University

13 Qs

Java quiz based on inheritance

Java quiz based on inheritance

University

10 Qs

Python list starter

Python list starter

10th Grade - University

12 Qs

Quiz1

Quiz1

Assessment

Quiz

Computers

University

Medium

Created by

Mohand Mahmoud

Used 3+ times

FREE Resource

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?

/

*

%

+

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?