2nd Year August Quiz

2nd Year August Quiz

University

40 Qs

quiz-placeholder

Similar activities

MSSDF Module 8

MSSDF Module 8

10th Grade - University

40 Qs

Y10 System Architecture Review

Y10 System Architecture Review

9th Grade - University

40 Qs

SECTION A

SECTION A

KG - University

40 Qs

Quizo'24

Quizo'24

University

40 Qs

Deep Learning

Deep Learning

University

40 Qs

Eng-103 Vocab 2

Eng-103 Vocab 2

University

40 Qs

UTS Deep Learning Lanjut

UTS Deep Learning Lanjut

University

41 Qs

2nd Year August Quiz

2nd Year August Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Anand Bhasme

Used 1+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

1variable

variable_1

variable-1

variable#1

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct way to create a list in Python?

mylist = [1, 2, 3]

mylist = (1, 2, 3)

mylist = {1, 2, 3}

mylist = <1, 2, 3>

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following code?

5

10

15

Error

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the print() function do in Python?

Prints data to the console

Saves data to a file

Converts data to a string

Executes data

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the pass statement in Python?

To terminate a loop

To skip a block of code

To raise an exception

To indicate no action is required

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following code?

[4, 1, 2, 3]

[1, 2, 3, 4]

None

Error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following methods is used to add an element at a specific index in a list?

append()

insert()

extend()

add()

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?