' src=

  • All Courses
  • Privacy Policy

' src=

Swayam Solver

Learn Programming & Prepare for NPTEL Exams... Swayam Solver is your one-stop destination for NPTEL exam preparation.

NPTEL Introduction to programming in C Programming Assignments Jan-2024 Swayam

NPTEL   »   Introduction to programming in C

Jan 2024 NPTEL course

Scroll Down for latest Assignments

Week 1: Assignment 1 - Question 1

Week 1: assignment 1 - question 2, week 1: assignment 1 - question 3, week 2: assignment 2 - question 1.

There is no Question 2 provided in the assignments from the NPTEL course team.

Week 2: Assignment 2 - Question 3

Count the number of 0's between the first and last 1, week 3: assignment 3 - question 1, week 3: assignment 3 - question 2, week 3: assignment 3 - question 3.

  • The first line contains a positive integer k.
  • In the second line, you will be given a sequence of numbers terminated with a -1.

Week 4: Assignment 4 - Question 1

Week 4: assignment 4 - question 2, week 4: assignment 4 - question 3, week 5: assignment 5 - question 1.

  •     f(7) = 22
  •     f(f(7)) = f(22) = 11
  •     f(f(f(7))) = f(11) = 34
  •     f(34) = 17
  •     f(17) = 52
  •     f(52) = 26
  •     f(26) = 13
  •     f(13) = 40
  •     f(40) = 20
  •     f(20) = 10
  •     f(10) = 5
  •     f(5) = 16
  •     f(16) = 8
  •     f(8) = 4
  •     f(4) = 2
  •     f(2) = 1

Week 5: Assignment 5 - Question 2

Week 6: assignment 6 - question 1, week 6: assignment 6 - question 2, week 6: assignment 6 - question 3, week 7: assignment 7 - question 1, week 7: assignment 7 - question 2.

Copy code button is not functional yet. Please select text and copy code.

Week 8: Assignment 8 - Question 1

Week 8: assignment 8 - question 2.

  • Create and return a node  e  with given  id  and value  val struct node * create_node(int id, int val);
  • Add an node  e  to the beginning of the  list.  Return the new list. struct node * append(struct node * list, struct node * e);
  • Search for a node  e  with  id  inside the  list . Return a pointer to  e   if found, else return NULL struct node * search(struct node * list, int id); 
  • Change the value of an element with given id (if found) ,  in the  list  to the new value  val.   void change_priority(struct node * list, int id, int val) ;
  • Extract the element in the  list  with maximum priority .  Return pointer to new list. struct node* extract_max(struct node * list);
  • A <id> <val> Add an node with id and val to the list, at the start of the list.
  • C <id> <val> Change the priority field of the element with id to val. If an element with this id is not found, do nothing.  
  • S <id> If an element with the id is in the list print the id and the priority and a newline.  Else, print the id and -1 and a newline.
  • M Extract the element in the  list  with maximum priority .  Print the id of the element as "Max: id" 
  • E End of input, exit from the program
  • The list is initially empty
  • Add an element 1 with value 10 list : (1,10) -> NULL
  • Add an element 2 with value 20 list : (2,20) -> (1,10) -> NULL
  • Search for element with id 2, print  2 20
  • Add an element 3 with value 30 list : (3,30) - > (2,20) -> (1,10) -> NULL
  • Extract Max prints Max: 3 list : (2,20) -> (1,10) -> NULL
  • Search for element with id 3, print  3 -1
  • Change priority of 2 to 30 list : (2,30) -> (1,10) -> NULL
  • Search for element with id 2, print  2 30 End of input

No comments:

Post a comment.

Keep your comments reader friendly. Be civil and respectful. No self-promotion or spam. Stick to the topic. Questions welcome.

Category: NPTEL

Programming in modern c++ | week 12, introduction to internet of things week 12, introduction to industry 4.0 and industrial internet of things | week 12, an introduction to artificial intelligence | week 12, the joy of computing using python | week 12, quantum mechanics 1 | week 12, programming in java | week 12, principles of management | week 12, leadership and team effectiveness | week 12, introduction to machine learning | week 12.

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

All the assignment work for the NPTEL Introduction to C with source code.

iamibi/NPTEL-Introduction-to-C-Programming

Folders and files, repository files navigation, nptel-introduction-to-c-programming.

Quizermania Logo

Introduction To Programming in C | NPTEL | Week 1 Assignment Solutions

This post will help you with the solutions of Introduction To Programming in C NPTEL 2022 Week 1 Assignment .

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. Given a problem, we pay attention to the following questions:

  • What is an algorithmic solution to the problem?
  • How do we translate the algorithm into C code?
  • How efficient is the code?
  • How maintainable is the code?

Course layout

Answers COMING SOON! Kindly Wait!

Week 0: Assignment answers Week 1:Β  Assignment answers Week 2: Assignment answers Week 3: Assignment answers Week 4: Assignment answers Week 5: Assignment answers Week 6: Assignment answers Week 7: Assignment answers Week 8: Assignment answers

Introduction To Programming in C NPTEL 2022 Week 1 Assignment Solutions

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.

Output ———————————- 1 if sum of first two inputs is greater than third input 0 otherwise

Week 1: Question 2

You are given two integers, say M and N. You have to output 1, if remainder is 1 when N divides M otherwise output 0 Input —————————- Two integers, say M and N. Output —————————————————You have to output 1 if remainder is 1 when M/N.You have to output 0 , otherwise.

Week 1: Question 3

Input : Triplet of three numbers (a,b,c) Output : 1 if they are either in strictly increasing (a>b>c) or decreasing (a<b<c) order               0, otherwise.

<< Prev- Introduction To Programming in C Week 0 Assignment Solutions

