Nptel C 2021 July To December
Nptel C 2021 July To December
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
Uploaded by youtube.com/c/getpythoncode
[email protected]
Contact me at [email protected]
Telegram id - @Ak4Gp
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C
(course)
Course
outline Week 0 : Assignment 0
The due date for submitting this assignment has passed.
How does an Due on 2021-07-26, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work? The marks of week 0 assignment will not be consider for evaluation
()
1) Which among the following is the most complete definition of Programming? 1 point
Week 0 : ()
Programming is a process to solve any logical problems.
Quiz: Week 0 : Programming is a process to solve any numerical problem.
Assignment 0
Programming is a process to solve any real life problems.
(assessment?
name=118) Programming is the process of taking an algorithm and encoding it into a notation (using a
programming language), so that it can be executed by a computer.
Week 1 ()
No, the answer is incorrect.
Score: 0
Week 2 () Accepted Answers:
Programming is the process of taking an algorithm and encoding it into a notation (using a
Week 3 () programming language), so that it can be executed by a computer.
2) Which of the following controls the way in which the computer system works and give 1 point
Week 4 ()
means by which users can interact with the computer?
N h i i
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=16&assessment=118 1/4
8/9/22, 10:54 AM Problem solving through Programming In C - - Unit 2 - Week 0 :
1 byte = 10 bits
1 byte = 16 bits
1 byte = 8 bits
1 byte = 2 bits
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=16&assessment=118 2/4
8/9/22, 10:54 AM Problem solving through Programming In C - - Unit 2 - Week 0 :
C
Unix
Java
Python
No, the answer is incorrect.
Score: 0
Accepted Answers:
Unix
8) The binary AND operation of the numbers “100101” and “110011” results (in decimal) 1 point
100001
2
33
63
Printer
Mouse
Keyboard
Joystick
10) The process through which an user can find error(s) in a program is called 1 point
Compiling
Searching
Debugging
Processing
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=16&assessment=118 3/4
8/9/22, 10:54 AM Problem solving through Programming In C - - Unit 2 - Week 0 :
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=16&assessment=118 4/4
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 3 - Week 1
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 1: Assignment 1
The due date for submitting this assignment has passed.
How does an Due on 2021-08-18, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) The intermediate medium for the communication between human and computer is 1 point
called
Week 0 : ()
a) Programmer
Week 1 () b) Interpreter
c) Compiler
Lecture 1 :
d) Both (b) and (c)
Introduction
(unit? No, the answer is incorrect.
unit=17&lesson=18) Score: 0
Accepted Answers:
Lecture 2: Idea d) Both (b) and (c)
of Algorithms
(unit? 2) Which one of the following statement is the most appropriate? 1 point
unit=17&lesson=19)
a) Flowchart is diagrammatic representation of the algorithm. Pseudo code is just another
Lecture 3: Flow
name of algorithm.
Chart and
Pseudocode b) Flowchart is basically a diagrammatic representation of the algorithm. Whereas in pseudo
(unit? code normal English language is translated into the programming languages to be worked on.
unit=17&lesson=20) c) Pseudo code is basically a diagrammatic representation of the algorithm. Whereas in
flowchart normal English language is translated into the programming languages to be worked
Some
corrections in on.
Lecture 3 (unit?
unit=17&lesson=120)
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=17&assessment=119 1/6
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 3 - Week 1
5) Computer memory which is used to store programs and data currently being processed 1 point
Week 8 () by CPU is
Week 9 () a) ROM
b) RAM
Week 10 () c) Cache memory
d) PROM
Week 11 ()
No, the answer is incorrect.
Score: 0
Week 12 ()
Accepted Answers:
b) RAM
DOWNLOAD
VIDEOS () 6) X is an integer (X=1234). The print value of Y of the algorithm below is (note: ‘%’ is the 1 point
modulo operator, which calculates the reminder and ‘/’ gives the quotient of a division operation)
Text
Transcripts ()
Books ()
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=17&assessment=119 2/6
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 3 - Week 1
Programming
Exam 2022
(First
Session)
(10am - 11am)
()
Programming
Exam 2022
(Second
Session)
(8pm - 9pm) ()
a) 10
b) 11223344
c) 4321
d) 0
7) The flow chart calculates the HCF of two numbers a and b (where a is greater than or 1 point
equal to b). Which of the following conditions need to be put inside the blanks 1 and 2 to calculate
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=17&assessment=119 3/6
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 3 - Week 1
the HCF? (Hint: Use Euclidian Algorithm for finding HCF of two numbers)
a) 1. r!=0
2. a=r and b=q
b) 1. q=0
2. a=b and b=r
c) 1. r=0
2. a=q and b=r
d) 1. r=0
2. a=b and b=r
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=17&assessment=119 4/6
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 3 - Week 1
8) The input N from the user is 6. The output of the following algorithm is 1 point
a) 120
b) 720
c) 5040
d) 1
No, the answer is incorrect.
Score: 0
Accepted Answers:
b) 720
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=17&assessment=119 5/6
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 3 - Week 1
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=17&assessment=119 6/6
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 4 - Week 2
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 2: Assignment 2
The due date for submitting this assignment has passed.
How does an Due on 2021-08-18, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) Which of the following statements is correct? 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=24&assessment=121 1/5
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 4 - Week 2
Week 10 () 6) If an integer needs two bytes of storage, then the maximum value of a signed integer in 1 point
C would be
Week 11 ()
Week 12 ()
DOWNLOAD
VIDEOS ()
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=24&assessment=121 2/5
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 4 - Week 2
Books ()
7) 1 point
Programming
Exam 2022
(First
Session)
(10am - 11am)
()
Programming
Exam 2022
(Second
Session)
(8pm - 9pm) ()
a) 8
b) 4
c) 10
d) 16
8) 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=24&assessment=121 3/5
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 4 - Week 2
Accepted Answers:
d) The output is 17.00
9) 1 point
a) 6
b) 3
c) 4
d) Compilation error
10) 1 point
N h i i
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=24&assessment=121 4/5
8/9/22, 10:55 AM Problem solving through Programming In C - - Unit 4 - Week 2
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=24&assessment=121 5/5
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 5 - Week 3
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 3: Assignment 3
The due date for submitting this assignment has passed.
How does an Due on 2021-08-25, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) Which of the following statement is correct? 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=31&assessment=122 1/7
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 5 - Week 3
Lecture 13 : 2) 1 point
Logical
Operators and
Change in
Control Flow
(unit?
unit=31&lesson=34)
Lecture 14 :
Use of Logical
Operators in
Branching
(unit?
unit=31&lesson=35)
Lecture 15 :
Branching : IF - a) 67
ELSE b) -36
Statement
c) 66
(unit?
unit=31&lesson=36) d) -37
Week 3: 3) 1 point
Programming
Assignment 1
(/noc21_cs54/progassignment?
name=123)
Week 3:
Programming
Assignment 2
(/noc21_cs54/progassignment?
name=124)
Week 3:
Programming
Assignment 3
(/noc21_cs54/progassignment?
a) 0
name=127)
b) 3
Week 3:
c) 4
Programming
Assignment 4 d) Compilation error
(/noc21_cs54/progassignment?
No, the answer is incorrect.
name=125) Score: 0
Accepted Answers:
Feedback For
c) 4
Week 3 (unit?
unit=31&lesson=37)
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=31&assessment=122 2/7
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 5 - Week 3
4) 1 point
Week 4 ()
Week 5 ()
Week 6 ()
Week 7 ()
Week 8 ()
Week 9 ()
Week 10 ()
Week 11 ()
Week 12 ()
DOWNLOAD
VIDEOS ()
Text a) IITKGP
Transcripts () b) IITD and IITM
c) IITKGP and IITM
Books ()
d) IITM
Programming
Exam 2022
(Second
Session)
(8pm - 9pm) ()
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=31&assessment=122 3/7
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 5 - Week 3
a) Condition is true
b) Condition is false
c) Error
d) No output possible
6) 1 point
a) Programming on C 0
b) NPTEL 0
c) NPTEL 3
d) Compilation error
7) 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=31&assessment=122 4/7
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 5 - Week 3
a) true
b) false
c) Compiler dependent
d) Compiler error
a) 8=x=y=z
b) x=8=y=z
c) x=y=z=8
d) None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
c) x=y=z=8
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=31&assessment=122 5/7
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 5 - Week 3
9) 1 point
a) TRUE
b) FALSE
c) Syntax Error
d) Compilation Error
10) 1 point
a) 10
b) 11
c) 20
d) Compiler error
N h i i
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=31&assessment=122 6/7
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 5 - Week 3
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=31&assessment=122 7/7
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 6 - Week 4
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 4: Assignment 4
The due date for submitting this assignment has passed.
How does an Due on 2021-09-01, 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
a) while
Week 0 : ()
b) do-while
Week 1 () c) for
d) None of the above
Week 2 ()
No, the answer is incorrect.
Score: 0
Week 3 () Accepted Answers:
b) do-while
Week 4 ()
2) In the C programming language negative numbers when used in if-else conditional 1 point
Lecture 16: IF- checking, are treated as
ELSE
Statement a) TRUE
(Contd.) (unit? b) FALSE
unit=38&lesson=39)
c) Depends on the implementation
Lecture 17: d) None of the above
Switch
statement No, the answer is incorrect.
Score: 0
(unit?
unit=38&lesson=40)
Accepted Answers:
a) TRUE
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=38&assessment=128 1/6
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 6 - Week 4
Lecture 19:
Implementing
Repetitions
(Loops) (unit?
unit=38&lesson=42)
Lecture 20:
Implementation
of Loops with
for Statement
(Contd.) (unit?
unit=38&lesson=43)
Quiz: Week 4:
Assignment 4
a) Sum of the digits of a number
(assessment?
name=128) b) Sum of the factorial of individual digits in a number
c) The reverse of a number
Week 4:
Programming d) The same number is printed
Assignment 1 No, the answer is incorrect.
(/noc21_cs54/progassignment?
Score: 0
name=129) Accepted Answers:
a) Sum of the digits of a number
Week 4:
Programming 4) While(1) is used in a program to create 1 point
Assignment 2
(/noc21_cs54/progassignment? a) False statement
name=130)
b) Infinite loop
Week 4: c) Terminating the loop
Programming
Assignment 3
d) Never executed loop
(/noc21_cs54/progassignment?
No, the answer is incorrect.
name=131) Score: 0
Accepted Answers:
Week 4:
b) Infinite loop
Programming
Assignment 4
(/noc21_cs54/progassignment?
name=133)
Feedback For
Week 4 (unit?
unit=38&lesson=44)
Week 5 ()
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=38&assessment=128 2/6
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 6 - Week 4
Week 6 () 5) 1 point
Week 7 ()
Week 8 ()
Week 9 ()
Week 10 ()
Week 11 ()
Week 12 ()
DOWNLOAD
a) True
VIDEOS ()
b) False
Text c) Both ‘True’ and ‘False’
Transcripts () d) Compilation error
Programming
Exam 2022
(Second
Session)
(8pm - 9pm) ()
a) Swayam
b) C 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) Swayam
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=38&assessment=128 3/6
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 6 - Week 4
7) 1 point
8) 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=38&assessment=128 4/6
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 6 - Week 4
9) 1 point
a) 10 6
b) 10 8
c) 5 7
d) 5 8
10) 1 point
a) 0
1 2
b) 1
1 1
c) 0
00
d) 0
11
N h i i
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=38&assessment=128 5/6
8/9/22, 10:56 AM Problem solving through Programming In C - - Unit 6 - Week 4
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=38&assessment=128 6/6
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 7 - Week 5
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 5: Assignment 5
The due date for submitting this assignment has passed.
How does an Due on 2021-09-01, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) In C language three way transfer of control is possible using 1 point
a) Ternary operator
Week 0 : ()
b) Unary operator
Week 1 () c) Logical operator
d) None
Week 2 ()
No, the answer is incorrect.
Score: 0
Week 3 () Accepted Answers:
a) Ternary operator
Week 4 ()
2) In C programming “continue” statement is used to 1 point
Week 5 ()
a) continue to the next line of code
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=45&assessment=138 1/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 7 - Week 5
Lecture 23 : 3) 1 point
Example of
Loops (unit?
unit=45&lesson=48)
Lecture 24 :
Example of
Loops (Contd.)
(unit?
unit=45&lesson=49)
Lecture 25 :
Example of
Loops (Contd.),
Use of FOR
Loops (unit?
unit=45&lesson=50)
Quiz: Week 5:
Assignment 5
a) 5
(assessment?
name=138) b) 10
Week 5:
c) No output
Programming d) Compilation error
Assignment 1
No, the answer is incorrect.
(/noc21_cs54/progassignment?
Score: 0
name=139)
Accepted Answers:
Week 5: c) No output
Programming
4) 1 point
Assignment 2
(/noc21_cs54/progassignment?
name=140)
Week 5:
Programming
Assignment 3
(/noc21_cs54/progassignment?
name=141)
Week 5:
Programming
Assignment 4
(/noc21_cs54/progassignment?
name=142)
Feedback For
Week 5 (unit?
unit=45&lesson=51)
Week 6 ()
a) 1 time
Week 7 () b) 10 times
c) 11 times
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=45&assessment=138 2/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 7 - Week 5
Week 12 ()
DOWNLOAD
VIDEOS ()
Text
Transcripts ()
Books ()
Programming
Exam 2022
(First
Session)
(10am - 11am)
() a) 10
b) 11
Programming
c) 12
Exam 2022
(Second d) 13
Session) No, the answer is incorrect.
(8pm - 9pm) () Score: 0
Accepted Answers:
d) 13
6) 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=45&assessment=138 3/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 7 - Week 5
a) 10
b) 5
c) 6
d) Infinite
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=45&assessment=138 4/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 7 - Week 5
7) 1 point
8) 1 point
a) Error
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=45&assessment=138 5/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 7 - Week 5
9) 1 point
10) 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=45&assessment=138 6/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 7 - Week 5
a) n multiplied n times
b) factorial of n
c) display factors of n
d) display Fibonacci series upto n
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=45&assessment=138 7/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 8 - Week 6
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 6: Assignment 6
The due date for submitting this assignment has passed.
How does an Due on 2021-09-08, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) What is the right way to initialize an array in C? 1 point
Week 6 ()
a) 1028
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=52&assessment=143 1/6
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 8 - Week 6
(unit? a) 1028
unit=52&lesson=54)
3) 1 point
Lecture 28:
Arrays (Contd.)
(unit?
unit=52&lesson=55)
Lecture 29:
Program using
Arrays (unit?
unit=52&lesson=56)
Lecture 30:
Array Problem
(unit?
unit=52&lesson=57)
Quiz: Week 6:
Assignment 6
(assessment?
name=143)
Week 6:
Programming
Assignment 1
(/noc21_cs54/progassignment?
name=144)
a) 1
Week 6:
Programming b) 2
Assignment 2 c) 3
(/noc21_cs54/progassignment?
d) 4
name=146)
No, the answer is incorrect.
Week 6: Score: 0
Programming Accepted Answers:
Assignment 3 a) 1
(/noc21_cs54/progassignment?
name=148) 4) Which of the statements is correct? 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=52&assessment=143 2/6
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 8 - Week 6
DOWNLOAD
VIDEOS ()
Text
Transcripts ()
Books ()
Programming
Exam 2022
(First
Session)
(10am - 11am)
()
Programming
a) 5, 4
Exam 2022
(Second b) 5, 5
Session) c) 4, 4
(8pm - 9pm) ()
d) 3, 4
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=52&assessment=143 3/6
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 8 - Week 6
7) 1 point
a) Contiguous
b) Random
c) Both contagious and random
d) None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
a) Contiguous
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=52&assessment=143 4/6
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 8 - Week 6
9)
Hint
1 point
10)
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=52&assessment=143 5/6
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 8 - Week 6
Hint
1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=52&assessment=143 6/6
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 9 - Week 7
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 7: Assignment 7
The due date for submitting this assignment has passed.
How does an Due on 2021-09-15, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) In C, the placement of elements of a two dimensional array is 1 point
a) Row wise
Week 0 : ()
b) Column wise
Week 1 () c) Diagonal wise
d) Bottom to top wise
Week 2 ()
No, the answer is incorrect.
Score: 0
Week 3 () Accepted Answers:
a) Row wise
Week 4 ()
2) Array passed as an argument to a function is interpreted as 1 point
Week 5 ()
a) Address of the array
b) Value of the first element of the array
Week 6 ()
c) Address of the first element of the array
Week 7 () d) Number of element of the array
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=59&assessment=150 1/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 9 - Week 7
Lecture 32 : a) Matrix-Multiplication
Character Array
b) Minimum Spanning Tree
and Strings
(unit? c) Finding connectivity between nodes
unit=59&lesson=61) d) All of the mentioned
Lecture 35 :
Introducing
Functions
(unit?
unit=59&lesson=64)
Quiz: Week 7:
Assignment 7
(assessment?
name=150)
Week 7:
Programming
Assignment 1
a) n1 = 18, n2 = 17
(/noc21_cs54/progassignment?
name=153) b) n1 = 18, n2 = 18
c) n1 = 17, n1 = 17
Week 7:
Programming d) n1 = 17, n2 = 18
Assignment 2
No, the answer is incorrect.
(/noc21_cs54/progassignment?
Score: 0
name=151)
Accepted Answers:
Week 7: a) n1 = 18, n2 = 17
Programming
Assignment 3
(/noc21_cs54/progassignment?
name=152)
Week 7:
Programming
Assignment 4
(/noc21_cs54/progassignment?
name=154)
Feedback For
Week 7 (unit?
unit=59&lesson=65)
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=59&assessment=150 2/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 9 - Week 7
5) 1 point
Week 8 ()
Week 9 ()
Week 10 ()
Week 11 ()
Week 12 ()
DOWNLOAD
VIDEOS ()
Text
Transcripts () a) Compile time error
b) 4
Books ()
c) 1
Programming d) 2
Exam 2022 No, the answer is incorrect.
(First Score: 0
Session) Accepted Answers:
(10am - 11am) a) Compile time error
()
Programming
Exam 2022
(Second
Session)
(8pm - 9pm) ()
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=59&assessment=150 3/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 9 - Week 7
6) 1 point
a) assignment
b) tnemngissa
c) nothing will be printed
d) tttttttttt
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=59&assessment=150 4/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 9 - Week 7
7)
Hint
1 point
8) 1 point
a) hello
b) world
c) world hello
d) hello world
N h i i
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=59&assessment=150 5/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 9 - Week 7
9) 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=59&assessment=150 6/7
8/9/22, 10:57 AM Problem solving through Programming In C - - Unit 9 - Week 7
10) 1 point
a) Programming
b) PROGRAMMING LANGUAGE
c) PROGRAMMING
d) Syntax error
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=59&assessment=150 7/7
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 10 - Week 8
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 8: Assignment 8
The due date for submitting this assignment has passed.
How does an Due on 2021-09-22, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) What is the default return type if it is not specified in the function definition? 1 point
a) void
Week 0 : ()
b) integer
Week 1 () c) double
d) float
Week 2 ()
No, the answer is incorrect.
Score: 0
Week 3 () Accepted Answers:
b) integer
Week 4 ()
Week 5 ()
Week 6 ()
Week 7 ()
Week 8 ()
Lecture 36:
More on
Functions
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=66&assessment=155 1/7
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 10 - Week 8
(unit? 2) 1 point
unit=66&lesson=67)
Lecture 37:
Function
(Contd.) (unit?
unit=66&lesson=68)
Lecture 38:
Scanf and
Printf
Functions;
Function
Prototype (unit?
unit=66&lesson=69)
Lecture 39 :
Parameter
Passing in
a) 70
Function
Revision (unit? b) Garbage value
unit=66&lesson=70) c) Compilation error
Lecture 40: d) None
Parameter
No, the answer is incorrect.
Passing in Score: 0
Function
Accepted Answers:
Revision
c) Compilation error
(Contd.) (unit?
unit=66&lesson=71) 3) 1 point
Quiz: Week 8:
Assignment 8
(assessment?
name=155)
Week 8:
Programming
Assignment 1
(/noc21_cs54/progassignment?
name=156)
Week 8:
Programming a) Infinite times
Assignment 2
b) 32767
(/noc21_cs54/progassignment?
name=157) c) 65535
d) Till stack overflows
Week 8:
Programming No, the answer is incorrect.
Assignment 3 Score: 0
Accepted Answers:
(/noc21_cs54/progassignment?
name=158) d) Till stack overflows
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=66&assessment=155 2/7
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 10 - Week 8
Week 11 ()
Week 12 ()
DOWNLOAD
VIDEOS ()
Text
Transcripts ()
a) x * y where x and y are integers
Programming
Exam 2022
(Second
Session)
(8pm - 9pm) ()
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=66&assessment=155 3/7
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 10 - Week 8
6) 1 point
a) 8 ,4, 0, 2, 14
b) 8, 4, 0, 2, 0
c) 2, 0, 4, 8, 14
d) 2, 0, 4, 8, 0
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=66&assessment=155 4/7
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 10 - Week 8
7) 1 point
a) 25
b) 5
c) 15
d) 10
8) 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=66&assessment=155 5/7
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 10 - Week 8
9) 1 point
a) Maximum of a, b
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=66&assessment=155 6/7
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 10 - Week 8
10) 1 point
(a) For some values of n, the environment will almost certainly exhaust its stack space
before the calculation completes.
(b) An error in the algorithm causes unbounded recursion for all values of n.
(c) A break statement should be inserted after each case. Fall-through is not desirable
here.
(d) The fibonacci() function includes calls to itself. This is not directly supported by
Standard C due to its unreliability.
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=66&assessment=155 7/7
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 11 - Week 9
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 9: Assignment 9
The due date for submitting this assignment has passed.
How does an Due on 2021-09-29, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) What is the worst-case complexity of selection sort? 1 point
a) O(nlogn)
Week 0 : ()
b) O(logn)
Week 1 () c) O(n)
Week 2 () d) O(n2 )
Week 5 ()
Week 6 ()
Week 7 ()
Week 8 ()
Week 9 ()
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=73&assessment=160 1/4
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 11 - Week 9
Lecture 42:
"search" as a
function (unit?
unit=73&lesson=75)
Lecture 43:
Binary Search
(unit?
unit=73&lesson=76)
Lecture 44:
Binary Search
(Contd.) (unit?
unit=73&lesson=77)
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=73&assessment=160 2/4
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 11 - Week 9
a) O(nlogn), O(logn)
Week 10 ()
b) O(logn), O(nlogn)
Week 11 () c) O(n), O(1)
d) O(1), O(n)
Week 12 ()
No, the answer is incorrect.
Score: 0
DOWNLOAD Accepted Answers:
VIDEOS () d) O(1), O(n)
Text 6) Given an array arr = {45, 77, 89, 91, 94, 98, 100} and key = 100; what are the mid 1 point
Transcripts () values (corresponding array elements) generated in the first and second iterations?
a) 91 and 98
Books ()
b) 91 and 100
Programming c) 89 and 94
Exam 2022 d) 94 and 98
(First
No, the answer is incorrect.
Session) Score: 0
(10am - 11am)
Accepted Answers:
() a) 91 and 98
Programming 7) What is the correct order of insertion sort (in ascending order) of the array arr[5]={8 3 5 1 point
Exam 2022 9 4}?
(Second
Session) a) {3 8 5 9 4} --> {3 5 8 9 4} --> {3 4 5 8 9}
(8pm - 9pm) () b) {3 8 5 9 4} --> {3 5 8 9 4} --> {3 5 8 4 9} --> {3 5 4 8 9} --> {3 4 5 8 9}
c) {3 8 5 9 4} --> {3 4 8 5 9} --> {3 4 5 8 9} --> {3 4 5 8 9} --> {3 4 5 8 9}
d) {8 3 5 4 9} --> {8 3 4 5 9} --> {3 4 5 8 9}
8) Consider the array A[]= {5,4,9,1,3} apply the insertion sort to sort the array . Consider 1 point
the cost associated with each sort is 25 rupees, what is the total cost of the insertion sort when
element 1 reaches the first position of the array?
a) 25
b) 50
c) 75
d) 100
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=73&assessment=160 3/4
8/9/22, 10:58 AM Problem solving through Programming In C - - Unit 11 - Week 9
b) 50
9) The average case occurs in the Linear Search Algorithm when 1 point
10) 1 point
a) 5, 4
b) 5, 5
c) 4, 4
d) 3, 4
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=73&assessment=160 4/4
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 12 - Week 10
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 10: Assignment 10
The due date for submitting this assignment has passed.
How does an Due on 2021-10-06, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) In ……………, the search starts at the beginning of the list and checks every element 1 point
in the list.
Week 0 : ()
a) Linear search
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=80&assessment=166 1/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 12 - Week 10
Week 10:
Programming
Assignment 2
(/noc21_cs54/progassignment?
name=168)
Week 10:
Programming
Assignment 3
(/noc21_cs54/progassignment?
name=169)
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=80&assessment=166 2/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 12 - Week 10
Feedback For
Week 10 (unit?
unit=80&lesson=86)
Week 11 ()
Week 12 ()
DOWNLOAD
VIDEOS () a) h e
b) e l
Text
Transcripts () c) h h
d) e e
Books ()
No, the answer is incorrect.
Score: 0
Programming Accepted Answers:
Exam 2022 d) e e
(First
7) 1 point
Session)
(10am - 11am)
()
Programming
Exam 2022
(Second
Session)
(8pm - 9pm) ()
a) 23, 11
b) 23, 23
c) 11, 17
d) 17, 17
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=80&assessment=166 3/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 12 - Week 10
8) 1 point
a) 15, 10
b) 15, 15
c) 10, 15
d) 10, 10
9) How can you improve the best-case efficiency in bubble sort? (The input is already 1 point
sorted)
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=80&assessment=166 4/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 12 - Week 10
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=80&assessment=166 5/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 12 - Week 10
10)
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=80&assessment=166 6/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 12 - Week 10
Hint
1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=80&assessment=166 7/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 13 - Week 11
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 11: Assignment 11
The due date for submitting this assignment has passed.
How does an Due on 2021-10-13, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) Interpolation provides a mean for estimating functions 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=87&assessment=171 1/5
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 13 - Week 11
3) 1 point
Week 10 ()
Week 11 ()
Lecture 51 :
Interpolation
(unit?
unit=87&lesson=88)
Lecture 52 :
Trapezoidal a) 12.78
Rule and b) 13.08
Runge-Kutta
c) 14.12
Method (unit?
unit=87&lesson=89) d) 11.36
Lecture 54 : 4) 1 point
Recursion(Contd.)
(unit?
unit=87&lesson=91)
Lecture 55 : a) 172.7
Structure (unit?
b) 125.6
unit=87&lesson=92)
c) 136.2
Quiz: Week 11:
d) 142.8
Assignment 11
(assessment? No, the answer is incorrect.
name=171) Score: 0
Accepted Answers:
Week 11: b) 125.6
Programming
Assignment 1 5) Accuracy of the trapezoidal rule increases when 1 point
(/noc21_cs54/progassignment?
name=172) a) integration is carried out for sufficiently large range
Week 11:
b) instead of trapezoid, we take rectangular approximation function
Programming c) number of segments are increased
Assignment 2
d) integration is performedfor only integer range
(/noc21_cs54/progassignment?
name=173) No, the answer is incorrect.
Score: 0
Week 11: Accepted Answers:
Programming c) number of segments are increased
Assignment 3
6)
(/noc21_cs54/progassignment? 1 point
name=174)
Week 11:
Programming
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=87&assessment=171 2/5
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 13 - Week 11
Assignment 4
(/noc21_cs54/progassignment?
name=175)
Feedback For
Week 11 (unit?
unit=87&lesson=93)
Week 12 () a) 2.86
b) 2.93
DOWNLOAD
c) 3.13
VIDEOS ()
d) 3.08
Text No, the answer is incorrect.
Transcripts () Score: 0
Accepted Answers:
Books () b) 2.93
7) 1 point
Programming
Exam 2022
(First
Session)
(10am - 11am)
()
Programming
Exam 2022
a) A-2, B-4, C-1, D-3
(Second
Session) b) A-3, B-1, C-2, D-4
(8pm - 9pm) () c) A-1, B-4, C-3, D-2
d) A-2, B-3, C-4, D-1
8) 1 point
a) 12.56 to 12.92
b) 13.12 to 13.66
c) 14.24 to 14.58
d) 15.13 to 15.45
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=87&assessment=171 3/5
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 13 - Week 11
9) 1 point
a) 9
b) 8
c) 5
d) 2
10)
Hint
1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=87&assessment=171 4/5
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 13 - Week 11
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=87&assessment=171 5/5
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 14 - Week 12
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Course
outline Week 12: Assignment 12
The due date for submitting this assignment has passed.
How does an Due on 2021-10-20, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
() 1) Which of the following comments about the usage of structures variable is true? 1 point
Week 5 ()
Week 6 ()
Week 7 ()
Week 8 ()
Week 9 ()
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=94&assessment=176 1/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 14 - Week 12
2) 1 point
Week 10 ()
Week 11 ()
Week 12 ()
Lecture 56 :
Structure
(Contd.) (unit?
unit=94&lesson=95)
Lecture 57 :
Structure with
typedef (unit?
unit=94&lesson=96)
Lecture 58 :
Pointer (unit?
unit=94&lesson=97)
Lecture 59 :
a) 11100
Pointer (Contd.)
(unit? b) 11
unit=94&lesson=98) c) 11001
Lecture 60 : d) 11000
Pointer in
No, the answer is incorrect.
Structures Score: 0
(unit? Accepted Answers:
unit=94&lesson=99) a) 11100
Lecture 61 :
Dynamic
Allocation and
File (unit?
unit=94&lesson=100)
Quiz: Week
12:
Assignment
12
(assessment?
name=176)
Week 12:
Programming
Assignment 1
(/noc21_cs54/progassignment?
name=177)
Week 12:
Programming
Assignment 2
(/noc21_cs54/progassignment?
name=178)
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=94&assessment=176 2/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 14 - Week 12
3) 1 point
Week 12:
Programming
Assignment 3
(/noc21_cs54/progassignment?
name=179)
Week 12:
Programming
Assignment 4
(/noc21_cs54/progassignment?
name=180)
Feedback For
Week 12 (unit?
unit=94&lesson=101)
DOWNLOAD
VIDEOS ()
Text
Transcripts ()
Books ()
Programming
Exam 2022
(First a) Error
Session)
b) 0 1 2 3 4
(10am - 11am)
() c) 1 2 3 4 5
d) 0 1 2 2 3
Programming No, the answer is incorrect.
Exam 2022 Score: 0
(Second Accepted Answers:
Session) d) 0 1 2 2 3
(8pm - 9pm) ()
4) Which of the following is true? 1 point
a) calloc() allocates the memory and also initializes the allocated memory to zero, while
memory allocated using malloc() has random data.
b) calloc() takes two arguments, but malloc takes only 1 argument.
c) Both malloc() and calloc() return ‘void *’ pointer.
d) All of the above
5) 1 point
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=94&assessment=176 3/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 14 - Week 12
6) 1 point
a) 2
b) 4
c) 8
d) None
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=94&assessment=176 4/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 14 - Week 12
7) 1 point
8) 1 point
a) 10
b) a
c) address of a
d) compilation error
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=94&assessment=176 5/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 14 - Week 12
9) 1 point
a) True
b) False
c) No output
d) Compilation error
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=94&assessment=176 6/7
8/9/22, 10:59 AM Problem solving through Programming In C - - Unit 14 - Week 12
10) 1 point
a) True
b) False
c) No output
d) Compilation error
https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=94&assessment=176 7/7