0% found this document useful (0 votes)
14 views78 pages

Nptel C 2021 July To December

The document outlines the structure and content of an online course titled 'Problem Solving through Programming in C,' hosted on the NPTEL platform. It includes details about assignments, quizzes, and various programming concepts covered in the course, with specific due dates and accepted answers for quiz questions. The document indicates that several assignments have not been submitted by the user, affecting their evaluation.

Uploaded by

madhushreejs12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views78 pages

Nptel C 2021 July To December

The document outlines the structure and content of an online course titled 'Problem Solving through Programming in C,' hosted on the NPTEL platform. It includes details about assignments, quizzes, and various programming concepts covered in the course, with specific due dates and accepted answers for quiz questions. The document indicates that several assignments have not been submitted by the user, affecting their evaluation.

Uploaded by

madhushreejs12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 78

8/9/22, 10:54 AM Problem solving through Programming In C - - Unit 2 - Week 0 :

(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?

Week 5 () The motherboard


The operating system
Week 6 ()
The application software

Week 7 () The RAM

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 :

No, the answer is incorrect.


Week 8 () Score: 0
Accepted Answers:
Week 9 () The operating system

3) CPU consists of 1 point


Week 10 ()
ALU, Control Unit
Week 11 ()
ALU, Main memory, Control Unit
ALU, monitor, Registers
Week 12 ()
ALU, Control Unit, Hard Disk
DOWNLOAD No, the answer is incorrect.
VIDEOS () Score: 0
Accepted Answers:
Text ALU, Control Unit
Transcripts ()
4) C was developed by 1 point

Books () Alan Turing


Charles Babbage
Programming
Ada Lovelace
Exam 2022
(First Dennis Ritchie
Session) No, the answer is incorrect.
(10am - 11am) Score: 0
() Accepted Answers:
Dennis Ritchie
Programming
5) C is- 1 point
Exam 2022
(Second General-purpose programming language
Session)
Domain-specific programming language
(8pm - 9pm) ()
Page description programming language
None of the above

No, the answer is incorrect.


Score: 0
Accepted Answers:
General-purpose programming language

6) The relation between bit and byte in digital logic is 1 point

1 byte = 10 bits
1 byte = 16 bits
1 byte = 8 bits
1 byte = 2 bits

No, the answer is incorrect.


Score: 0
Accepted Answers:
1 byte = 8 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 :

7) Which of the following is not a programming language? 1 point

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
33

9) Which of the following is not an input device of computer? 1 point

Printer
Mouse
Keyboard
Joystick

No, the answer is incorrect.


Score: 0
Accepted Answers:
Printer

10) The process through which an user can find error(s) in a program is called 1 point

Compiling
Searching
Debugging
Processing

No, the answer is incorrect.


Score: 0
Accepted Answers:
Debugging

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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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

Lecture 4 : d) Pseudo code is another name of programming. Whereas in flowchart is diagrammatic


Introduction to representation of algorithm.
Programming
No, the answer is incorrect.
Language Score: 0
Concepts (unit? Accepted Answers:
unit=17&lesson=21) b) Flowchart is basically a diagrammatic representation of the algorithm. Whereas in pseudo
Lecture 5 : code normal English language is translated into the programming languages to be worked on.
Variables and
3) A Pseudo-code is 1 point
Memory (unit?
unit=17&lesson=22)
a) An equivalent of a flow chart
Quiz: Week 1: b) English-like statements
Assignment 1
c) Steps to write a program
(assessment?
name=119) d) All the above

Feedback For No, the answer is incorrect.


Score: 0
Week 1 (unit?
unit=17&lesson=23)
Accepted Answers:
d) All the above
Week 2 ()
4) Compiler helps in the translation from 1 point

Week 3 () a) Integer to binary


b) High-level program to binary digits
Week 4 ()
c) High-level language to machine level language

Week 5 () d) Pseudo code to computer program


No, the answer is incorrect.
Week 6 () Score: 0
Accepted Answers:
Week 7 () c) High-level language to machine level language

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) 4321

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
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

9) What is algorithm? 1 point

a) A process or set of rules to be followed in calculations or other problem-solving


operations, especially by a computer.
b) A process or set of rules to be followed in calculations or other problem-solving
operations, especially by a human.
c) A process or set of rules to be followed to solve numerical problems only.
d) A process or set of rules to be followed in to solve logical problems only.

No, the answer is incorrect.


Score: 0
Accepted Answers:

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

a) A process or set of rules to be followed in calculations or other problem-solving operations,


especially by a computer.

10) The ALU unit of computer 1 point

a) Can perform logical operation only


