Recursion 14

Recursion 14

University

5 Qs

quiz-placeholder

Similar activities

common data structure

common data structure

University

10 Qs

AdvancedProgramming_intro

AdvancedProgramming_intro

University

10 Qs

Quiz on Stacks and Data Structures 2

Quiz on Stacks and Data Structures 2

University

10 Qs

Data Structures Quiz-2

Data Structures Quiz-2

University

10 Qs

Data Structure

Data Structure

University

10 Qs

UAS AlStrukDat

UAS AlStrukDat

University

10 Qs

Kuis StrukDat

Kuis StrukDat

University

10 Qs

DSA - 2a

DSA - 2a

University

8 Qs

Recursion 14

Recursion 14

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Recursion in C?

A function that calls itself directly or indirectly

A function that repeats a loop

A method of sorting data

A type of variable storage class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is essential for a recursive function?

Infinite loop

array

Global variable

Base condition

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a disadvantage of recursion?

Uses more memory due to call stack

Requires less code

Uses more memory due to call stack

Enhances readability of complex problems

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Insertion Sort starts sorting from:

The last element

The middle element

The first element

A random element

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Selection Sort works by:

Swapping adjacent elements

Dividing the array into two halves

Merging sorted subarrays

Selecting the smallest element and placing it at the beginning