Py-ngo Workshop Quiz_GDSC

Py-ngo Workshop Quiz_GDSC

University

15 Qs

quiz-placeholder

Similar activities

Plasmid DNA Extraction and Analysis

Plasmid DNA Extraction and Analysis

University

12 Qs

Balance Scorecard

Balance Scorecard

University

15 Qs

Standardized Testing Quiz

Standardized Testing Quiz

University

20 Qs

Quiz articles (a/an/the)

Quiz articles (a/an/the)

University

10 Qs

Signal and System

Signal and System

University

15 Qs

CVR xray revision

CVR xray revision

University

10 Qs

The Contemporary World

The Contemporary World

University

10 Qs

The Lallakay Governance System of the Tingguians of Abra

The Lallakay Governance System of the Tingguians of Abra

University

16 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

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

Already have an account?