Untitled Quiz

Untitled Quiz

University

20 Qs

quiz-placeholder

Similar activities

Python Library Routines Quiz

Python Library Routines Quiz

10th Grade - University

18 Qs

Bài 26

Bài 26

10th Grade - University

15 Qs

แข่งขันcodingม.ต้น

แข่งขันcodingม.ต้น

12th Grade - University

15 Qs

Quiz Pemrograman Arduino

Quiz Pemrograman Arduino

10th Grade - University

15 Qs

Python Challenge

Python Challenge

University

15 Qs

G9-Introduction to Python Programming

G9-Introduction to Python Programming

9th Grade - University

25 Qs

2F-3 | Python Quiz | 14/11/2024

2F-3 | Python Quiz | 14/11/2024

University

20 Qs

2F-1 | Python Quiz | 14/10/2024

2F-1 | Python Quiz | 14/10/2024

University

20 Qs

Untitled Quiz

Untitled Quiz

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

SUCHETA MOHARANA

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct extension of Python files?

.pt

.pyt

.py

.python

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to display output in Python?

echo()

write()

display()

print()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of :

x = 5

print(type(x))

<type: int>

int

<class 'int'>

<int>

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 10 // 3 in Python?

3.33

3

4

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

2value

my-value

my_value

my value

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a single-line comment in Python?

//

/* comment */

# comment

-- comment

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the input() function do?

Displays output

Reads input from user

Ends program

None

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?

Discover more resources for Information Technology (IT)