Python final questions part 1

Python final questions part 1

University

62 Qs

quiz-placeholder

Similar activities

CompTIA Security+ Lesson 13 Revision

CompTIA Security+ Lesson 13 Revision

University

60 Qs

ИКТ бастапқы 60 сұрақ

ИКТ бастапқы 60 сұрақ

University

60 Qs

TECHNOMANIA QUIZ

TECHNOMANIA QUIZ

University

60 Qs

Web Development Quiz

Web Development Quiz

University

60 Qs

CPTR363 Cybersecurity Quiz

CPTR363 Cybersecurity Quiz

University

61 Qs

Digital Audio and Video Quiz # 1

Digital Audio and Video Quiz # 1

University

60 Qs

KELAS 1-REVIEW MATERI INFORMATIKA SM2

KELAS 1-REVIEW MATERI INFORMATIKA SM2

1st Grade - University

65 Qs

Section 3 Ch15 Web 2.0

Section 3 Ch15 Web 2.0

University

58 Qs

Python final questions part 1

Python final questions part 1

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Rochan[Zere] Ienjun

Used 18+ times

FREE Resource

62 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of a variable in Python?



a) To store data values.

b) To execute Python code.

c) To display output on the screen.

d) To import external libraries.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to display "Hello, World!" in Python?



print("Hello, World!")

echo "Hello, World!"

printf("Hello, World!")

System.out.print("Hello, World!")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a sequence of characters in Python?

str

int

list

dict

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the input() function in Python?

To take user input.

To define a variable.

To iterate over a sequence.

To display output.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a list in Python?

my_list = [1, 2, 3]

my_list = {1, 2, 3}

my_list = (1, 2, 3)

my_list = <1, 2, 3>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python operator is used for addition?

+

-

*

/

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for a while loop in Python?


while x > 10:

while(x > 10)

while x < 10

repeat while x < 10

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?