Tutorial 5 Quiz

Tutorial 5 Quiz

University

14 Qs

quiz-placeholder

Similar activities

PYTHON PROGRAMMING

PYTHON PROGRAMMING

University

10 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

Python Lists and Tuples

Python Lists and Tuples

University

11 Qs

Scope of Variables in Python

Scope of Variables in Python

1st Grade - Professional Development

15 Qs

Arrays in C (II yr 02.07.2020)

Arrays in C (II yr 02.07.2020)

University

10 Qs

Knowledge Knockout[Quiz Round](2nd-4th years)

Knowledge Knockout[Quiz Round](2nd-4th years)

University

15 Qs

C Programming Quiz-6

C Programming Quiz-6

University

10 Qs

Array in C

Array in C

University

10 Qs

Tutorial 5 Quiz

Tutorial 5 Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Wongsathorn Tonkultorn

Used 1+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the output for print(foo(10))?

'A'

'B'

'C'

Error!

None of the answers are correct

Answer explanation

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the output of print(foo(2))?

"AAA"

"ACA"

"AAB"

Error!

None of the answers is correct

Answer explanation

Media Image

The correct output is "AA"

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the output of print(foo())?

"CS1010E"

"CS10"

"CS1"

Error!

None of the answers is correct

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is printed for foo_print(x)?

"HEY"

"HI"

"HELLO"

Nothing

Error!

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

What is printed for foo_print(x)?

"HI"

"HELLO"

Nothing

Error!

Answer explanation

Media Image

print(y) uses the global value y = "HELLO" to print

6.

MULTIPLE CHOICE QUESTION

45 sec • 3 pts

Media Image

What is the output of hugs(5)?

"oxo"

"oxoxoxo"

"oxoxo"

"oxoxoxoxo"

Error!

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

What is the output of print(memorize("ABCD")?

"AABACADA"

"AABABCABCD"

"ABACBADCBA"

"ABACAD"

Huh?

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?