Python-M6-Term2-Q1-Finals

Python-M6-Term2-Q1-Finals

12th Grade

30 Qs

quiz-placeholder

Similar activities

Designing and Modifying Database Tables Review

Designing and Modifying Database Tables Review

9th - 12th Grade

34 Qs

Word 2016 Lesson 1-9 Practice Midterm

Word 2016 Lesson 1-9 Practice Midterm

9th - 12th Grade

30 Qs

Digital Image File Formats

Digital Image File Formats

7th - 12th Grade

35 Qs

Estimating Parameters and Determining Sample Sizes 7-1

Estimating Parameters and Determining Sample Sizes 7-1

12th Grade

25 Qs

Inscoe - CPI 7.01-7.04

Inscoe - CPI 7.01-7.04

9th - 12th Grade

30 Qs

CIW IBA Prep

CIW IBA Prep

9th - 12th Grade

35 Qs

Word Modules 1-3 Review

Word Modules 1-3 Review

9th - 12th Grade

30 Qs

Word interface

Word interface

9th - 12th Grade

25 Qs

Python-M6-Term2-Q1-Finals

Python-M6-Term2-Q1-Finals

Assessment

Quiz

Business

12th Grade

Hard

Created by

Mr. P.Imperio

Used 10+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of this program if the user enters "Jan" and then "Lisa"?

def myname(first, surname):

name = first + " " + surname

return name

first = input("Enter your name")

surname = input("Enter your surname")

name = myname(first, surname)

print(name)

An error

Nothing

First surname

Jan Lisa

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of this program if the user enters "apple" and then "banana"?

def fruitname(first, second):

name = first + " and " + second

return name

first = input("Enter your first fruit")

second = input("Enter your second fruit")

name = fruitname(first, second)

print(name)

An error

Nothing

First and second

apple and banana

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of this program if the user enters "red" and then "blue"?

def colorname(first, second):

name = first + " and " + second

return name

first = input("Enter your first color")

second = input("Enter your second color")

name = colorname(first, second)

print(name)

An error

Nothing

First and second

red and blue

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of this program if the user enters "dog" and then "cat"?

def animalname(first, second):

name = first + " and " + second

return name

first = input("Enter your first animal")

second = input("Enter your second animal")

name = animalname(first, second)

print(name)

An error

Nothing

First and second

dog and cat

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of this program be when it is run?

def helloworld ():

       print (“ Hello, world”)

nothing

Hello,World

It will generate an error

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would the following output be from this program?

def printmessage ():

       message =  message + “ , World”

       print(message)

message = “ Hello”

printmessage()

Error

Hello, World

Hello

World

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Actual values that the parameters take when the sub program is called.

parameters

subroutine

define

arguments

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?