Toggle navigation
Test.Brainkart.com
Home
GATE Exam
TN School
College Entrance Exam
IIT JEE
NEET
AIIMS
CAT
CLAT
TANCET
10th & 12th
11th Std
12th Std
10th Std
Job Entrance Exam
BANK
UGC NET
TNPSC
Chapter 8: Iteration and recursion
- Online Test
Chapter 8: Iteration and recursion
TEST : 1
# Chapter 8: Iteration and recursion
# TN 11th Computer Science
Prepare / Learn
Q1.
In iteration, the loop body is repeatedly executed as long as the loop condition is
A.
true
B.
false
C.
empty
D.
none of above
View Solution
Add Work Space
Answer :
Option A
Explaination / Solution:
No Explaination.
# Chapter 8: Iteration and recursion
# TN 11th Computer Science
Prepare / Learn
Q2.
Recursion must have
A.
negative base case
B.
zero base case
C.
at least one base case
D.
none of above
View Solution
Add Work Space
Answer :
Option C
Explaination / Solution:
No Explaination.
# Chapter 8: Iteration and recursion
# TN 11th Computer Science
Prepare / Learn
Q3.
An invariant for the loop body is known as a
A.
state condition
B.
loop marker
C.
zero invariant
D.
loop invariant
View Solution
Add Work Space
Answer :
Option D
Explaination / Solution:
No Explaination.
# Chapter 8: Iteration and recursion
# TN 11th Computer Science
Prepare / Learn
Q4.
A loop invariant is true at
A.
at the start of the loop (just before the loop)
B.
at the start of each iteration (before loop body)
C.
at the end of each iteration (after loop body)
D.
all the above
View Solution
Add Work Space
Answer :
Option D
Explaination / Solution:
No Explaination.
# Chapter 8: Iteration and recursion
# TN 11th Computer Science
Prepare / Learn
Q5.
A loop invariant need not be true
A.
at the start of the loop.
B.
at the start of each iteration
C.
at the end of each iteration
D.
at the start of the algorithm
View Solution
Add Work Space
Answer :
Option D
Explaination / Solution:
No Explaination.
# Chapter 8: Iteration and recursion
# TN 11th Computer Science
Prepare / Learn
Q6.
Each time the loop body is executed, the variables
A.
have no changes
B.
updated
C.
stands constantly
D.
all the above
View Solution
Add Work Space
Answer :
Option B
Explaination / Solution:
No Explaination.
# Chapter 8: Iteration and recursion
# TN 11th Computer Science
Prepare / Learn
Q7.
A property of the variables which remains unchanged by the execution of the loop body. This unchanging property is called
A.
loop invariant
B.
sate level
C.
public variable
D.
default sate
View Solution
Add Work Space
Answer :
Option A
Explaination / Solution:
No Explaination.
# Chapter 8: Iteration and recursion
# TN 11th Computer Science
Prepare / Learn
Q8.
A loop invariant need not be true
A.
at the start of the loop.
B.
at the start of each iteration
C.
at the end of each iteration
D.
at the start of the algorithm
View Solution
Add Work Space
Answer :
Option D
Explaination / Solution:
No Explaination.
# Chapter 8: Iteration and recursion
# TN 11th Computer Science
Prepare / Learn
Q9.
We wish to cover a chessboard with
dominoes, the number of black squares and the number of white squares covered by dominoes, respectively, placing a domino can be modeled by
A.
b := b + 2
B.
w := w + 2
C.
b, w := b+1, w+1
D.
b := w
View Solution
Add Work Space
Answer :
Option D
Explaination / Solution:
No Explaination.
# Chapter 8: Iteration and recursion
# TN 11th Computer Science
Prepare / Learn
Q10.
If m x a + n x b is an invariant for the assignment a, b : = a + 8, b + 7, the values of m and n are
A.
m = 8, n = 7
B.
m = 7, n = -8
C.
m = 7, n = 8
D.
m = 8, n = -7
View Solution
Add Work Space
Answer :
Option B
Explaination / Solution:
No Explaination.
Submit My Answer
Total Question/Mark :
Scored Mark :
Mark for Correct Answer : 1 Mark for Wrong Answer : -0.5 Mark for Left Answer : 0
Save and Share My Score
REDO THIS TEST AGAIN : ( TEST 1 )
START NEXT : ( TEST 2 )
Chapter 8: Iteration and recursion
| Online Objective Test |
Start Test
Under Graduate Entrance Exams : IIT JEE IEEE Entrance Exam (Mathematics)
| Online Objective Test
Start Test
UPSC Civil services Entrance exams : General Studies test (General Science)
| Online Objective Test
Start Test
UPSC Civil services Entrance exams : Civil Services Aptitude Test (CSAT) (Mathematics)
| Online Objective Test
Start Test
UGC NET Entrance exams : Science (Computer Science and Applications)
| Online Objective Test
Start Test
TANCET Anna University : EEE Electrical and Electronics Engineering (Mathematics)
| Online Objective Test
Start Test
TANCET Anna University : ECE Electronics and Communication Engineering (Mathematics)
| Online Objective Test
Start Test
TANCET Anna University : CSE, IT Computer Science Engineering and Information Technology (Mathematics)
| Online Objective Test
Start Test
TANCET Anna University : Civil Engineering (Mathematics)
| Online Objective Test
Start Test
TANCET Anna University : Mechanical Engineering (Mathematics)
| Online Objective Test
Start Test
TN State Board : TN 11th Standard (Computer Science)
| Online Objective Test
Start Test
Prepare Before Start Test
| Learn
Engineering
| prepare/Learn
Medical
| prepare/Learn
TN School (10th & 12th )
| prepare/Learn
NEET, JEE
| prepare/Learn
TNPSC Exam
| prepare/Learn
UPSC Civil services Entrance exams
| Online Test
General Studies test
| Start Online Test
Civil Services Aptitude Test (CSAT)
| Start Online Test
Interview and Personality Test
| Start Online Test
GATE Exam
| Online Test
EE Electrical Engineering
| Start Online Test
EC Electronics and Communication Engineering
| Start Online Test
CS Computer Science and Information Technology
| Start Online Test
CE Civil Engineering
| Start Online Test
ME Mechanical Engineering
| Start Online Test
Under Graduate Entrance Exams
| Online Test
IIT JEE IEEE Entrance Exam
| Start Online Test
NEET Entrance Exam
| Start Online Test
AIIMS Entrance Exams
| Start Online Test
Problem Solving and Reasoning
| Online Test
Verbal and Reading Comprehension
| Start Online Test
Data Interpretation and Logical Reasoning
| Start Online Test
Mathematics or Quantitative Aptitude
| Start Online Test
CAT Entrance Exams
| Online Test
Mathematics or Quantitative Aptitude
| Start Online Test
Data Interpretation and Logical Reasoning
| Start Online Test
Verbal and Reading Comprehension
| Start Online Test
CLAT LAW Entrance exams
| Online Test
English including comprehension
| Start Online Test
General Knowledge and Current Affairs
| Start Online Test
Elementary Mathematics
| Start Online Test
Logical and Legal Reasoning Aptitude
| Start Online Test
Banking Entrance exams
| Online Test
Bank PO
| Start Online Test
Bank Clerks
| Start Online Test
Specialist Officers (SO)
| Start Online Test
UGC NET Entrance exams
| Online Test
Science
| Start Online Test
Language
| Start Online Test
TANCET Anna University
| Online Test
EEE Electrical and Electronics Engineering
| Start Online Test
ECE Electronics and Communication Engineering
| Start Online Test
CSE, IT Computer Science Engineering and Information Technology
| Start Online Test
Civil Engineering
| Start Online Test
Mechanical Engineering
| Start Online Test
TN State Board
| Online Test
TN 11th Standard
| Start Online Test
TN 12th Standard
| Start Online Test
TN 10th Standard
| Start Online Test