Recitation 2: Function Headers and Data Types

Recitation 2: Function Headers and Data Types

University

10 Qs

quiz-placeholder

Similar activities

To do or not to do

To do or not to do

University

10 Qs

Retail Assistant Popular Store

Retail Assistant Popular Store

University

10 Qs

Praktisi Mengajar - Java Test

Praktisi Mengajar - Java Test

University

10 Qs

MICE IN THE PHILIPPINES

MICE IN THE PHILIPPINES

University

11 Qs

Session 3

Session 3

University

13 Qs

Google Cloud Quiz

Google Cloud Quiz

University

15 Qs

VOIDABLE CONRACTS PART 2

VOIDABLE CONRACTS PART 2

University

12 Qs

BASICS OF MECHATRONICS

BASICS OF MECHATRONICS

University

10 Qs

Recitation 2: Function Headers and Data Types

Recitation 2: Function Headers and Data Types

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Eric Shao

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...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is this a valid function header

function = func(a, b)

Yes

No

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is this a valid function header

Function [in1, in2] = func(ou1, out2)

Yes

No

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is this a valid function header

function func()

Yes

No

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is this a valid function header

function [out] = func(in1 in2)

Yes

No

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the second line output?

a = 100

100 = a

true

a = 100

false

Code will error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the code

class('3')

'double'

'char'

'logical'

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function should we use if we want to convert 70 to '70'?

double()

char()

str2num()

num2str()

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?