DSA - Q1

DSA - Q1

University

25 Qs

quiz-placeholder

Similar activities

OOP - Pretest

OOP - Pretest

University

20 Qs

Theory CSC301 - Chapter 6 & 7

Theory CSC301 - Chapter 6 & 7

University

20 Qs

special mid exams in ITE6

special mid exams in ITE6

University

20 Qs

Quiz Pemrograman Lanjut 2022/2023

Quiz Pemrograman Lanjut 2022/2023

University

20 Qs

PHP Quiz - 1

PHP Quiz - 1

University

20 Qs

JavaScript Arrays Quiz

JavaScript Arrays Quiz

11th Grade - University

20 Qs

Hashing

Hashing

University

20 Qs

Java - Revisão I

Java - Revisão I

University

20 Qs

DSA - Q1

DSA - Q1

Assessment

Quiz

Computers

University

Medium

Created by

jenelyn luna

Used 35+ times

FREE Resource

25 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

2 mins • 2 pts

If you want the method to return a value, you can use a primitive data type instead of void, and use the ____ keyword inside the method.

(use small letters and space if necessary)

2.

FILL IN THE BLANK QUESTION

2 mins • 2 pts

A data structure which is a programming technique you can use in which a method calls itself to solve a problem.

(use small letters and space if necessary)

3.

FILL IN THE BLANK QUESTION

2 mins • 2 pts

____ is a collection of elements used to store the same type of data.

(use small letters and space if necessary)

4.

FILL IN THE BLANK QUESTION

2 mins • 2 pts

int num[ ] = {11, 2, 99, 4, 33, 14, 18};

How would you access the fourth element in num.

(no spacing in writing the answer)

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

A recursive method is ________

a method that cannot be called more than once

a method that will never iterate infinitely

a method that invokes itself by name within the method

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Index values of an array ranges from ________.

0 to length

1 to length

1 to length

0 to length-1

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

The program may run out of memory in a ___

non-recursive function call

condition when too many variables are declared

recursive function call

none of the above

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?