• Computer Science and Engineering
  • NOC:Problem Solving through Programming in C (Video) 
  • Co-ordinated by : IIT Kharagpur
  • Available from : 2017-12-21
  • Intro Video
  • Lecture 1 : Introduction
  • Lecture 2 : Idea of Algorithms
  • Lecture 3 : Flow Chart and Pseudocode
  • Lecture 4 : Introduction to Programming Language Concepts
  • Lecture 5 : Variables and Memory
  • Lecture 6 : Types of Software and Compilers
  • Lecture 7 : Introduction to C Programming Language
  • Lecture 8 : Variables and Variable Types in C
  • Lecture 9 : Introducing Functions
  • Lecture 10 : Address and Content of Variables and Types
  • Lecture 11 : Assignment Statement and Operators in C
  • Lecture 12 : Arithmetic Expressions and Relational Expressions
  • Lecture 13 : Logical Operators and Change in Control Flow
  • Lecture 14 : Use of Logical Operaotrs in Branching
  • Lecture 15 : Branching : IF - ELSE Statement
  • Lecture 16 : IF-ELSE Statement (Contd.)
  • Lecture 17 : Switch statement
  • Lecture 18 : Switch Statement (Contd.) and Introduction to Loops
  • Lecture 19 : Implementing Repetitions (Loops)
  • Lecture 20 : Implementation of Loops with for Statement (Contd.)
  • Lecture 21 : For Statement (Contd.)
  • Lecture 22 : Example of If-Else
  • Lecture 23 : Example of Loops
  • Lecture 24 : Example of Loops (Contd.)
  • Lecture 25: Example of Loops (Contd.), Use of FOR Loops
  • Lecture 26 : Introduction to Arrays
  • Lecture 27 : Arrays (Contd.)
  • Lecture 28 : Arrays (Contd.)
  • Lecture 29 : Program using Arrays
  • Lecture 30 : Array Problem
  • Lecture 31 : Linear Search
  • Lecture 32 : Character Array and Strings
  • Lecture 33 : String Operations
  • Lecture 34 : 2-D Array Operation
  • Lecture 35 : Introducing Functions
  • Lecture 36 : More on Functions
  • Lecture 37 : Function (Contd.)
  • Lecture 38 : Scanf and Printf Functions; Function Prototype
  • Lecture 39 : Parameter Passing in Function Revision
  • Lecture 40 : Parameter Passing in Function Revision (Contd.)
  • Lecture 41: Substitution of # include and Macro
  • Lecture 42: "search" as a function
  • Lecture 43: Binary Search
  • Lecture 44: Binary Search (Contd.)
  • Lecture 45: Sorting Methods
  • Lecture 46 : Bubble Sort (Contd.)
  • Lecture 47 : Use of Pointer in Function : Context Bubble Sort
  • Lecture 48 : Arrays at Strings
  • Lecture 49 : Data Representation
  • Lecture 50 : Bisection Method
  • Lecture 51 : Interpolation
  • Lecture 52 : Trapezoidal Rule and Runge-Kutta Method
  • Lecture 53 : Recursion
  • Lecture 54 : Recursion(Contd.)
  • Lecture 55 : Structure
  • Lecture 56 : Structure (Contd.)
  • Lecture 57 : Structure with typedef
  • Lecture 58 : Pointer
  • Lecture 59 : Pointer (Contd.)
  • Lecture 60 : Pointer in Structures
  • Lecture 61 : Dynamic Allocation and File
  • Week 2 - PMRF Live Session
  • Week 3 - PMRF Live Session
  • Watch on YouTube
  • Assignments
  • Download Videos
  • Transcripts
  • Handouts (3)
