You are on page 1of 8

Problem Solving through Programming in C - - ... https://onlinecourses.nptel.ac.in/noc18_cs31/uni...

reviewer3@nptel.iitm.ac.in ▼

Courses » Problem Solving through Programming in C

Announcements Course Ask a Question Progress Mentor FAQ

Unit 6 - Week
5

Course
outline
Assignment 5
The due date for submitting this assignment has passed.
How to access As per our records you have not submitted this Due on 2018-09-13, 23:59 IST.
the portal assignment.

Week 1 Assignment 5

1)“continue” statement is used to 1 point


Week 2

continue to the next line of code


Week 3
debug a program
Week 4
stop the current iteration and begin the next iteration from the beginning of the loop
Week 5 None of the above
Lecture 21: For No, the answer is incorrect.
Statement Score: 0
(Contd.)
Accepted Answers:
Lecture 22: stop the current iteration and begin the next iteration from the beginning of the loop
Example of
If-Else 2) "break" is used to 1 point

Lecture 23 :
Example of exit from a program
Loops
exit from the current loop
Lecture 24 :
Example of
Both of the above
Loops (Contd.) None of the above
Lecture 25 :
No, the answer is incorrect.
Example of
Loops (Contd.), Score: 0
Use of FOR Accepted Answers:
Loops exit from the current loop
Week-5
3) 1 point
Program-1

Week-5
Problem-2

Week-5 © 2014 NPTEL - Privacy & Terms - Honor Code - FAQs -


Problem-3
A project of In association with
Week-5
Program-4

Week-5
Funded by
Program-5

1 of 8 Wednesday 14 November 2018 10:44 AM


Problem Solving through Programming in C - - ... https://onlinecourses.nptel.ac.in/noc18_cs31/uni...

Quiz : Powered by
Assignment 5

Feedback for
Week 5

Week 6

Week 7

Week 8

Week 9

Week 10

Week 11 ‘while vs do-while’ once


Week 12 ‘Out of loop’ infinite times
Both ‘while vs do-while’ and ‘Out of loop’ once
Download
Videos ‘while vs do-while’ infinite times
No, the answer is incorrect.
Assignment
Solution Score: 0
Accepted Answers:
‘while vs do-while’ infinite times
4) 1 point

4, 5
4, 4
5, 5
0, 0
No, the answer is incorrect.
Score: 0
Accepted Answers:
5, 5
5) 1 point

2 of 8 Wednesday 14 November 2018 10:44 AM


Problem Solving through Programming in C - - ... https://onlinecourses.nptel.ac.in/noc18_cs31/uni...

n multiplied n times
factorial of n
display factors of n
display Fibonacci series upto n
No, the answer is incorrect.
Score: 0
Accepted Answers:
factorial of n
6) 1 point

It will print “Programming” 5 times


It will print “Hello” infinite times
It will print “Programming” infinite times
It will print “ProgrammingHello” infinite times
No, the answer is incorrect.
Score: 0
Accepted Answers:
It will print “Programming” infinite times
7) 1 point

3 of 8 Wednesday 14 November 2018 10:44 AM


Problem Solving through Programming in C - - ... https://onlinecourses.nptel.ac.in/noc18_cs31/uni...

10

No output (infinite loop)


Compilation error
No, the answer is incorrect.
Score: 0
Accepted Answers:
No output (infinite loop)
8) 1 point

4 times
20 times
5 times
nothing is printed
No, the answer is incorrect.
Score: 0
Accepted Answers:
5 times
9) 1 point

4 of 8 Wednesday 14 November 2018 10:44 AM


Problem Solving through Programming in C - - ... https://onlinecourses.nptel.ac.in/noc18_cs31/uni...

True
False
Both ‘True’ and ‘False’ will be printed
Compilation error
No, the answer is incorrect.
Score: 0
Accepted Answers:
Both ‘True’ and ‘False’ will be printed
10) 1 point

1 time
10 times
11 times
Compilation error
No, the answer is incorrect.
Score: 0
Accepted Answers:
1 time
11) 1 point

5 of 8 Wednesday 14 November 2018 10:44 AM


Problem Solving through Programming in C - - ... https://onlinecourses.nptel.ac.in/noc18_cs31/uni...

10

Infinite
No, the answer is incorrect.
Score: 0
Accepted Answers:
6

12) 1 point

5, 4
7, 4
5, 6
6, 4
No, the answer is incorrect.
Score: 0
Accepted Answers:
7, 4
13) 1 point

6 of 8 Wednesday 14 November 2018 10:44 AM


Problem Solving through Programming in C - - ... https://onlinecourses.nptel.ac.in/noc18_cs31/uni...

for (i = n; i>-1; i--)


for (i = n; i >= 0; i--)
for (i = n-1; i>0; i--)
for (i = n-1; i>-1; i--)
No, the answer is incorrect.
Score: 0
Accepted Answers:
for (i = n-1; i>-1; i--)
14) 1 point

After loop x=1


1After loop x=2
No output, it is an infinite loop
1 2 3 4 5 6 7 8 9 10
No, the answer is incorrect.
Score: 0
Accepted Answers:
No output, it is an infinite loop
15) 1 point

Compilation error

7 of 8 Wednesday 14 November 2018 10:44 AM


Problem Solving through Programming in C - - ... https://onlinecourses.nptel.ac.in/noc18_cs31/uni...

No, the answer is incorrect.


Score: 0
Accepted Answers:
3

Previous Page End

8 of 8 Wednesday 14 November 2018 10:44 AM

You might also like