Search Header Logo

HACKATHON HUSTLE(ROUND 2)

Authored by Srinivasa Seelam

Professional Development

Professional Development

Used 2+ times

HACKATHON HUSTLE(ROUND 2)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the best way to debug a Python program?

  1. Python -m pdb Python-script.py  

By Rectifying the errors

Both 1 & 2

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What does "yield" keyword in python imply?

It is used to return a value from a function without terminating the function.
It is used to import a module in Python.
It is used to define a new variable in Python.
It is used to break out of a loop in Python.

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Expand PEP in python?

Python Extension Protocol

Python Error Prevention

Python Enhancement Proposal

Python Enhancement Program

4.

MULTIPLE SELECT QUESTION

45 sec • 5 pts

which of the following function can be used to generate random numbers?

random( )

randint( )

uniform( )

range( )

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following sorting algorithms has the best average-case time complexity?

Merge Sort

Quick Sort

Selection Sort
Bubble Sort

6.

FILL IN THE BLANK QUESTION

1 min • 5 pts

who created python?

7.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

what is the output of the following code

def myfunc(n):

for i in range(0, n):

for j in range(0, i+1):

print(" * ",end="")

print("\r")

The output will be a horizontal line of stars.
The output will be a square pattern of stars.
The output will be a pattern of numbers.
The output will be a right-angled triangle pattern of stars.

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?

Discover more resources for Professional Development