b) Can perform arithmetic operation only
c) Can perform both arithmetic and logical operations
d) None of the above.

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) Can perform both arithmetic and logical operations

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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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

a) System software is dependent on application software


Week 0 : ()
b) Application software is dependent on system software
Week 1 () c) Both are independent of each other
d) None of the above.
Week 2 ()
No, the answer is incorrect.
Score: 0
Lecture 6 :
Accepted Answers:
Types of
b) Application software is dependent on system software
Software and
Compilers 2) The execution of any C program is 1 point
(unit?
unit=24&lesson=25) a) Sequential
Lecture 7: b) Parallel
Introduction to c) Multi-threading
C Programming
d) None of these
Language
(unit? No, the answer is incorrect.
unit=24&lesson=26) Score: 0
Accepted Answers:
Lecture 8 :
a) Sequential
Variables and
Variable Types 3) A function is 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

in C (unit? a) Block of statements to perform some specific task


unit=24&lesson=27)
b) It is a fundamental modular unit to perform some task
Lecture 9 :
c) It has a name and can be used multiple times
Introducing
Functions d) All of the above
(unit? No, the answer is incorrect.
unit=24&lesson=28) Score: 0
Accepted Answers:
Lecture 10 :
d) All of the above
Address and
Content of 4) Which of the following statements is correct? 1 point
Variables and I. Keywords are those words whose meaning is already defined by Compiler.
Types (unit?
II. Keywords cannot be used as variable names.
unit=24&lesson=29)
III. There are 32 keywords in C.
Quiz: Week 2: IV. C keywords are also called as reserved words.
Assignment 2
(assessment? a) I and II
name=121) b) II and III
Feedback For c) I, II and IV
Week 2 (unit? d) All of the above
unit=24&lesson=30)
No, the answer is incorrect.
Week 3 () Score: 0
Accepted Answers:
d) All of the above
Week 4 ()
5) We use the concept of ‘function’ for the following reason 1 point
Week 5 ()
a) To use divide and conquer strategy
Week 6 () b) For code reusability
c) Enhances the logical clarity of the program
Week 7 ()
d) All of the above

Week 8 () No, the answer is incorrect.


Score: 0
Accepted Answers:
Week 9 ()
d) All of the above

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 ()

Text No, the answer is incorrect.


Transcripts () Score: 0
Accepted Answers:

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) 10

8) 1 point

a) The output is 21.00


b) The output is 19.00
c) The output is 0.00
d) The output is 17.00

No, the answer is incorrect.


Score: 0
A dA

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
d) Compilation error

10) 1 point

a) a=a-b; b=a-b; a=a+b;


b) a=a%b; b=a+b; a=a/b;
c) a=a+b; b=a-b; a=a-b;
d) None of the above

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) a=a+b; b=a-b; a=a-b;

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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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

a) Operator precedence determines which operator is performed first in an expression with


Week 0 : ()
more than one operator with different precedence. Associativity is used when two operators of
same precedence appear in an expression
Week 1 ()
b) Operator associativity determines which operator is performed first in an expression with
Week 2 () more than one operator with different associativity. Precedence is used when two operators of
same precedence appear in an expression
Week 3 () c) Operator precedence and associativity are same.
d) None of the above
Lecture 11 :
Assignment No, the answer is incorrect.
Statement and
Score: 0
Operators in C Accepted Answers:
(unit? a) Operator precedence determines which operator is performed first in an expression with more
unit=31&lesson=32) than one operator with different precedence. Associativity is used when two operators of same
precedence appear in an expression
Lecture 12 :
Arithmetic
Expressions
and Relational
Expressions
(unit?
unit=31&lesson=33)

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

Quiz: Week 3: No, the answer is incorrect.


Score: 0
Assignment 3
(assessment?
Accepted Answers:
name=122)
a) 67

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 No, the answer is incorrect.


Score: 0
Exam 2022
Accepted Answers:
(First
a) IITKGP
Session)
(10am - 11am) 5) 1 point
()

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
a) Condition is true

6) 1 point

a) Programming on C 0
b) NPTEL 0
c) NPTEL 3
d) Compilation error

No, the answer is incorrect.


Score: 0
Accepted Answers:
b) NPTEL 0

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
b) false

8) Which of the following method are accepted for assignment? 1 point

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
b) FALSE

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
b) 11

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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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 18: 3) 1 point


Switch
Statement
(Contd.) and
Introduction to
Loops (unit?
unit=38&lesson=41)

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

No, the answer is incorrect.


Books () Score: 0
Accepted Answers:
Programming c) Both ‘True’ and ‘False’
Exam 2022
(First 6) 1 point
Session)
(10am - 11am)
()

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

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 the 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 the condition1 is TRUE

