Python-M6-Term2-Q1-Finals

Python-M6-Term2-Q1-Finals

12th Grade

30 Qs

quiz-placeholder

Similar activities

Unit 1: Assignment 2 Quiz

Unit 1: Assignment 2 Quiz

11th - 12th Grade

25 Qs

BRAC Micro Enterprise Regional Practice Test Pt 1

BRAC Micro Enterprise Regional Practice Test Pt 1

10th - 12th Grade

25 Qs

Share Capital

Share Capital

12th Grade

25 Qs

EverFi Financial Literacy Lesson 3: Budgeting

EverFi Financial Literacy Lesson 3: Budgeting

10th - 12th Grade

30 Qs

SEM I 4.0 Quiz Review

SEM I 4.0 Quiz Review

9th - 12th Grade

25 Qs

Business Management I (Objectives 2.01-2.04)

Business Management I (Objectives 2.01-2.04)

9th - 12th Grade

26 Qs

HT Unit 4.00 Review

HT Unit 4.00 Review

9th - 12th Grade

26 Qs

FINANCE 200 TERM EXAM

FINANCE 200 TERM EXAM

12th Grade

25 Qs

Python-M6-Term2-Q1-Finals

Python-M6-Term2-Q1-Finals

Assessment

Quiz

Business

12th Grade

Practice Problem

Hard

Created by

Mr. P.Imperio

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?