Module NameDownloadDescriptionDownload Size
Week 1
Week 2
Week 3
Module NameDownload
noc20-cs06_Week_01_Assignment_01
noc20-cs06_Week_02_Assignment_01
noc20-cs06_Week_03_Assignment_01
noc20-cs06_Week_03_Assignment_02
noc20-cs06_Week_03_Assignment_03
noc20-cs06_Week_03_Assignment_04
noc20-cs06_Week_03_Assignment_05
noc20-cs06_Week_04_Assignment_01
noc20-cs06_Week_04_Assignment_02
noc20-cs06_Week_04_Assignment_03
noc20-cs06_Week_04_Assignment_04
noc20-cs06_Week_04_Assignment_05
noc20-cs06_Week_04_Assignment_06
noc20-cs06_Week_05_Assignment_01
noc20-cs06_Week_05_Assignment_02
noc20-cs06_Week_05_Assignment_03
noc20-cs06_Week_05_Assignment_04
noc20-cs06_Week_05_Assignment_05
noc20-cs06_Week_05_Assignment_06
noc20-cs06_Week_06_Assignment_01
noc20-cs06_Week_06_Assignment_02
noc20-cs06_Week_06_Assignment_03
noc20-cs06_Week_06_Assignment_04
noc20-cs06_Week_06_Assignment_05
noc20-cs06_Week_06_Assignment_06
noc20-cs06_Week_07_Assignment_01
noc20-cs06_Week_07_Assignment_02
noc20-cs06_Week_07_Assignment_03
noc20-cs06_Week_07_Assignment_04
noc20-cs06_Week_07_Assignment_05
noc20-cs06_Week_07_Assignment_06
noc20-cs06_Week_08_Assignment_01
noc20-cs06_Week_08_Assignment_02
noc20-cs06_Week_08_Assignment_03
noc20-cs06_Week_08_Assignment_04
noc20-cs06_Week_08_Assignment_05
noc20-cs06_Week_08_Assignment_06
noc20-cs06_Week_09_Assignment_01
noc20-cs06_Week_09_Assignment_02
noc20-cs06_Week_09_Assignment_03
noc20-cs06_Week_09_Assignment_04
noc20-cs06_Week_09_Assignment_05
noc20-cs06_Week_09_Assignment_06
noc20-cs06_Week_10_Assignment_01
noc20-cs06_Week_10_Assignment_02
noc20-cs06_Week_10_Assignment_03
noc20-cs06_Week_10_Assignment_04
noc20-cs06_Week_11_Assignment_01
noc20-cs06_Week_11_Assignment_02
noc20-cs06_Week_11_Assignment_03
noc20-cs06_Week_11_Assignment_04
noc20-cs06_Week_11_Assignment_05
noc20-cs06_Week_11_Assignment_06
noc20-cs06_Week_12_Assignment_01
noc20-cs06_Week_12_Assignment_02
noc20-cs06_Week_12_Assignment_03
noc20-cs06_Week_12_Assignment_04
noc20-cs06_Week_12_Assignment_05
noc20-cs06_Week_12_Assignment_06
Sl.No Chapter Name MP4 Download
1Lecture 1 : Introduction
2Lecture 2 : Idea of Algorithms
3Lecture 3 : Flow Chart and Pseudocode
4Lecture 4 : Introduction to Programming Language Concepts
5Lecture 5 : Variables and Memory
6Lecture 6 : Types of Software and Compilers
7Lecture 7 : Introduction to C Programming Language
8Lecture 8 : Variables and Variable Types in C
9Lecture 9 : Introducing Functions
10Lecture 10 : Address and Content of Variables and Types
11Lecture 11 : Assignment Statement and Operators in C
12Lecture 12 : Arithmetic Expressions and Relational Expressions
13Lecture 13 : Logical Operators and Change in Control Flow
14Lecture 14 : Use of Logical Operaotrs in Branching
15Lecture 15 : Branching : IF - ELSE Statement
16Lecture 16 : IF-ELSE Statement (Contd.)
17Lecture 17 : Switch statement
18Lecture 18 : Switch Statement (Contd.) and Introduction to Loops
19Lecture 19 : Implementing Repetitions (Loops)
20Lecture 20 : Implementation of Loops with for Statement (Contd.)
21Lecture 21 : For Statement (Contd.)
22Lecture 22 : Example of If-Else
23Lecture 23 : Example of Loops
24Lecture 24 : Example of Loops (Contd.)
25Lecture 25: Example of Loops (Contd.), Use of FOR Loops
26Lecture 26 : Introduction to Arrays
27Lecture 27 : Arrays (Contd.)
28Lecture 28 : Arrays (Contd.)
29Lecture 29 : Program using Arrays
30Lecture 30 : Array Problem
31Lecture 31 : Linear Search
32Lecture 32 : Character Array and Strings
33Lecture 33 : String Operations
34Lecture 34 : 2-D Array Operation
35Lecture 35 : Introducing Functions
36Lecture 36 : More on Functions
37Lecture 37 : Function (Contd.)
38Lecture 38 : Scanf and Printf Functions; Function Prototype
39Lecture 39 : Parameter Passing in Function Revision
40Lecture 40 : Parameter Passing in Function Revision (Contd.)
41Lecture 41: Substitution of # include and Macro
42Lecture 42: "search" as a function
43Lecture 43: Binary Search
44Lecture 44: Binary Search (Contd.)
45Lecture 45: Sorting Methods
46Lecture 46 : Bubble Sort (Contd.)
47Lecture 47 : Use of Pointer in Function : Context Bubble Sort
48Lecture 48 : Arrays at Strings
49Lecture 49 : Data Representation
50Lecture 50 : Bisection Method
51Lecture 51 : Interpolation
52Lecture 52 : Trapezoidal Rule and Runge-Kutta Method
53Lecture 53 : Recursion
54Lecture 54 : Recursion(Contd.)
55Lecture 55 : Structure
56Lecture 56 : Structure (Contd.)
57Lecture 57 : Structure with typedef
58Lecture 58 : Pointer
59Lecture 59 : Pointer (Contd.)
60Lecture 60 : Pointer in Structures
61Lecture 61 : Dynamic Allocation and File
Sl.No Chapter Name English
1Lecture 1 : Introduction
2Lecture 2 : Idea of Algorithms
3Lecture 3 : Flow Chart and Pseudocode
4Lecture 4 : Introduction to Programming Language Concepts
5Lecture 5 : Variables and Memory
6Lecture 6 : Types of Software and Compilers
7Lecture 7 : Introduction to C Programming Language
8Lecture 8 : Variables and Variable Types in C
9Lecture 9 : Introducing Functions
10Lecture 10 : Address and Content of Variables and Types
11Lecture 11 : Assignment Statement and Operators in C
12Lecture 12 : Arithmetic Expressions and Relational Expressions
13Lecture 13 : Logical Operators and Change in Control Flow
14Lecture 14 : Use of Logical Operaotrs in Branching
15Lecture 15 : Branching : IF - ELSE Statement
16Lecture 16 : IF-ELSE Statement (Contd.)
17Lecture 17 : Switch statement
18Lecture 18 : Switch Statement (Contd.) and Introduction to Loops
19Lecture 19 : Implementing Repetitions (Loops)
20Lecture 20 : Implementation of Loops with for Statement (Contd.)
21Lecture 21 : For Statement (Contd.)
22Lecture 22 : Example of If-Else
23Lecture 23 : Example of Loops
24Lecture 24 : Example of Loops (Contd.)
25Lecture 25: Example of Loops (Contd.), Use of FOR Loops
26Lecture 26 : Introduction to Arrays
27Lecture 27 : Arrays (Contd.)
28Lecture 28 : Arrays (Contd.)
29Lecture 29 : Program using Arrays
30Lecture 30 : Array Problem
31Lecture 31 : Linear Search
32Lecture 32 : Character Array and Strings
33Lecture 33 : String Operations
34Lecture 34 : 2-D Array Operation
35Lecture 35 : Introducing Functions
36Lecture 36 : More on Functions
37Lecture 37 : Function (Contd.)
38Lecture 38 : Scanf and Printf Functions; Function Prototype
39Lecture 39 : Parameter Passing in Function Revision
40Lecture 40 : Parameter Passing in Function Revision (Contd.)
41Lecture 41: Substitution of # include and Macro
42Lecture 42: "search" as a function
43Lecture 43: Binary Search
44Lecture 44: Binary Search (Contd.)
45Lecture 45: Sorting Methods
46Lecture 46 : Bubble Sort (Contd.)
47Lecture 47 : Use of Pointer in Function : Context Bubble Sort
48Lecture 48 : Arrays at Strings
49Lecture 49 : Data Representation
50Lecture 50 : Bisection Method
51Lecture 51 : Interpolation
52Lecture 52 : Trapezoidal Rule and Runge-Kutta Method
53Lecture 53 : Recursion
54Lecture 54 : Recursion(Contd.)
55Lecture 55 : Structure
56Lecture 56 : Structure (Contd.)
57Lecture 57 : Structure with typedef
58Lecture 58 : Pointer
59Lecture 59 : Pointer (Contd.)
60Lecture 60 : Pointer in Structures
61Lecture 61 : Dynamic Allocation and File
Sl.No Language Book link
1English
2BengaliNot Available
3GujaratiNot Available
4HindiNot Available
5KannadaNot Available
6MalayalamNot Available
7MarathiNot Available
8TamilNot Available
9TeluguNot Available