8) 1 point

a) transfer the content of s to b


b) transfer the content of b to s
c) exchange (swap) the content of s and b
d) negate the contents of s and b
No, the answer is incorrect.
Score: 0
Accepted Answers:
c) exchange (swap) the content of s and b

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) 5 7

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
d) 0
11

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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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

Lecture 21: For b) debug


Statement c) stop the current iteration and begin the next iteration from the beginning
(Contd.) (unit?
d) None of the above
unit=45&lesson=46)
No, the answer is incorrect.
Lecture 22: Score: 0
Example of If- Accepted Answers:
Else (unit? c) stop the current iteration and begin the next iteration from the beginning
unit=45&lesson=47)

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 8 () d) Compilation error

No, the answer is incorrect.


Week 9 () Score: 0
Accepted Answers:
a) 1 time
Week 10 ()
5) 1 point
Week 11 ()

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) 6

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

a) After loop x=1


b) 1
After loop x=2
c) No output
d) 1 2 3 4 5 6 7 8 9 10
No, the answer is incorrect.
Score: 0
Accepted Answers:
c) No output

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

b) I love C -- will be printed 6 times


c) I love C -- will be printed 3 times
d) I love C –will be printed 5 times

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) I love C -- will be printed 3 times

9) 1 point

a) ‘while vs do-while’ once


b) ‘Out of loop’ infinite times
c) Both ‘while vs do-while’ and ‘Out of loop’ once
d) ‘while vs do-while’ infinite times

No, the answer is incorrect.


Score: 0
Accepted Answers:
d) ‘while vs do-while’ infinite times

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
b) factorial of 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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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

a) int arr{}={1,2, 5,6,9}


Week 0 : ()
b) int arr[5]={1,2, 5,6,9}
Week 1 () c) int arr{5}={1,2, 5,6,9}
d) int arr()={1,2, 5,6,9}
Week 2 ()
No, the answer is incorrect.
Score: 0
Week 3 () Accepted Answers:
b) int arr[5]={1,2, 5,6,9}
Week 4 ()
2) An integer array of size 10 is declared in a C program. The memory location of the first 1 point
byte of the array is 1000. What will be the location of the 8th element of the array? (Assume integer
Week 5 ()
takes 4 bytes of memory and the element stored at 1000 is identified as 1st element).

Week 6 ()
a) 1028

Lecture 26: b) 1032


Introduction to c) 1024
Arrays (unit?
d) 1036
unit=52&lesson=53)
No, the answer is incorrect.
Lecture 27: Score: 0
Arrays (Contd.) Accepted Answers:

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

Week 6: a) An array contains more than one element


Programming
b) All elements of array has to be of same data type
Assignment 4
(/noc21_cs54/progassignment? c) The size of array has to be declared upfront
name=149) d) All of the above
Feedback For No, the answer is incorrect.
Week 6 (unit? Score: 0
unit=52&lesson=58) Accepted Answers:
d) All of the above
Week 7 ()
5) To compare two arrays, we can do it by using 1 point
Week 8 ()
a) comparison operator ‘==’ directly on arrays
b) ' switch case'

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

Week 9 () c) 'for' loop


d) 'ternary operator' on arrays
Week 10 () No, the answer is incorrect.
Score: 0
Week 11 () Accepted Answers:
c) 'for' loop
Week 12 ()
6) 1 point

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) 4, 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) i=5, j=5, k=2


b) i=6, j=5, k=3
c) i=6, j=4, k=2
d) i=5, j=4, k=2

No, the answer is incorrect.


Score: 0
Accepted Answers:
a) i=5, j=5, k=2

8) Array elements are stored in memory in the following order 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

No, the answer is incorrect.


Score: 0
Accepted Answers:
(Type: Numeric) 15

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
(Type: Numeric) 6

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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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

No, the answer is incorrect.


Lecture 31 :
Score: 0
Linear Search
Accepted Answers:
(unit?
c) Address of the first element of the array
unit=59&lesson=60)
3) Applications of multidimensional array are? 1 point

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 33 : No, the answer is incorrect.


String Score: 0
Operations Accepted Answers:
(unit? d) All of the mentioned
unit=59&lesson=62)
4) 1 point
Lecture 34 : 2-
D Array
Operation
(unit?
unit=59&lesson=63)

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) nothing will be printed

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
(Type: Numeric) 321004

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
d) hello world

9) 1 point

a) The string is empty


b) The string is not empty
c) Error
d) None

No, the answer is incorrect.


