Search Header Logo

Quiz 1.2

Authored by Mohand Mahmoud

Computers

Professional Development

Used 1+ times

Quiz 1.2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

32 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

5.2

5.0

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

x = 14.9;

what is the type of variable x?

int

float

double

str

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

a = 9;

b = 5;

print("a>b");

what is the output of this code?


True

False

a>b

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Type casting is when you assign a value of one data type to another type??

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

How do you start writing an if statement ?


if x > y:

if x>y {

if x > y then:

if (x > y)

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

what is the output of this code?

name="Ali"

out = name +"Ahmed"

print(out)

Ahmed

Ali

Ali Ahmed

Erorr

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

a = 9

b = 5

print(a>b and 4>7)

what is the output of this code?

9>5 and 4>7

a>b and 4>7

True

False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?