>> Next- Introduction To Programming in C Week 2 Assignment Solutions

NPTEL answers: Problem solving through programming in C

Programming in Java NPTEL week 1 quiz answers

NPTEL – Python for Data Science assignment solutions

Nptel – Deep Learning assignment solution s

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

Operating system fundamentals | nptel | week 0 assignment 0 solution, nptel operating system fundamentals week 1 assignment solutions, nptel operating system fundamentals week 10 answers, nptel operating system fundamentals week 2 assignment solutions, nptel operating system fundamentals week 3 assignment solutions, nptel operating system fundamentals week 4 assignment solutions, 2 thoughts on “introduction to programming in c | nptel | week 1 assignment solutions”.

' src=

Thank you sooo much Quizermania…!!!!

' src=

Welcome πŸ™‚ Keep visiting for other weeks assignment solutions.

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 subjected 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.

introduction to programming in c nptel assignment answers week 3

Prof. Anupam Basu

Course certificate.

  • Assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course. 
  • ( All assignments in a particular week will be counted towards final scoring - quizzes and programming assignments). 
  • Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam - out of 100
  • Proctored Exam score =50% of the proctored certification exam score out of 100

introduction to programming in c nptel assignment answers week 3

DOWNLOAD APP

introduction to programming in c nptel assignment answers week 3

SWAYAM SUPPORT

Please choose the SWAYAM National Coordinator for support. * :

IMAGES

  1. NPTEL Programming In Modern C++ Week 3 Assignment Answers 2023

    introduction to programming in c nptel assignment answers week 3

  2. NPTEL Programming In Modern C++ Week 3 Assignment Answers 2023

    introduction to programming in c nptel assignment answers week 3

  3. [Week 3] NPTEL Programming In Modern C++ Assignment Answers 2023

    introduction to programming in c nptel assignment answers week 3

  4. NPTEL Programming In Modern C++ Week 3 Assignment Answers 2023

    introduction to programming in c nptel assignment answers week 3

  5. NPTEL An Introduction to Programming Through C++ Assignment 3 Answers

    introduction to programming in c nptel assignment answers week 3

  6. Introduction To Programming In C NPTEL Assignment 3 Answers

    introduction to programming in c nptel assignment answers week 3

VIDEO

  1. Introduction to programming in C NPTEL 2024 Assignment 3 solutions

  2. Introduction to programming in C NPTEL (2024) Week 2 Assignment Answers

  3. NPTEL Problem Solving Through Programming In C Week-8 Quiz Assignment Solution

  4. NPTEL Problem Solving Through Programming In C Week-1 Quiz Assignment Solution

  5. NPTEL Problem solving through Programming In C WEEK 7 Programming Assignment Solutions

  6. NPTEL Problem Solving Through Programming In C Week 0 Quiz Assignment Solution

COMMENTS

  1. Introduction To Programming In C

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

  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. Introduction To Programming In C

    introduction To programming In C | Week 3 : Assignment 3 | Answers | Jan-2024 | NPTEL | SwayamFor Future Updates and Doubts :Join Telegram channel : https://...

  4. NPTEL Introduction to programming in C Programming Assignments Jan-2024

    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.

  5. Introduction to Programming in C

    Assignment score = 25% of average of best 6 assignments out of the total 8 assignments given in the course. ( All assignments in a particular week will be counted towards final scoring - quizzes and programming assignments). Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam - out of 100

  6. 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. ... Introduction To Programming In C - Week-3 content is live now !! ... Introduction to programming in C: Welcome to NPTEL Online Course ...

  7. nptel-solutions Β· GitHub Topics Β· GitHub

    NPTEL-The-Joy-of-Computing-using-Python with NOTES and Weekly quizes Answers. ... NPTEL Introduction to Programming in C Assignment 4 Question 3. ... Code Issues Pull requests NPTEL Introduction to Programming in C Assignment 4 Question 1. c nptel nptel-solutions nptel-assignments introduction-to-programming-in-c Updated ...

  8. 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 | ...

  9. Neilblaze/NPTEL-Problem-solving-through-Programming-In-C-Solutions

    Week-03 Program-04 ~ Write a C Program to find the Largest Number (integer) among Three Numbers (integers) using IF and Logical && operator Week-04 Problem-05 ~ Write a program to find whether a given character is a Vowel or consonant.

  10. 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.

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

    d) None of the above is correct. Show Answer. Problem Solving Through Programming In C NPTEL Week 3 assignment answers. 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.

  12. NPTEL Assignment Answers And Solutions Jan-Apr 2024 Progiez

    NPTEL Assignment Answers and solutions of all courses. Week 1,2,3, 4, 5, 6, 7 , 8, 9, 10 ,11, 12 Answers. By Swayam platform. Jan Apr 2024 by progiez

  13. GitHub

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

  14. 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...

  15. NPTEL :: Computer Science and Engineering

    NPTEL provides E-learning through online Web and Video courses various streams. ... noc20-cs06_Week_02_Assignment_01: noc20-cs06_Week_02_Assignment_01: ... Lecture 7 : Introduction to C Programming Language : Download: 8: Lecture 8 : Variables and Variable Types in C: Download: 9:

  16. PDF Assignment 1

    03/07/2020 Problem solving through Programming In C - - Unit 3 - Week 1 https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=2&assessment=93 3/4

  17. Introduction to programming in C

    Introduction To Programming In C: Feedback For Week 3 Released Dear Learners, Thank you for continuing with the course and hope you are enjoying it. We would like to know if the expectations with which you joined this course are being met and hence please do take 2 minutes to fill out our weekly feedback form.

  18. 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.

  19. 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...

  20. 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.

  21. 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 ...

  22. Problem Solving Through Programming In C

    Learners enrolled: 29073. 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.

  23. 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...