Score: 0
Accepted Answers:
b) The string is not empty

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) PROGRAMMING

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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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

Week 8: 4) Which of the following statements is correct? 1 point


Programming

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

Assignment 4 a) A function with same name cannot have different signatures


(/noc21_cs54/progassignment?
name=159)
b) A function with same name cannot have different return types
c) A function with same name cannot have different number of parameters
Feedback For
Week 8 (unit? d) All of the mentioned
unit=66&lesson=72) No, the answer is incorrect.
Score: 0
Week 9 () Accepted Answers:
d) All of the mentioned
Week 10 ()
5) 1 point

Week 11 ()

Week 12 ()

DOWNLOAD
VIDEOS ()

Text
Transcripts ()
a) x * y where x and y are integers

Books () b) x * y where x and y are non-negative integers


c) x + y where x and y are integers
Programming d) x + y where x and y are non-negative integers
Exam 2022
(First No, the answer is incorrect.
Score: 0
Session)
Accepted Answers:
(10am - 11am)
b) x * y where x and y are non-negative 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

No, the answer is incorrect.


Score: 0
Accepted Answers:
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

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) 15

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

a) Before swapping num1 = 10 num2 = 20


After swapping num1 = 10 num2 = 20
b) Before swapping num1 = 10 num2 = 20
After swapping num1 = 20 num2 = 10
c) Before swapping num1 = 10 num2 = 20
After swapping num1 = 20 num2 = 20
d) Before swapping num1 = 10 num2 = 20
After swapping num1 = 10 num2 = 10

No, the answer is incorrect.


Score: 0
Accepted Answers:
a) Before swapping num1 = 10 num2 = 20
After swapping num1 = 10 num2 = 20

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

b) Positive difference between a and b


c) Sum of a and b
d) Minimum of a and b

No, the answer is incorrect.


Score: 0
Accepted Answers:
d) Minimum of a and b

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.

No, the answer is incorrect.


Score: 0
Accepted Answers:
(a) For some values of n, the environment will almost certainly exhaust its stack space before
the calculation completes.

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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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 )

No, the answer is incorrect.


Week 3 () Score: 0
Accepted Answers:
Week 4 () 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 41: 2) 1 point


Substitution of
# include and
Macro (unit?
unit=73&lesson=74)

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)

Lecture 45: a) Variable ‘a’ should be replaced by ‘si’


Sorting
b) Nothing will print
Methods (unit?
unit=73&lesson=78) c) Error: Multiple declaration of si
d) No error
Quiz: Week 9:
Assignment 9 No, the answer is incorrect.
(assessment? Score: 0
name=160) Accepted Answers:
c) Error: Multiple declaration of si
Week 9:
Programming 3) When the Binary search is best applied to an array? 1 point
Assignment 1
(/noc21_cs54/progassignment? a) For very large size array
name=162) b) When the array is sorted
Week 9: c) When the array elements are mixed data type
Programming
d) When the array is unsorted
Assignment 2
No, the answer is incorrect.
(/noc21_cs54/progassignment?
name=163) Score: 0
Accepted Answers:
Week 9: b) When the array is sorted
Programming
Assignment 3 4) Linear searching is used 1 point
(/noc21_cs54/progassignment?
name=164) a) when the list has only a few elements
b) when performing a single search in an unordered list
Week 9:
Programming c) all the time
Assignment 4 d) both option a and b is correct
(/noc21_cs54/progassignment?
name=165) No, the answer is incorrect.
Score: 0
Accepted Answers:

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

Feedback For d) both option a and b is correct


Week 9 (unit?
5) What is the best case and worst case complexity of ordered linear search? 1 point
unit=73&lesson=79)

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}

No, the answer is incorrect.


Score: 0
Accepted Answers:
a) {3 8 5 9 4} --> {3 5 8 9 4} --> {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

No, the answer is incorrect.


Score: 0
Accepted Answers:

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

a) The item to be searched is in some where middle of the Array


b) The item to be searched is not in the array
c) The item to be searched is in the last of the array
d) The item to be searched is either in the last or not in the array

No, the answer is incorrect.


Score: 0
Accepted Answers:
a) The item to be searched is in some where middle of the Array

10) 1 point

a) 5, 4
b) 5, 5
c) 4, 4
d) 3, 4

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) 4, 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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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

Week 1 () b) Binary search


c) Hash search
Week 2 () d) Binary tree search

No, the answer is incorrect.


Week 3 () Score: 0
Accepted Answers:
Week 4 () a) Linear search

2) The Worst case occur in linear search algorithm when 1 point


Week 5 ()

a) Item is somewhere in the middle of the array


Week 6 ()
b) Item is not in the array at all

