Py-ngo Workshop Quiz_GDSC

Py-ngo Workshop Quiz_GDSC

University

15 Qs

quiz-placeholder

Similar activities

SDG 17- PARTNERSHIP FOR THE GOALS

SDG 17- PARTNERSHIP FOR THE GOALS

University

10 Qs

Quiz from Harumi Aina ^•^ [#1]

Quiz from Harumi Aina ^•^ [#1]

University

10 Qs

Women in the Bible Quiz

Women in the Bible Quiz

University

15 Qs

Group 5

Group 5

University

19 Qs

Understanding Sports Officiating

Understanding Sports Officiating

University

16 Qs

Total Defence Day Quiz

Total Defence Day Quiz

University

15 Qs

Distance and Displacement 7

Distance and Displacement 7

7th Grade - University

10 Qs

BDS (2023 - 2024) - 02

BDS (2023 - 2024) - 02

University

10 Qs

Py-ngo Workshop Quiz_GDSC

Py-ngo Workshop Quiz_GDSC

Assessment

Quiz

Others

University

Practice Problem

Hard

Created by

Shreya Khanna

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

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

Already have an account?