Introduction to Programming in C Week 2

Session: JAN-APR 2024

Course Name: Introduction to Programming in C

Course Link: Click Here

For answers or latest updates join our telegram channel: Click here to join

These are Introduction to Programming in C Assignment 2 Answers

Parity Checker You are given a sequence of bits (1’s and 0’s). The sequence is said to have even parity if and only if the number of 1’s in the sequence if even. Write a C program to that outputs 1 if the sequence has even parity and 0 otherwise.

Input A sequence of bits (0’s and 1’s) ending with a -1. (Note : -1 is not a part of input. It only signifies that input has ended) Output 1 if the number of ones in the sequence is even. 0 if the number of ones in the sequence is odd.

Identify Distinct elements in a sorted sequence You are given sequence of non-negative integers, sorted in the non decreasing order. That is if the sequence is a 1, a 2,…, an ,then ai ≤ ai +1 for all i from 1 to n-1. You can assume that are at least two numbers in the sequence. Write a C program to output the number of distinct elements in the sorted sequence.

Input A non decreasing sorted sequence of non-negative integers, ending with a -1. (Note : -1 is not a part of input. It only signifies that input has ended) Output The number of distinct elements in the sequence.

Count the Number of 0’s Between the First and Last 1 You are given a binary sequence. Write a C program to count the number of 0’s between the first and last 1 in the sequence.

