Python Basics Quiz

Python Basics Quiz

1st Grade

20 Qs

quiz-placeholder

Similar activities

Understanding Loops in C Programming

Understanding Loops in C Programming

1st Grade - University

15 Qs

Node JS

Node JS

1st Grade

25 Qs

Pensamento_Computacional

Pensamento_Computacional

1st - 5th Grade

16 Qs

EVALUACIÓN FINAL IV 1°

EVALUACIÓN FINAL IV 1°

1st Grade

15 Qs

Introduzione all'informatica 1° parte

Introduzione all'informatica 1° parte

1st Grade

23 Qs

QUIZ

QUIZ

1st Grade

20 Qs

TIK KElas 1 SD

TIK KElas 1 SD

1st - 5th Grade

16 Qs

ITPPA1

ITPPA1

1st Grade

21 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Information Technology (IT)

1st Grade

Hard

Created by

Amira Abd El-aziz

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

a) x : int = 5

b) int x = 5

c) x = 5

d) declare x = 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid variable name?

a) student_name

b) 3score

c) _age

d) price$

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the following variable? num = 10.5

a) int

b) float

c) str

d) bool

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? x = "10" y = 5 print(x + y)

a) 15

b) 105

c) Error

d) "10 5"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types can store decimal numbers?

a) int

b) bool

c) float

d) str

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? print("Hello", "World", sep="-")

a) Hello-World

b) Hello World

c) Hello, World

d) Hello- World

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(5, 10, 15, end="!")?

a) 5 10 15

b) 5 10 15!

c) 5, 10, 15

d) Error

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?