GATE CSE · 2023 · CS
Question 54: Algorithms
Give it a try, then reveal the answer to check your work.
Question 54
CSMSQ2 marksNeeds review
Consider functions Function_1 and Function_2 expressed in pseudocode as follows:
Function_1
while
do
for
to
do
;
end for
;
end whileFunction_2
for
to
do
;
end forLet
and
denote the number of times the statement “
” is executed in Function_1 and Function_2, respectively. Which of the following statements is/are TRUE?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerEXPLORE & PRACTISE
Paper and topic context
See where this question comes from and choose what to practise next.
2023CS
GATE CSE 2023 · Paper 1
Computer Science and Information Technology · Original paper archive
- Section
- Computer Science and Information Technology
- Question type
- Multiple select (MSQ)
- Marks
- 2 marks
Practise related topics
Explore more previous year questions using this question’s imported topic tags.
computer science
GATE CSE previous year questions
information technology
GATE CSE previous year questions
computing
GATE CSE previous year questions
algorithms
GATE CSE previous year questions
Comments
Ask a question, share your approach, or help someone understand.
Log in to view the discussion
You’re not logged in. Log in or create an account to see discussions and add comments.