Input A sequence of bits (0’s and 1’s) ending with a -1. (Note : -1 is not a part of input. It only signifies that input has ended) Output The number of 0’s Between the First and Last 1 in the sequence.

Note : Make no assumptions about the data in the sequence. For instance if there is no starting and ending 1 ( say the sequence is all 0), you have to output 0.

More Solutions of Introduction to Programming in C: Click Here

More NPTEL Solutions: https://progiez.com/nptel-assignment-answers/

Session: JAN-APR 2023

Course Name: Introduction to programming in C

You are given a non-negative sequence of numbers, ending with a -1. You can assume that there are at least two numbers before the ending -1. You have to output the second largest element of the sequence. If there is no second largest element in the sequence then output 0. Note : -1 is not a part of input. It only signifies that input has ended.

You are given a non decreasing sorted sequence of non negative integers, ending with -1. That is if the sequence is a1,a2,…,an,−1 then ai≤ai+1 for all i from 1 to n-1. You can assume that are at least two numbers before the ending -1. You have to output the number of distinct elements in the sorted sequence.

These are Introduction to programming in C Assignment 2 Answers

In this assignment, you will be given an N×N matrix, with N>1 You have to determine whether the matrix is an upper triangular matrix. A matrix is upper triangular if every entry below the diagonal is 0. The following is an example of an upper triangular matrix: Note: The diagonal itself, and the entries above the diagonal can be zeroes or non-zero integers. Input First, you will be given N, which is the size of the matrix. Then you will be given N rows of integers, where each row consists of N integers separated by spaces. Output If the input matrix is upper triangular, then print 1. Otherwise, print 0.

These are Introduction to Programming in C Assignment 2 Answers

The content uploaded on this website is for reference purposes only. Please do it yourself first.

Introduction To Programming In C NPTEL Assignment 3 Answers

Introduction To Programming In C NPTEL Assignment 3 Answers 2022:- All the Answers provided here to help the students as a reference, You must submit your assignment at your own knowledge.

What is Introduction To Programming In C?

This is a course in programming in C. No prior programming experience is assumed; however, mathematical maturity at the level of a second-year science or engineering undergraduate is assumed. We emphasize solving problems using the language and introduce standard programming techniques like alternation, iteration, and recursion. We will briefly glimpse the basics of software engineering practices like modularization, commenting, and naming conventions which help in collaborating and programming in teams. 

CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of best 6 assignments out of the total 8 assignments given in the course. Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

Assignment No.Answers

Introduction To Programming In C NPTEL Assignment 3 Answers 2022:-

Q1. Write a C function to find the kth occurrence of an odd integer in a sequence of non-negative integers, and then call your function from main. 

Q2. In this question, you have to output the “moving average” of asequence of non-negative numbers. The moving average is the sequenceof averages of the last 2 entries. For the first number, no averageis output.

  • BSEB 12th Result Published Science Arts Commerce Result Download

Q3. Write a C program to list all the factorial numbers less than or equalto an input number n.

Disclaimer :- We do not claim 100% surety of solutions, these solutions are based on our sole expertise, and by using posting these answers we are simply looking to help students as a reference, so we urge do your assignment on your own.

For More NPTEL Answers:-  CLICK HERE

Join Our Telegram:-  CLICK HERE

Leave a Comment Cancel reply

You must be logged in to post a comment.

Please Enable JavaScript in your Browser to Visit this Site.

Navigation Menu

Search code, repositories, users, issues, pull requests..., provide feedback.

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly.

To see all available qualifiers, see our documentation .

  • Notifications You must be signed in to change notification settings

