Recitation 2: Function Headers and Data Types

Recitation 2: Function Headers and Data Types

University

10 Qs

quiz-placeholder

Similar activities

IEEE Coding Competition

IEEE Coding Competition

University

13 Qs

c set 3

c set 3

University

10 Qs

Brainy Bites: Python

Brainy Bites: Python

University

12 Qs

Python Programming Quiz

Python Programming Quiz

University

13 Qs

Java Lesson 4

Java Lesson 4

5th Grade - University

10 Qs

charli

charli

1st Grade - Professional Development

10 Qs

Law of Contract

Law of Contract

University

9 Qs

C++ Programming Language

C++ Programming Language

University

12 Qs

Recitation 2: Function Headers and Data Types

Recitation 2: Function Headers and Data Types

Assessment

Quiz

Other

University

Medium

Created by

Eric Shao

Used 3+ times

FREE Resource

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()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?