HC-12

HC-12

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Python

Python

10th Grade

23 Qs

Loops in Python !

Loops in Python !

11th Grade

15 Qs

Python Beginner

Python Beginner

9th - 10th Grade

16 Qs

Python First Steps Homework Quiz

Python First Steps Homework Quiz

7th - 9th Grade

20 Qs

GCSE Computer Science: Programming (Python)

GCSE Computer Science: Programming (Python)

9th - 12th Grade

25 Qs

Python while loops

Python while loops

12th Grade

20 Qs

For Loops in Python

For Loops in Python

9th Grade - University

20 Qs

For and While Loop in Python

For and While Loop in Python

9th Grade - University

20 Qs

HC-12

HC-12

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Riya Shakya

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the correct way to declare a variable in Python?

var x = 5

x = 5

int x=5

declare x=5

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the datatype of the result of the expression 5 + 2.5?

int

float

bool

str

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which one is not the advantages of Python Languages ?

Extensible

Object-oriented


Fewer-line code

none

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Python's name was inspired by the Comedy Series-----

Monthly Python

Moth Python


Monty Python

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which function is used to get user input from the console in Python?

input()

enter()

print()

==

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How do you print the elements of a list named my_list in Python?

print(my_list)


printElements(my_list)

showList(my_list)

display(my_list)

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which keyword is used to check if a condition is true or false in Python?

else

while

if

when

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?