Py-ngo Workshop Quiz_GDSC

Py-ngo Workshop Quiz_GDSC

University

15 Qs

quiz-placeholder

Similar activities

Arts 6 - Quarter 2 (Quiz #1) / MR. BARAIRO

Arts 6 - Quarter 2 (Quiz #1) / MR. BARAIRO

6th Grade - University

10 Qs

QUIZ PKWH

QUIZ PKWH

12th Grade - University

15 Qs

Sobrang Latina

Sobrang Latina

University

20 Qs

MIS - GR8

MIS - GR8

University

10 Qs

LPG 1991

LPG 1991

University

12 Qs

Emotional Control

Emotional Control

University

10 Qs

Kuis Kuliah PKM Garuda Sakti 2023

Kuis Kuliah PKM Garuda Sakti 2023

University

15 Qs

Nav5 Quiz 1 (Final)

Nav5 Quiz 1 (Final)

University

10 Qs

Py-ngo Workshop Quiz_GDSC

Py-ngo Workshop Quiz_GDSC

Assessment

Quiz

Others

University

Hard

Created by

Shreya Khanna

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

      Find the output upon running this code

mango

cherry

litchi

banana

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

thislist = ["apple", "banana", "cherry", "orange", "kiwi”]

    thislist[1:3] = ["blackcurrant", "watermelon"]

    print(thislist)

   Output for the following code is :


[‘blackcurrant’, ‘watermelon’, ‘cherry’, ‘orange’, ‘kiwi’]

["apple", "blackcurrant", "watermelon", "orange", "kiwi”]

["blackcurrant", "banana", "watermelon", "orange", "kiwi”]

["apple", "banana", "cherry", "orange", "kiwi”]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Statement1 : Lists are faster for accessing individual elements than arrays

     Statement2: Array is faster when it comes to removing or adding elements than list

  1. Both statements are true

  1. 1 is true, 2 is false

Both are false

  1. 2 is true, 1 is false

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to break out of a loop?

return

break

end

pass

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

str= “ I am 18 years old .\n I can vote.”

       What is “\n” (backslash n) command used for ?


  1. Create space in between words

  1. Shift the text to next line

  1. Remove the text 

  1. Delete the space in between two words

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Fill in the blanks with the name of the appropriate module to get the output "6"

maths

math

mathematics

numpy

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Find the output of the code

[50, 100, 150, 200, 1, 50, 5]

[50, 100, 150, 200, 1, 50, 5, 1, 50, 5]


[50, 100, 150, 200]

AttributeError

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?