Third Day Quiz!

Third Day Quiz!

1st - 5th Grade

10 Qs

quiz-placeholder

Similar activities

Python-Partie9

Python-Partie9

1st Grade

10 Qs

Social credit test

Social credit test

KG - Professional Development

10 Qs

TRÒ CHƠI TIẾNG ANH

TRÒ CHƠI TIẾNG ANH

1st - 10th Grade

10 Qs

Ingatkah Kalian?

Ingatkah Kalian?

1st Grade

15 Qs

Tìm hiểu thư điện tử

Tìm hiểu thư điện tử

2nd Grade

13 Qs

C# lesson10

C# lesson10

1st - 10th Grade

10 Qs

adobe dreamweaver cs6

adobe dreamweaver cs6

3rd Grade

10 Qs

EXAMEN DE COMPUTACIÓN 5° P 3ER. BIMESTRE

EXAMEN DE COMPUTACIÓN 5° P 3ER. BIMESTRE

5th Grade

12 Qs

Third Day Quiz!

Third Day Quiz!

Assessment

Quiz

Fun, Computers, Philosophy

1st - 5th Grade

Practice Problem

Hard

Created by

Bernard Huan

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What's wrong with the syntax? (ignore the indentation)

def Function1();

print("hello world")

it doesn't take in any parameters

the semicolon should be replaced by colon

the function name starts with upper-case "F"

it doesn't return anything

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

A function is

Specific codes with a specific purpose(s) all together so they are maintainable and organized

A waste of time to use and it doesn't help your codes at all

Locate your codes in a single place so that it's easier to maintain

It's like a factory that may take into input (parameters) and process the input and give you a product (return)

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

How do I call the helloWorld function?

helloWorld

shout HELLO WORLD as loud as you can

helloWorld()

print("Hello World")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What's wrong with this code?

It doesn't return a*b

It's missing two required parameters

the syntax of the function is wrong

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output and why?

False because the function is not equal to "Hello!"

False because "Hello!" is not equal to a

True because the voice_echo function will return "Hello!"

True because voice_echo function has been assigned to True by the return keyword

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statement is false?

Sometimes function doesn't take parameters, sometimes it doesn't return anything, it all depends on your use case

return is only used when there is at least one parameter

using a return without parameter(s) is possible

We should always use functions to group our codes with specific purpose(s)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the hierarchical variable scope order is correct?

Local -> Enclosing -> Built-in -> Global

Built-in -> Global -> Enclosing -> Local

Enclosing -> Local -> Global -> Built-in

Local -> Enclosing -> Global -> Built-in

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?