NPTEL Assignment Answers and Solutions 2024 (July-Dec). Get Answers of Week 1 2 3 4 5 6 7 8 8 10 11 12 for all courses. This guide offers clear and accurate answers for your all assignments across various NPTEL courses

progiez/nptel-assignmnet-answers

Folders and files.

NameName
155 Commits

Repository files navigation

Nptel assignment answers 2024 with solutions (july-dec), how to use this repo to see nptel assignment answers and solutions 2024.

If you're here to find answers for specific NPTEL courses, follow these steps:

Access the Course Folder:

  • Navigate to the folder of the course you are interested in. Each course has its own folder named accordingly, such as cloud-computing or computer-architecture .

Locate the Weekly Assignment Files:

  • Inside the course folder, you will find files named week-01.md , week-02.md , and so on up to week-12.md . These files contain the assignment answers for each respective week.

Select the Week File:

  • Click on the file corresponding to the week you are interested in. For example, if you need answers for Week 3, open the week-03.md file.

Review the Answers:

  • Each week-XX.md file provides detailed solutions and explanations for that week’s assignments. Review these files to find the information you need.

By following these steps, you can easily locate and use the assignment answers and solutions for the NPTEL courses provided in this repository. We hope this resource assists you in your studies!

List of Courses

Here's a list of courses currently available in this repository:

  • Artificial Intelligence Search Methods for Problem Solving
  • Cloud Computing
  • Computer Architecture
  • Cyber Security and Privacy
  • Data Science for Engineers
  • Data Structure and Algorithms Using Java
  • Database Management System
  • Deep Learning for Computer Vision
  • Deep Learning IIT Ropar
  • Digital Circuits
  • Ethical Hacking
  • Introduction to Industry 4.0 and Industrial IoT
  • Introduction to Internet of Things
  • Introduction to Machine Learning IIT KGP
  • Introduction to Machine Learning
  • Introduction to Operating Systems
  • ML and Deep Learning Fundamentals and Applications
  • Problem Solving Through Programming in C
  • Programming DSA Using Python
  • Programming in Java
  • Programming in Modern C
  • Python for Data Science
  • Soft Skill Development
  • Soft Skills
  • Software Engineering
  • Software Testing
  • The Joy of Computation Using Python
  • Theory of Computation

Note: This repository is intended for educational purposes only. Please use the provided answers as a guide to better understand the course material.

📧 Contact Us

For any queries or support, feel free to reach out to us at [email protected] .

🌐 Connect with Progiez

Website

⭐️ Follow Us

Stay updated with our latest content and updates by following us on our social media platforms!

🚀 About Progiez

Progiez is an online educational platform aimed at providing solutions to various online courses offered by NPTEL, Coursera, LinkedIn Learning, and more. Explore our resources for detailed answers and solutions to enhance your learning experience.

Disclaimer: This repository is intended for educational purposes only. All content is provided for reference and should not be submitted as your own work.

Contributors 3

Quizermania Logo

Problem Solving Through Programming In C NPTEL Week 3 Solutions

This set of MCQ(multiple choice questions) focuses on the  Problem Solving Through Programming In C NPTEL Week 3 Solutions.

Problem Solving Through Programming In C NPTEL Week 2 Solutions

Course layout (Answers Link)

Answers COMING SOON! Kindly Wait!

Week 0 : Assignment Week 1 :   Introduction to Problem Solving through programs Week 2 :   Arithmetic expressions, Relational Operations, Logical expressions; Introduction to Conditional Branching Week 3 :  Conditional Branching and Iterative Loops Programming Assignment Week 4 :   Arranging things : Arrays Programming Assignment Week 5 :   2-D arrays, Character Arrays and Strings   Programming Assignment Week 6 :   Basic Algorithms including Numerical Algorithms Week 7 :  Functions and Parameter Passing by Value Week 8 :  Passing Arrays to Functions, Call by Reference Programming Assignment Week 9 :  Recursion Week 10 :   Structures and Pointers Week 11 :  Self-Referential Structures and Introduction to Lists Week 12 :   Advanced Topics

NOTE:  You can check your answer immediately by clicking show answer button. Problem Solving Through Programming In C NPTEL Week 3 assignment answers ” contains 10 questions.

Now, start attempting the quiz.

Problem Solving Through Programming In C NPTEL Week 3 assignment answers

Q1. Which of the following statement is correct?

a) Operator precedence determines which operator is performed first in an expression with more than one operator with different precedence. Associativity is used when two operators of same precedence appear in an expression. b) Operator associativity determines which operator is performed first in an expression with more than one operator with different associativity. Precedence is used when two operators of same precedence appear in an expression. c) Operator precedence and assocativity are same. d) None of the above

