Swift Unit 2

Swift Unit 2

9th - 12th Grade

24 Qs

quiz-placeholder

Similar activities

QUIZ 3 SAM

QUIZ 3 SAM

12th Grade

20 Qs

Fundamentos de Mecatrónica

Fundamentos de Mecatrónica

9th - 12th Grade

20 Qs

ICT - CSS - SCN - Set Network Configuration

ICT - CSS - SCN - Set Network Configuration

9th Grade

20 Qs

Recusion

Recusion

12th Grade

19 Qs

Excel Foundations

Excel Foundations

9th Grade

20 Qs

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

History of the computer

History of the computer

12th Grade

20 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Swift Unit 2

Swift Unit 2

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Darren Hanson

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What best describes an algorithm?

Only calculations that use advanced mathematics

The computer equivalent of rhythm

A step by step series of operations

The same thing as an identifier

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a benefit of using functios?

They can give you infinite loops

They keep your code organized.

They prevent repeated code

They make larger programs easier to understand

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With the following code, what would you expect to see in the console in a playground?


func saySomething ( ) {

print ("Functions are awesome")

saySomething( )

}

saySomething ( )

Functions are awesome, once

Functions are awesome, twice

Functions are awesome, repeated over and over and over

Nothing

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With the following code, what would you expect to see in a console playground?


func saySomething ( ) {

print ("Functions are awesome")

}

saySomething ( )

saySomething

Functions are awesome

Nothing

Something

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With the following code, what would you expect to see in the console in a playground?


func saySomething ( ) {

print ("Functions are awesome")

}

Functions are awesome

saySomething

Something

Nothing

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's another word for the lines of code that a function contains?

Body

Clause

Parameters

Return Value

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line is the correct way to declare a function?

let myFunction = func ( ) {

let func = myFunction ( ) {

func myFunction ( ) {

func = myFunction ( ) {

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?