Week 7 () c) Item is the last element in the array


d) Item is the last element in the array or is not there at all
Week 8 ()
No, the answer is incorrect.
Score: 0
Week 9 () Accepted Answers:
d) Item is the last element in the array or is not there at all

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

3) Bisection method is used to find 1 point


Week 10 ()
a) Derivative of a function at a given point
Lecture 46:
Bubble Sort b) Numerical integration of a function within a range
(Contd.) (unit? c) Root of the function
unit=80&lesson=81)
d) None of the above
Lecture 47: Use No, the answer is incorrect.
of Pointer in Score: 0
Function : Accepted Answers:
Context Bubble c) Root of the function
Sort (unit?
unit=80&lesson=82) 4) Consider a situation where swap operation is very costly. Which of the following sorting 1 point
algorithms should be preferred so that the number of swap operations are minimized in general?
Lecture 48:
Arrays at
a) Selection sort
Strings (unit?
unit=80&lesson=83) b) Insertion sort
c) Bubble sort
Lecture 49:
Data d) None of the above
Representation No, the answer is incorrect.
(unit? Score: 0
unit=80&lesson=84) Accepted Answers:
a) Selection sort
Lecture 50:
Bisection 5) What would be the equivalent pointer expression for referring to the array element a[i][j] 1 point
Method (unit?
[k][l]?
unit=80&lesson=85)
a) (((*(a+i)+j)+k)+l)
Quiz: Week
10: b) *(*(*(*(a+i)+j)+k)+l)
Assignment c) (*(*(a+i)+j)+k+l)
10
(assessment?
d) *((a+i)+j+k+l)
name=166) No, the answer is incorrect.
Score: 0
Week 10:
Accepted Answers:
Programming
b) *(*(*(*(a+i)+j)+k)+l)
Assignment 1
(/noc21_cs54/progassignment?
name=167)

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

Week 10: 6) 1 point


Programming
Assignment 4
(/noc21_cs54/progassignment?
name=170)

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
a) 23, 11

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
b) 15, 15

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

No, the answer is incorrect.


Score: 0
Accepted Answers:

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
(Type: Numeric) 1.472

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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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

a) at the beginning points


Week 0 : ()
b) at the ending points
Week 1 () c) at the intermediate points
d) None of the above
Week 2 ()
No, the answer is incorrect.
Score: 0
Week 3 () Accepted Answers:
c) at the intermediate points
Week 4 ()
2) To solve a differential equation using Runge-Kutta method, necessary inputs from user 1 point
to the algorithm is/are
Week 5 ()

a) the differential equation dy/dx in the form x and y


Week 6 ()
b) the step size based on which the iterations are executed.

Week 7 () c) the initial value of y.


d) all the above
Week 8 ()
No, the answer is incorrect.
Score: 0
Week 9 () Accepted Answers:
d) all the above

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 53 : No, the answer is incorrect.


Recursion
Score: 0
(unit? Accepted Answers:
unit=87&lesson=90) b) 13.08

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
a) A-2, B-4, C-1, D-3

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) 14.24 to 14.58

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
d) 2

10)

Hint

No, the answer is incorrect.


Score: 0
Accepted Answers:
(Type: Numeric) 16

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)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C

(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

a) Storage class can be assigned to individual member


Week 0 : ()
b) Individual members can be initialized within a structure type declaration
Week 1 () c) The scope of the member name is confined to the particular structure, within which it is
defined
Week 2 () d) None of the above

No, the answer is incorrect.


Week 3 () Score: 0
Accepted Answers:
Week 4 () c) The scope of the member name is confined to the particular structure, within which it is defined

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
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

a) 2036 2036 2036


b) 2012 4 2204
c) 2036 10 10
d) 2012 4 6

No, the answer is incorrect.


Score: 0
Accepted Answers:
a) 2036 2036 2036

6) 1 point

a) 2
b) 4
c) 8
d) None

No, the answer is incorrect.


Score: 0
Accepted Answers:
c) 8

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

a) The first character in the file


b) A structure which contains a char pointer which points to the first character of a file.
c) The name of the file.
d) The last character in the file

No, the answer is incorrect.


Score: 0
Accepted Answers:
b) A structure which contains a char pointer which points to the first character of a file.

8) 1 point

a) 10
b) a
c) address of a
d) compilation error

No, the answer is incorrect.


Score: 0
Accepted Answers:
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

No, the answer is incorrect.


Score: 0
Accepted Answers:
b) False

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
a) True

https://onlinecourses.nptel.ac.in/noc21_cs54/unit?unit=94&assessment=176 7/7

You might also like