Q2. Find the output of the following C code.

a) 67 b) -36 c) 66 d) -37

Q3. What is the output of the following C code?

a) 0 b) 3 c) 4 d) Compilation error

Q4. Find the output of the following C code.

a) IITKGP b) IITD and IITM c) IITKGP and IITM d) IITM

Q5. What will be the output?

a) Condition is true b) Condition is false c) Error d) No output possible

Q6. What is the output of the following program?

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

Q7. What is the output of the C program given below

a) true b) false c) Compiler dependent d) Compiler error

Q8. What will be the output?

a) 0 b) 1 c) 10 d) 30

Q9. What will be the output?

a) TRUE b) FALSE c) Syntax Error d) Compilation Error

Q10. What is the output of the following C code?

a) 10 b) 11 c) 20 d) Compiler error

Q1. What should be the value of ‘b’ such that the output of the program will be 20?

a) 1 b) 2 c) 3 d) 4

Answer: b) 2

Q2. Find the output of the following C code

Answer: a) IITKGP

Q3. What is the output of the following program?

Answer: b) NPTEL 0

Q4. Find the output of the following C code

a) -42 b) 24 c) 15 d) -34

Answer: c) 15

Q5. Which of the following statement is correct?

a) Operator precedence determines which operator is performed first in an expression with more than one operator with different precedence. Associativity is used when two operators of same precedence appear in an expression b) Operator associativity determines which operator is performed first in an expression with more than one operator with different associativity. Precedence is used when two operators of same precedence appear in an expression c) Operator precedence and associativity are same. d) None of the above

Q6. What is the output of the C program given below?

Answer: b) false

Q7. What is the output of the following program?

a) Value of c and d are 1 and 3 respectively b) Value of c and d are 1 and 3.333333 respectively c) Value of c and d are 1.000000 and 3.000000 respectively d) Value of c and d are 1 and 3.000000 respectively

Answer: d) Value of c and d are 1 and 3.000000 respectively

Answer: a) TRUE

a) 0 b) 1 c) 7 d) Compilation error

Answer: a) 0

Q10. The precedence of arithmetic operators is (from highest to lowest)

a) %, *, /, +, – b) %, +, /, *, – c) +, -, %, *, / d) %, +, -, *, /

Answer: a) %, *, /, +, –

Q1. Find the output of the following C program

a) 120, 120 b) 120, 130 c) 130, 120 d)130, 130

Answer: b) 120, 130

Q2. What will be the output of the following program?

a) 1 b) 0 c) -1 d) 2

Answer: a) 1

Q3. Find the output of the following C code.

a) x1=4, x2=3 b) x1=-5, x2=-4 c) x1=2.5, x2=4.2 d) Roots are imaginary

Answer: d) Roots are imaginary

Q4. Find the output of the following code.

a) 6 b) 4 c) 10 d) 14

Answer: c) 10

Q5. Which of the following statements are correct? I. The ‘else’ block is executed when condition inside ‘if’ statement is false. II. One ‘if’ statement can have multiple ‘else’ statement.

a) Only I b) Only II c) Both I and II d) None of the above is correct

Answer: a) Only I

Q6. C modulo division operator ‘%’ can be applied on

a) only float variables b) only int variables c) int and float combination d) any data types in C

Answer: b) only int variables

Q7. The output of the following program will be

a) C programming b) Java Python c) C programming Java d) Compilation error

Answer: b) Java Python

a) 2 b) 8 c) 10 d) 12

a) Right b) Wrong c) 0 d) No output

Answer: a) Right

Q10. What will be the output of the program?

a) The answer will be 15 b) The answer will be 0 c) The answer will be 1 d) Compilation error

Answer: b) The answer will be 0

Previous Course – Week 3 assignment answers

Q1. Which of the following statements is correct?

Q2. What is the output of the following program?

a) Value of z and w are 1 and 2 respectively b) Value of z and w are 1 and 2.200000 respectively c) Value of z and w are 1.000000 and 2.200000 respectively d) Value of z and w are 1 and 2.000000 respectively

Q3. What will be the output?

Q4. What will be the output of following program?

a) x=60 b) x=70 c) x=0 d) x=1

Answer: d) x=1

a) 17 b) 18 c) 1 d) 0

Answer: a) 17

Problem Solving Through Programming In C NPTEL Week 3 solutions

Q6. What is the output of the following C code?

a) 7 b) 6 c) 5 d) 0

Answer: b) 6

Q7. What will be the output?

a) 0 b) 1 c) 2 d) Compilation error

