Python_Quiz

Python_Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

examen secundaria feb

examen secundaria feb

12th Grade

10 Qs

ICT Computer Basics pt1

ICT Computer Basics pt1

10th - 12th Grade

12 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

ICT as Social Change

ICT as Social Change

12th Grade

10 Qs

HTML & Google Site Seatwork

HTML & Google Site Seatwork

12th Grade

10 Qs

1.1 Computer Systems Essential Knowledge

1.1 Computer Systems Essential Knowledge

9th - 12th Grade

15 Qs

Evaluation # 1 - 7th Grade

Evaluation # 1 - 7th Grade

1st - 12th Grade

15 Qs

Python Fundamentals -2

Python Fundamentals -2

11th - 12th Grade

10 Qs

Python_Quiz

Python_Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Muhusina Ismail

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

x=10

if x > =5:

print("x is greater than five!") 

What error message you will get? Choose the correct answer.

None of the above

Syntax Error

Message

Indentation Error Message

All the above

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

My_Variable_Name = “John”

what kind of multi-word variable name is this? Choose the correct answer.

None of the above

Snake Case

Camel Case

Pascal Case

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Wadha wants to write a Python program. In the program, she needs to take the string value from the user. Can you help her to identify the correct syntax for getting the value from the user?

a) x=int(input("Enter the value"))

b) x=str(("Enter the value: "))

c) x=str(input("Enter the value"))

d) x=str(input())

a

b&d

c&d

b&c

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

y=30

z=20

if(y>z): print(“Y is greater than Z”)

This code is correct or not? Choose true if it is correct or choose false if it is not correct.

True

False

Not True

None of the above

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A = B = C = "Apple"

print(A)

print(B,C)

What is the output of this program? Choose the correct option

None of the above

Apple Apple

Apple

Apple

Apple

Apple

Apple Apple

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

trunc() function is not used to eliminate the decimal part of the floating number and returns the Integer number without the decimal part.

None of the above

False

True

Not false

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Given the value of y=3.4567890, you need to limit or set the precision of the floating-point value of y to 3 decimal points using the % operator and print the value of y. Choose the correct syntax?

None of the above

print("%.2f" %a)

print("%.3f" %a)

print(‘%.3f’ %a);

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?