Quiz 1.2

Quiz 1.2

Professional Development

32 Qs

quiz-placeholder

Similar activities

UG Code Breaker Challenge Round-1

UG Code Breaker Challenge Round-1

Professional Development

30 Qs

Python Quiz

Python Quiz

Professional Development

27 Qs

Python - Basic Data, Structure, and Concepts

Python - Basic Data, Structure, and Concepts

Professional Development

30 Qs

Python

Python

KG - Professional Development

35 Qs

python

python

KG - Professional Development

30 Qs

Calibración en Python

Calibración en Python

University - Professional Development

27 Qs

Flapo SRE Quizzzz

Flapo SRE Quizzzz

Professional Development

27 Qs

Python Midterm Review

Python Midterm Review

KG - Professional Development

33 Qs

Quiz 1.2

Quiz 1.2

Assessment

Quiz

Computers

Professional Development

Easy

Created by

Mohand Mahmoud

Used 1+ times

FREE Resource

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

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?