Answer: c) 2

Q8. Find the output of the following C code

a) 1,2 b) 0,0 c) 3,2 d) 1,0

Answer: a) 1,2

Q9. The output of the following program will be

a) IITKGP b) IITMIITR c) IITM IITR d) IITKGP IITR

Q10. What is the output of this C code?

a) inside if b) inside elseif c) inside if inside elseif d) compile time error

Answer: a) inside if

<< Prev – An Introduction to Programming Through C Week 2 Assignment Solutions

>> Next- An Introduction to Programming Through C Week 4 Assignment Solutions

Programming in Java NPTEL week 1 quiz answers

NPTEL – Python for Data Science assignment solutions

Nptel – Deep Learning assignment solutions

For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.

Related Posts

Html mcq : html basics (multiple choice question), html mcq : html web browsers (multiple choice question).

Preprocessor Directives

C programming MCQ : Preprocessor Directives(MULTIPLE CHOICE QUESTION)

C++ mcq : c++ basics(multiple choice question), 2 thoughts on “problem solving through programming in c nptel week 3 solutions”.

' src=

Wher is the week 3 problem solving through programming in c programming assignment code can u plz upload for me

' src=

Now, all programming answers for week 3 has been uploaded. Go through this link

Leave a Comment Cancel Reply

Your email address will not be published. Required fields are marked *

Save my name, email, and website in this browser for the next time I comment.

  • 1st Central Law Reviews: Expert Legal Analysis & Insights

swayam-logo

Problem Solving Through Programming In C

  • Formulate simple algorithms for arithmetic and logical problems
  • Translate the algorithms to programs (in C language)
  • Test and execute the programs and  correct syntax and logical errors
  • Implement conditional branching, iteration and recursion
  • Decompose a problem into functions and synthesize a complete program using divide and conquer approach
  • Use arrays, pointers and structures to formulate algorithms and programs
  • Apply programming to solve matrix addition and multiplication problems and searching and sorting problems 
  • Apply programming to solve simple numerical method problems, namely rot finding of function, differentiation of function and simple integration
--> --> --> --> --> --> --> --> --> --> --> --> --> --> --> --> --> -->

Note: This exam date is subject to change based on seat availability. You can check final exam date on your hall ticket.

Page Visits

Course layout, books and references, instructor bio.

nptel introduction to programming in c assignment 3 answers

Prof. Anupam Basu

Course certificate.

nptel introduction to programming in c assignment 3 answers

DOWNLOAD APP

nptel introduction to programming in c assignment 3 answers

SWAYAM SUPPORT

Please choose the SWAYAM National Coordinator for support. * :

