Python Quiz -7 Summer Internship

Python Quiz -7 Summer Internship

Professional Development

10 Qs

quiz-placeholder

Similar activities

SLAC ON TEST CONSTRUCTION WITH TOS

SLAC ON TEST CONSTRUCTION WITH TOS

Professional Development

10 Qs

Mastering Advocacy Skills

Mastering Advocacy Skills

Professional Development

10 Qs

Cyber 2 Module 4

Cyber 2 Module 4

9th Grade - Professional Development

15 Qs

Processes

Processes

Professional Development

10 Qs

Unearth the facts

Unearth the facts

Professional Development

6 Qs

Training on SLP-Developed Information Systems

Training on SLP-Developed Information Systems

Professional Development

15 Qs

CUSTOMER EXPERIENCE

CUSTOMER EXPERIENCE

Professional Development

10 Qs

MGNF 6

MGNF 6

Professional Development

15 Qs

Python Quiz -7 Summer Internship

Python Quiz -7 Summer Internship

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

Gnaneshwar Reddy

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

  • A. list = {}

B. list = ()

  • C. list = []

  • D. list = <>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element of a list named my_list?

  • A. my_list(0)

  • B. my_list[0]

  • C. my_list{0}

  • D. my_list<0>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(len([1, 2, 3, 4]))?

  • A. 3

  • B. 4

  • C. 5

  • D. Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you add an element 5 to the end of a list named numbers?

  • A. numbers.append(5)

  • B. numbers.add(5)

  • C. numbers.insert(5)

  • D. numbers.extend(5)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to remove the last element from a list named items?

  • A. items.delete()

  • B. items.remove()

  • C. items.pop()

  • D. items.clear()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print([1, 2, 3] + [4, 5, 6])?

  • A. [1, 2, 3, 4, 5, 6]

  • B. [[1, 2, 3], [4, 5, 6]]

  • C. [1, 2, 3, [4, 5, 6]]

  • D. [1, 2, 3, 4, 5]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print([1, 2, 3] * 2)?

  • A. [1, 2, 3, 1, 2, 3]

  • B. [2, 4, 6]

  • C. [1, 2, 3, 3, 2, 1]

  • D. [1, 2, 3, 1]

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?