PROGRAMMING 1 FUNCTION CHALLENGE Period 3-1

PROGRAMMING 1 FUNCTION CHALLENGE Period 3-1

10th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

CALL: TOEFL Exercise skill 1-3

CALL: TOEFL Exercise skill 1-3

12th Grade

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

Digital Icons

Digital Icons

12th Grade - University

16 Qs

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

Cyber Security

Cyber Security

1st - 10th Grade

10 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Linux: Users and Groups

Linux: Users and Groups

9th Grade - University

14 Qs

PROGRAMMING 1 FUNCTION CHALLENGE Period 3-1

PROGRAMMING 1 FUNCTION CHALLENGE Period 3-1

Assessment

Quiz

Computers

10th - 12th Grade

Practice Problem

Easy

Created by

MANAL FAWAZ

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

If the input for the below equation is ‘Bob’, what will be the output?

Bob * 3

Cannot multiply a string

BobBobBob

Error: ‘x’ is not defined

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

What does the below program print?

8

4

-32

Error

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

def say_hi( first_name=“Mary” , last_name):

-->print(“hi “ + first_name + “ ” + last_name)

say_hi(“Rebecca” , “Rogers”)

Why will the following program not print?

The name Rebecca doesn’t match the name Mary

The first_name and last_name is not properly defined

There is no default argument after the first default argument

There is a missing quotation

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

The except part of the function doesn’t return the statement

True is not defined

There are too many parentheses

The “if” statement should have greater than and an equal sign

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Why do programmers use try and except statements when their code might throw an exception?

So that the programmer can disregard the exception and do what they want within the code

In python it is a requirement to use try and except statements when their code might throw an exceptions

Top print out a proper error statement for the user

Exceptions are used when there are try and except statements.

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What are exceptions used for?

To state that something has gone wrong in the code

To tell the user that the data they gave isn't suitable for the code, (the code asked for an integer and they gave a string)

To allow the programmer to write and develop code that isnt sophisticated, but still run smoothly.

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

23

67

99

92

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?