COMMENTS

  1. Introduction To Programming In C

    Introduction To Programming In C | Week 3 : Assignment 3 | Answers | Jan-2024 | NPTEL | SwayamJoin our Telegram Channel : https://telegram.me/SwayamSolverJoi...

  2. Introduction To Programming In C

    This is a course in programming in C. No prior programming experience is assumed; however, mathematical maturity at the level of a second year science or eng...

  3. NPTEL Introduction To Programming In C Assignment 3 Answers

    These are Introduction to Programming in C Assignment 3 Answers. Question 1. Find moving average. In this question, you have to output the "two moving average" of a sequence of non-negative numbers. The two moving average is the sequence of averages of the last 2 entries. For the first number, no average is output.

  4. Introduction To Programming In C WEEK 3 Programming Assignment

    🔊 Introduction To Programming In C NPTEL Elective Course 2022NPTEL Introduction To Programming In C WEEK 3 Programming Assignment Solutions | Swayam 2022 | ...

  5. NPTEL Assignment Answers 2024 And Solutions Progiez

    We provide you NPTEL Assignment Answers 2024 and solutions of all courses. Week 1,2,3, 4, 5, 6, 7 , 8, 9, 10 ,11, 1. By Swayam platform.

  6. Introduction to Programming in C

    Course certificate. The course is free to enroll and learn from. But if you want a certificate, you have to register and write the proctored exam conducted by us in person at any of the designated exam centres. The exam is optional for a fee of Rs 1000/- (Rupees one thousand only).Date and Time of Exams:18 December 2020Morning session 9am to 12 ...

  7. Introduction To Programming in C

    Week 1: Question 1. You will be given 3 integers as input. The inputs may or may not be. different from each other. You have to output 1 if sum of first two inputs is greater than the third input, and 0 otherwise. Input. ————————————-. Three integers separated by space.

  8. PDF Assignment 3

    a) O pe r at or pre c e de nc e de t e r m i ne s w hi c h ope r at or i s pe r f or m e d f i r s t i n an e x pre s s i on w i t h m ore t han one ope r at or w i t h di f f e re nt pre c e de nc e .

  9. nptel-solutions · GitHub Topics · GitHub

    NPTEL-The-Joy-of-Computing-using-Python with NOTES and Weekly quizes Answers. ... CGreenP / NPTEL-Introduction-to-Programming-in-C-Assignment-4-Question-1 Star 0. Code Issues Pull requests ... NPTEL Introduction to Programming in C Assignment 4 Question 3.

  10. NPTEL Problem Solving through Programming in C ASSIGNMENT 3 ANSWERS

    NPTEL | Problem Solving Through Programming In C | Week 3 : Assignment 3 | Answers with Proof | Jan 2024 Quiz SolutionsJoin our Telegram Channel : https://te...

  11. Computer Science and Engineering

    Week 1. Lecture 1 : Introduction. Lecture 2 : Idea of Algorithms. Lecture 3 : Flow Chart and Pseudocode. Lecture 4 : Introduction to Programming Language Concepts. Lecture 5 : Variables and Memory. Week 2. Lecture 6 : Types of Software and Compilers. Lecture 7 : Introduction to C Programming Language.

  12. Introduction to programming in C

    ABOUT THE COURSE : This is a course in programming in C. No prior programming experience is assumed; however, mathematical maturity at the level of a second year science or engineering undergraduate is assumed. We emphasize solving problems using the language, and introduce standard programming techniques like alternation, iteration and recursion.

  13. NPTEL Introduction To Programming In C Assignment 2 Answers

    These are Introduction to Programming in C Assignment 2 Answers. Question 1. Parity Checker. You are given a sequence of bits (1's and 0's). The sequence is said to have even parity if and only if the number of 1's in the sequence if even. Write a C program to that outputs 1 if the sequence has even parity and 0 otherwise.

  14. GitHub

    All the assignment work for the NPTEL Introduction to C with source code. - iamibi/NPTEL-Introduction-to-C-Programming

  15. Introduction To Programming In C NPTEL Assignment 3 Answers

    Introduction To Programming In C NPTEL Assignment 3 Answers 2022:-. Q1. Write a C function to find the kth occurrence of an odd integer in a sequence of non-negative integers, and then call your function from main. Code:-. #include<stdio.h>.

  16. Introduction to programming in C

    The Assignment -3 of Week-3 Solution for the course "Introduction to programming in C" has been released in the portal. Please go through the solution and in case of any doubt post your queries in the forum.

  17. NPTEL Assignment Answers 2024 with Solutions (July-Dec)

    By following these steps, you can easily locate and use the assignment answers and solutions for the NPTEL courses provided in this repository. We hope this resource assists you in your studies! Note: This repository is intended for educational purposes only.

  18. Week 3 Introduction to Programming in C Assignment Solution|2023|NPTEL

    Presentation error don't matter in output I'm already have a certificate of Introduction to programming in C so and that time i also get the presentation err...

  19. Problem Solving Through Programming In C NPTEL Week 3 Solutions

    Problem Solving Through Programming In C NPTEL Week 3 assignment answers. Q1. Which of the following statement is correct? a) Operator precedence determines which operator is performed first in an expression with more than one operator with different precedence. Associativity is used when two operators of same precedence appear in an expression ...

  20. Introduction To Programming In C

    Learners enrolled: 44925. This is a course in programming in C. No prior programming experience is assumed; however, mathematical maturity at the level of a second year science or engineering undergraduate is assumed. We emphasize solving problems using the language, and introduce standard programming techniques like alternation, iteration and ...

  21. Problem Solving Through Programming In C

    Learners enrolled: 41778. ABOUT THE COURSE : This course is aimed at enabling the students to. Formulate simple algorithms for arithmetic and logical problems. Translate the algorithms to programs (in C language) Test and execute the programs and correct syntax and logical errors. Implement conditional branching, iteration and recursion.

  22. Introduction To Programming In C

    Introduction To Programming In C | Week 6 : Assignment 6 | Answers | Jan-2024 | NPTEL | SwayamJoin Telegram Group on this course : https://telegram.me/NptelD...

Course Status : Completed
Course Type : Elective
Duration : 12 weeks
Category :
Credit Points : 3
Undergraduate/Postgraduate
Start Date : 23 Jan 2023
End Date : 14 Apr 2023
Enrollment Ends : 06 Feb 2023
Exam Registration Ends : 17 Mar 2023
Exam Date : 29 Apr 2023 IST