03/07/2020 Problem solving through Programming In C - - Unit 6 - Week 4
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C (course)
Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs06/preview)
Ask a Question (forum) Progress (student/home) Mentor (student/mentor)
Unit 6 - Week 4
Course
outline Assignment 4
How does an The due date for submitting this assignment has passed. Due on 2020-02-26, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) The loop which is executed at least once is 1 point
Week 0
a) while
Week 1 b) do-while
c) for
Week 2 d) none of the above
Week 3 No, the answer is incorrect.
Score: 0
Accepted Answers:
Week 4
b) do-while
Lecture 16: IF- 2) 1 point
ELSE Statement
(Contd.) (unit?
unit=5&lesson=30)
Lecture 17:
Switch
statement (unit?
unit=5&lesson=31)
Lecture 18:
Switch
Statement
(Contd.) and
Introduction to
Loops (unit?
unit=5&lesson=32)
https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=5&assessment=103 1/6
03/07/2020 Problem solving through Programming In C - - Unit 6 - Week 4
Lecture 19:
Implementing
Repetitions
(Loops) (unit?
unit=5&lesson=33)
Lecture 20:
Implementation
of Loops with for
Statement
(Contd.) (unit?
unit=5&lesson=34)
Quiz :
Assignment 4
(assessment?
name=103)
Week-04
Program-01
(/noc20_cs06/progassignment?
name=109)
Week-04
Program-02 a) Sum of the digits of a number
(/noc20_cs06/progassignment? b) Sum of the factorial of individual digits in a number
name=110)
c) Reverse of a number
Week-04 d) The same number is printed
Program-03
No, the answer is incorrect.
(/noc20_cs06/progassignment?
name=111)
Score: 0
Accepted Answers:
Week-04 c) Reverse of a number
Program-04
3)
(/noc20_cs06/progassignment? 1 point
name=112)
Week-04
Program-05
(/noc20_cs06/progassignment?
name=113)
Feedback For
Week 4 (unit?
unit=5&lesson=115)
Week 5
Week 6
Week 7
a) True
Week 8 b) False
c) Both ‘True’ and ‘False’ will be printed
Week 9
d) Compilation error
Week 10 No, the answer is incorrect.
Score: 0
Accepted Answers:
Week 11
c) Both ‘True’ and ‘False’ will be printed
Week 12
https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=5&assessment=103 2/6
03/07/2020 Problem solving through Programming In C - - Unit 6 - Week 4
4) 1 point
DOWNLOAD
VIDEOS
Assignment
Solution
a) NPTEL
b) PROGRAMMING
c) No output
d) Compilation error as A and a are not declared as character variable
No, the answer is incorrect.
Score: 0
Accepted Answers:
a) NPTEL
5) 1 point
a) 1500.000000
b) 0.000000
c) 1400.000000
d) Compilation error
No, the answer is incorrect.
Score: 0
Accepted Answers:
b) 0.000000
6) 1 point
https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=5&assessment=103 3/6
03/07/2020 Problem solving through Programming In C - - Unit 6 - Week 4
a) condition1 will be evaluated first, condition2 will be evaluated
second
b) condition2 will be evaluated first, condition1 will be evaluated
second
c) condition1 will be evaluated first, condition2 will be evaluated only if
condition1 is TRUE
d) condition2 will be evaluated first, condition1 will be evaluated only if
condition2 is TRUE
No, the answer is incorrect.
Score: 0
Accepted Answers:
c) condition1 will be evaluated first, condition2 will be evaluated only if
condition1 is TRUE
7) 1 point
a) a=101
b) a=5
c) a=65
d) Compilation error: Not a valid number
No, the answer is incorrect.
Score: 0
Accepted Answers:
c) a=65
8) 1 point
a) 10 6
b) 10 8
https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=5&assessment=103 4/6
03/07/2020 Problem solving through Programming In C - - Unit 6 - Week 4
c) 5 7
d) 5 8
No, the answer is incorrect.
Score: 0
Accepted Answers:
c) 5 7
9) while(1) is used in a program to create 1 point
a) False statement
b) Infinite loop
c) Terminating the loop
d) Never executed loop
No, the answer is incorrect.
Score: 0
Accepted Answers:
b) Infinite loop
10) 1 point
a) 0
12
b) 1
11
c) 0
00
d) 0
11
No, the answer is incorrect.
Score: 0
Accepted Answers:
d) 0
11
https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=5&assessment=103 5/6
03/07/2020 Problem solving through Programming In C - - Unit 6 - Week 4
https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=5&assessment=103 6/6