Fun with Python and ML

Fun with Python and ML

12th Grade - Professional Development

10 Qs

quiz-placeholder

Similar activities

defensa

defensa

1st - 12th Grade

10 Qs

Control Accounts

Control Accounts

12th Grade

12 Qs

Introduction Of Microcontroller

Introduction Of Microcontroller

University

10 Qs

FInancial Statements

FInancial Statements

University

10 Qs

SHILOH DEF vs WHS OFF ADJUSTMENT & CHECKS

SHILOH DEF vs WHS OFF ADJUSTMENT & CHECKS

10th - 12th Grade

14 Qs

Hard Disney Quiz

Hard Disney Quiz

3rd - 12th Grade

10 Qs

Python Chapter 3 - Think Python

Python Chapter 3 - Think Python

8th - 12th Grade

15 Qs

Journal Entries

Journal Entries

University

12 Qs

Fun with Python and ML

Fun with Python and ML

Assessment

Quiz

Other

12th Grade - Professional Development

Medium

Created by

Aishwarya Sasanapuri

Used 11+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How will you extract Python from the string word "I love Python programming"? (More than one answers may be correct.)

word[7:13]

word[6:13]

word[7:12]

word[-18:-12]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between '/' and '//'?

'/' returns a float, '//' returns the integer part and discards the fractional part.

'//' returns a float, '/' returns the integer part and discards the fractional part.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The '%' operator returns the ________?

Float operations

Remainder of the division

none

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list_1 is [2, 33, 222, 14, 25]. What is list_1[-3]?

33

25

222

14

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an advantage of using local variables?

They allow the variable to be used throughout the whole program

They allow variable identifiers to be reused each time

They are easier to program than global variables

A wider range of data types can be used

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What term is used to describe data passed into/out of a program?

Variable

Loop

Constant

Parameter

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Leo wants to create a subroutine that will roll a dice. Which syntax is correct?

def dice roll ():

def diceroll ()

def diceroll ():

def diceroll []:

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?