• __Introduction to C
  • __Basics of OOP
  • __History Of Java
  • __Java and Its Applications
  • __Features of Java
  • __Power of Python
  • Nptel Answers
  • _JOC using Python
  • _DSA using java
  • _Problem Solving Through Programming In C
  • _Ethical Hacking
  • _Cyber Security and Privacy
  • _Privacy And Security In Online Social Media
  • _DSA Using Python
  • _Google Cloud Computing Foundations
  • _Introduction to Internet of Things
  • _Cloud Computing
  • _Data Analytics with Python
  • _Data Science For Engineers
  • _Python for Data Science
  • _Programming in Modern C++
  • _Java Programs
  • HTML CSS PROJECTS

Problem Solving Through Programming In C Week 6 Solutions

Problem solving through programming in c | nptel 2023 | week 6 assignment solutions, about the course :.

  • Translate the algorithms to programs (in C language)
  • Formulate simple algorithms for arithmetic and logical problems
  • 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

Week 6 Programming Assignment 1  :-

Week 6 programming assignment 2  :-, week 6 programming assignment 3  :-, join us :         .

  • Joy of Computing using Python 27
  • html-css-projects 14
  • DSA USING PYTHON 11
  • Ethical hacking 10
  • Problem Solving Through Programming In C 10
  • Cyber Security and Privacy 9
  • DSA USING JAVA 9
  • Java Programs 6
  • Cloud Computing 4
  • Data Analytics with Python 4
  • Python for Data Science 4
  • Did you know 3

Most Recent

Most popular.

The Joy of Computing Using Python Week 4 Solutions 2024

The Joy of Computing Using Python Week 4 Solutions 2024

Programming Data Structures And algorithms using Python Week 5 Solutions 2024

Programming Data Structures And algorithms using Python Week 5 Solutions 2024

The Joy of Computing Using Python Week 3 Solutions 2024

The Joy of Computing Using Python Week 3 Solutions 2024

Menu footer widget.

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.

problem solving through programming in c week 6

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

problem solving through programming in c week 6

DOWNLOAD APP

problem solving through programming in c week 6

SWAYAM SUPPORT

Please choose the SWAYAM National Coordinator for support. * :

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

kg-0805/NPTEL-Problem-Solving-through-programming-in-C

Folders and files, repository files navigation, nptel - problem solving through programming in c.

Course layout

  • Week 1 : Introduction to Problem Solving through programs, Flowcharts/Pseudo codes, the compilation process, Syntax and Semantic errors, Variables and Data Types
  • Week 2 : Arithmetic expressions, Relational Operations, Logical expressions; Introduction to Conditional Branching
  • Week 3 : Conditional Branching and Iterative Loops
  • Week 4 : Arranging things : Arrays
  • Week 5 : 2-D arrays, Character Arrays and Strings
  • Week 6 : Basic Algorithms including Numerical Algorithms
  • Week 7 : Functions and Parameter Passing by Value
  • Week 8 : Passing Arrays to Functions, Call by Reference
  • Week 9 : Recursion
  • Week 10 : Structures and Pointers
  • Week 11 : Self-Referential Structures and Introduction to Lists
  • Week 12 : Advanced Topics

Course Taken Between

January 2020 to April 2020

You Can also suggest edits in the code if you feel to , just start a pull request.

[Week 1-10] NPTEL Problem Solving Through Programming In C Assignment Answers 2023

[Week 1] NPTEL Problem Solving Through Programming In C Assignment Answers 2023

NPTEL Problem Solving Through Programming In C Assignment Solutions

Table of Contents

NPTEL Problem Solving Through Programming In C Week 10 Assignment Answers 2023

1. Bisection method is used to find a Derivative of a function at a given point b) Numerical integration of a function w it hin a range c) The root of a function d) None of the above

2. In _______the search starts at the beginning of the list and checks every element in the list a) Linear search b) Binary search c) Hash search d Binary tree search

3. What is the worst-case time complex i ty of Linear Search? a) O(1) b) O(logn c) O(n) d) 0(m?)

All Answers are locked.

All Answers are uploaded but locked by owner. Sign Up & Buy our Plans or Login to unlock these Answers.

NPTEL Problem Solving Through Programming In C Week 9 Assignment Answers 2023

1. What is the worst case complexity of selection sort? a) O(nlogn) b) O(logn) c) O(n) d) O(n2)

2. What is the best case and worst case complexity of ordered linear search? a) O(nlogn), O(logn) b) O(logn), O(nlogn) c) O(n), O(1) d) O(1), O(n)

3. Given an array arr = {12, 34, 47, 62, 85, 92, 95, 99,105} and key = 34; what are the mid values (corresponding array elements) generated in the first and second iterations? a) 85 and 12 b) 85 and 34 c) 62 and 34 d) 62 and 47

4. When the Binary search is best applied to an array? a) For very large size array b) When the array is sorted c) When the array elements are mixed data type d) When the array is unsorted

5. Consider the array A[ ]= {5,4,9,1,3} apply the insertion sort to sort the array. Consider the cost associated with each sort is 25 rupees, what is the total cost of the insertion sort for sorting the entire array? a) 25 b) 50 c) 75 d) 100

6. Select the code snippet which performs unordered linear search iteratively?

W09Q6a

8. Consider an array of elements arr[5]= {5,4,3,2,1}, what are the steps of insertions done while doing insertion sort in the array.

W09Q8a

a) 0 b) 1 c) 01 d) None of the above

W09Q10

a) 10 10 b) 10 50 c) 50 50 d) Compilation error

NPTEL Problem Solving Through Programming In C Week 8 Assignment Answers 2023

1. A function prototype is used for a) Declaring the function logic b) Calling the function f r om the main body c) Telling the compiler, the kind of arguments used in the function d) Telling the user for proper use of syntax while calling the function

2. What is the default return type if it is not specified in function definition? a) void b) integer c) do u ble d) float

W08Q03

a) 70 b) Garbage value c) Compi l ation error d) None

W08Q04

a) Infinite times b) 32767 c) 655 3 5 d) Till stack overflows

W08Q05

a) Only once b) Zero times c) Infinite ti m es d) Compilation error

W08Q06B

a) 8 ,4, 0, 2, 14 b) 8, 4, 0, 2, 0 c) 2, 0, 4, 8, 14 d) 2, 0, 4, 8, 0

W08Q08

a) 55 b) 45 c) 6 6 d) 10

W08Q09

a) Maximum of a, b b) Positive difference between a and b c) Sum of a and b d) Minimum of a and b

W08Q10

NPTEL Problem Solving Through Programming In C Week 7 Assignment Answers 2023

1. Which of the following statements are correct? 1) A string is a collection of characters terminated by ‘\0’. 2) The format specifier %s is used to print a string. 3) The length of the string can be obtained by strlen(). 4) strcon() function is used to join two strings.

2. The right method of initializing a 2D array is a) int abc[2][2] = {1, 2, 3 ,4 } b) int abc[ ][ ] = {1, 2, 3 ,4 } c) int abc[2][ ] = {1, 2, 3 ,4 } d) all of the above

3. Array passed as an argument to a function is interpreted as a) Address of all the elements in an array b) Value of the first element of the array c) Address of the first element of the array d) Number of element of the array

W07Q04

a) fellows b) h c) fello d) Compiler error

W07Q06

a) n1=18, n2=17 b) n1=18, n2=18 c) n1=17, n1=17 d) n1=17, n2=18

W07Q07

a) gnirts b) gnirt c) string d) no output is printed

8. If the starting address of an float array Arr[10][10] is 2000, what would be the memory address of the element Arr[5][6]? (float takes 4 bytes of memory) a) 2268 b) 2120 c) 2224 d) 2144

9. In C, the placement of elements of a two dimensional array is a) Row wise b) Column wise c) Diagonal wise d) Bottom to top wise

W07Q10

NPTEL Problem Solving Through Programming In C Week 6 Programming Assignment 2023

Week 6 : programming assignment 1.

Q1. Write a C Program to Count Number of Uppercase and Lowercase Letters in a given string. The given string may be a word or a sentence.

Week 6 : Programming Assignment 2

image 35

Week 6 : Programming Assignment 3

image 36

Week 6 : Programming Assignment 4

4. Write a C program to print Largest and Smallest Word from a given sentence. If there are two or more words of same length, then the first one is considered. A single letter in the sentence is also consider as a word.

NPTEL Problem Solving Through Programming In C Week 6 Assignment Answers 2023

1. What is an array in C? a) A collection of similar data elements with the same data type. b) A built-in function that performs mathematical calculations. c) A ke y word used for declaring variables. d) A data type used to store characters only.

2. What is the index of the first element in an array? a) 0 b) 1 c) -1 d) The index can vary depending on the array size.

3. Which loop is commonly used to iterate through all elements of an array in C? a) for loop b) while loop c) do-w h ile loop d) switch loop

4. An integer array of 15 elements is declared in a C program. The memory location of the first byte of the array is 2000. What will be the location of the 13th element of the array? Assume int takes 2 bytes of memory. a) 2013 b) 2024 c) 2 0 26 d) 2030

W06Q05

Option (a) Option (b) Opti o n (c) Option (d)

W06Q06

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

7. What is be the output?

W06Q07

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

W06Q08

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

W06Q09

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

Write a C Program to find Largest Element of an Integer Array. Here the number of elements in the array ‘n’ and t he elements of the array is read from the test data. Use the printf statement given below to print the largest element.

printf(“Largest element = %d”, largest);

Write a C Program to print the array elements in reverse order (Not reverse sorted order. Just the last element will become first element, second last element will become second element and so on) Here the size of the array, ‘n’ and the array elements is a c cepted from the test case data. The last part i.e. printing the array is also written. You have to complete the program so that it prints in the reverse order.

Write a C program to read Two One Dimensional Arrays of sa m e data type (integer type) and merge them into another One Dimensional Array of same type.

Write a C Program to delete duplicate elements from an array of i n tegers.

NPTEL Problem Solving Through Programming In C Week 5 Assignment Answers 2023

1. The statement that transfers control to the beginning of the loop is called a) break b) continue c) goto d) None of the above

2. In C three way transfer of control is possible using a) Unary operator b) Logical operator c) Ternary operator d) None

W05Q03

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

W05Q04A

a) 5 b) 10 c) No output d) Compilation error

W05Q05

a) True b) False c) Both ‘True’ and ‘False’ d) Compilation error

W05Q06

a) After loop x=1 b) 1 After loop x=2 c) 1 2 3 4 5 6 7 8 9 10 d) No output

W05Q07

a) Error b) I love C – will be printed 3 times c) I love C – will be printed 6 times d) I love C – will be printed 5 times

W05Q08

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

W05Q09

a) n!=0 b) n==0 c) n%10==0 d) n/10==0

W05Q10

a) 8,10 b) 8,9 c) 6, 9 d) 7, 10

NPTEL Problem Solving Through Programming In C Week 5 Programming Assignment 2023

Week 5 : programming assignment 1.

Q1. Write a C program to check whether a given number (N) is a perfect number or not. [Perfect Number – A perfect number is a positive integer number which is equals to the sum of its proper positive divisors. For example 6 is a perfect number because its proper divisors are 1, 2, 3 and it’s sum is equals to 6.]

Week 5 : Programming Assignment 2

Q2. Write a C program to count total number of digits of an Integer number (N).

Week 5 : Programming Assignment 3

Q3. Write a C program to check whether the given number(N) can be expressed as Power of Two (2) or not. For example 8 can be expressed as 2^3.

Week 5 : Programming Assignment 4

Q4. Write a C program to find sum of following series where the value of N is taken as input

1+ 1/2 + 1/3 + 1/4 + 1/5 + .. 1/N

NPTEL Problem Solving Through Programming In C Week 3 Assignment Answers 2023

1. 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 opera t ors of same precedence appear in an expression c) Operator precedence and associativity are same. d) None of the above

2. Find the output of the following C code?

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

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

a) 0 b) 3 c) 4 d) Compilatio n error

4. Find the output of the following C code?

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

5. What will be the o utput?

W03Q05

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

6. What is the outpu t of the following program?

W03Q06

a) Progra m ming on C 0 b) NPTEL 0 c) NPTEL 3 d) Compilation error

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

W03Q07

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

8. What will be the ou t put?

W03Q08

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

9. What will be the output

W03Q09

a) TRUE b) FALS E c) Syntax Error d) Compilation Error

10. What is the output of the following C c o de?

W03Q10

a) 10 b) 11 c) 20 d) Compi le r error

NPTEL Problem Solving Through Programming In C Week 2 Assignment Answers 2023

1. Which of the following is not a C variable? a) Count123 b) Count_123 c) Count@123 d) X_123_Count

2. A function a) is a block of statements to perform some specific task b) is a fundamental modular unit to perform some task c) has a name and can be used multiple times d) All the above options are true

3. The executio n of any C program is a) Sequential b) Parallel c) Multi-threading d) None of these

4. Syntax error occurs when a) The rules of grammar of the programming language is violated b) The statements in the program have no meaning c) The program gives wrong or undesired output d) Some illegal operation (e.g. divide by zero) is performed

5. If integer needs two bytes of storage, then the minimum value of a signed integer in C would be a) -65535 b) 0 c) -32,767 d) -32,768

6. What will be the output of the program given below?

W02Q06

a) 9 b) 0 c) 1001 d) Compilation Error

7. What is the Output?

W02Q07

a) 8.00 b) 4.00 c) 0.00 d) 16.00

W02Q08

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

9. What will be the output?

W02Q09

a) 1 3 b) 3 1 c) 1 1 d) 3 3

10. When executed the following code will print_______.

W02Q10

NPTEL Problem Solving Through Programming In C Week 1 Assignment Answers 2023

1. What type of device is computer webcam? a) Memory b) Output c) Storag e d) Input

2. Set of instructions to be provided to an electronic machine to perform a task is called

a) Programming b) Processing c) Computing d) Compiling

3. Which of the following language does the computer understand?

a) Computer understands only C Language b) Computer understands only Assembly Language c) Computer understands only Binary Language d) Computer understands only BASIC

4. Which of the following is known as the language m ade up of binary-coded instructions?

a) High level b) BASIC c) C d) Machine

5. Algorithm is-

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

6. A 2D diagram to represent the steps to be followed to solve a problem is known as

a) Flow-chart b) Pseudo-code c) Both (a) and (b) d) None of these

7. Which one of the following statement is the most appropriate?

a) 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 on. b) Flowchart is diagrammatic representation of the algorithm. Pseudo code is just another name of algorithm. c) Pseudo code is another name of programming. Whe r eas in flowchart is diagrammatic representation of algorithm. d) Flowchart is basically a diagrammatic representation of the algorithm. Whereas in pseudo code normal English language is translated into the programming languages to be worked on.

W01Q08

10. The section of th e CPU that selects, interprets and sees to the execution of program instructions

a) Memory b) Register Unit c) Control Unit d) ALU

Share your love

Related posts.

NPTEL Soft Skills Week 1 Assignment Answers 2023

[Week 1-11] NPTEL Soft Skills Assignment Answers 2023

NPTEL Stress Management Assignment Answer

NPTEL Stress Management Assignment Answer (week 1-2) 2023

NPTEL Natural Language Processing Assignment Answers

[Week 1-12] NPTEL Natural Language Processing Assignment Answers 2023

[week 1] nptel data science for engineers assignment answers 2024, [week 1] nptel deep learning – iit ropar assignment answers 2024.

NPTEL Ethics In Engineering Practice Assignment Answers 2023

[Week 1] NPTEL Ethics In Engineering Practice Assignment Answers 2023

2 thoughts on “[week 1-10] nptel problem solving through programming in c assignment answers 2023”.

Pingback: NPTEL Problem Solving Through Programming In C Week 6 Assignment Answers 2023 » UNIQUE JANKARI

Pingback: NPTEL Problem Solving Through Programming In C Week 6 Assignment Answers 2023 - DBC Itanagar

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.

NPTEL Problem Solving Through Programming In C Assignment 6 Answers

NPTEL Problem Solving Through Programming In C Assignment 6 Answers 2022 :- In this post, We have provided answers to NPTEL Problem Solving Through Programming In C Assignment 6 week 6. We provided answers here only for reference. we urge you to do your assignment with your own knowledge.

About Problem Solving Through Programming In C

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, and Implement conditional branching, iteration and recursion, Decompose a problem into functions and synthesize a complete program using the divide and conquer approach. CRITERIA TO GET A CERTIFICATE This course will have an unproctored programming exam also apart from the Proctored exam, please check the announcement section for the date and time. The programming exam will have a weightage of 25% towards the Final score. Final score = Assignment score + Unproctored programming exam score + Proctored Exam score Assignment score = 25% of the 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 YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE ASSIGNMENT SCORE >=10/25 AND UNPROCTORED PROGRAMMING EXAM SCORE >=10/25 AND PROCTORED EXAM SCORE >= 20/50. If any one of the 3 criteria is not met, you will not be eligible for the certificate even if the Final score >= 40/100.

NPTEL Problem Solving Through Programming In C Assignment 6 Answers 2022

1. What is the right way to initialise an array in C? a) int ar{}= {1,2, 5,6,93 b) int ar[5]= {1,2, 5,6,9} c) int ar (5} = {1,2, 5,6,93 d) int ar)={1,2, 5,6.9

2. An integer array of dimension 10 is declared in a C program. The memory location of the first byte of the array is 1000. What will be the location of the 9th element of the array? (Assume integer takes 4 bytes of memory and the element stored at 1000 is identified as 1st element) a) 1028 b) 1032 c) 1024 d) 1036

Answers will be Uploaded Shortly and it will be Notified on Telegram, So  JOIN NOW

NPTEL Problem Solving Through Programming In C Assignment 6 Answers

3. What will be the output after execution of the program?

4. Which of the statements is/are correct? a) An array may contain more than one element b) All elements of array have to be of same data type c) The size of array has to be declared upfront d) All of the above

5. What actually gets passed when you pass an array as an argument to a function a) Value of elements in array b) First element of the array c) Base address of the array d) Address of the last element of array

6. Find the output of the following C program

👇 For Week 07 Assignment Answers 👇

7. What will be the output?

8. An array of the void data type a) can store any data-type b) only stores element of similar data type to first element c) acquires the data type with the highest precision in it d) It is not possible have an array of void data type

9. What will be the output?

10. How many ‘a’ will be printed when the following code is executed?

For More NPTEL Answers:-  CLICK HERE Join Our Telegram:-  CLICK HERE

NPTEL Problem Solving Through Programming In C Assignment 6 Answers 2021

Q1. What is the right way to initialize an array in C? 

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

(b) int arr[5]={1,2, 5,6,9} 

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

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

Ans:- (b) int arr[5]={1,2, 5,6,9} 

Q2. An integer array of size 10 is declared in a C program. The memory location of the first byte of the array is 1000. What will be the location of the 8th element of the array? (Assume integer takes 4 bytes of memory and the element stored at 1000 is identified as 1st element). 

a) 1028 

b) 1032 

c) 1024 

Ans:- For Answer Click Here

Q3. What will be the output after execution of the program?

(a) 1 

(b) 2 

(c) 3 

Ans:- (a) 1

Q4. Which of the statements is correct? 

(a) an array contains more than one element 

b) All elements of array has to be of same data type 

c) The size of array has to be declared upfront 

d) All of the above

Ans:- d) All of the above

NPTEL ALL WEEK ASSIGNMENT ANSWERS:-

  • Soft Skill Assignment   Answers
  • Project Management For Managers   Answer
  • Semiconducter Devices And Circuit Answer
  • Problem Solving Through Programming In C Answer

Q5. To compare two arrays, we can do it by using 

(a) comparison operator ‘==’ directly on arrays 

(b) ‘ switch case’ 

(c) ‘for’ loop 

(d) ‘ternary operator’ on arrays

Ans:- (c) ‘for’ loop 

  • NPTEL Problem solving through Programming In C Assignment 5 Answers

Q6. Find the output of the following C Program?

(a)      5, 4 

(b)      5, 5 

(c)      4, 4 

(d)      3, 4

Ans:- (c)      4, 4 

ALSO READ : NPTEL – Online Courses,Certificate And full details

Q7. What will be the output?

(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

Ans:- (a) i=5, j=5, k=2 

Q8. Array elements are stored in memory in the following order 

(a)       Contiguous 

(b)       Random 

(c)       Both contagious and random 

(d)       None of the above

Ans:- Ans:- For Answer Click Here

Q9. What will be the output?

Q10. How many ‘a’ will be printed when following code will be executed?

NPTEL Problem solving through Programming In C Assignment 6 Answers :-  We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

JOIN US ON YOUTUBE

  • SOFT SKILLS WEEK 7 ASSIGNMENT ANSWERS (NPTEL)
  • Project Management For Managers Assignment 6 Answers 2021
  • SOFT SKILLS WEEK 6 ASSIGNMENT ANSWERS (NPTEL)

Leave a Comment Cancel reply

You must be logged in to post a comment.

NPTEL

  • Announcements
  • Explore Courses

Problem solving through Programming In C

  • BE/BTech  in all disciplines
  • BCA/MCA/M. Sc
  • All IT Industries

65741 students have enrolled already!!

problem solving through programming in c week 6

In association with

problem solving through programming in c week 6

Spread the word.

Share the link on social media.

Confirm Password *

Username or email *

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Sorry, you do not have permission to ask a question, You must login to ask a question.

SIKSHAPATH Logo

SIKSHAPATH Latest Articles

Nptel problem solving through programming in c week 1 & 2 assignment answers 2023.

nptel problem solving through programming in c

Course Description :

NPTEL Problem Solving Through Programming In C course will teach you how to formulate, translate, and execute simple algorithms in C. You will learn how to use conditional branching, iteration, and recursion to solve problems. You will also learn how to decompose problems into functions and use arrays, pointers, and structures to formulate algorithms and programs. Finally, you will apply your programming skills to solve matrix addition and multiplication problems, searching and sorting problems, and simple numerical method problems.

This course is designed for students in BE/BTech, BCA/MCA, and M.Sc. programs. It is also relevant to anyone who wants to learn how to program in C. The course is supported by the IT industry, so you can be confident that the skills you learn will be in demand.

If you are ready to take your programming skills to the next level, then this course is for you. Join me on this journey and learn how to use C to solve real-world problems.

Here are some specific benefits of taking this course:

  • You will learn how to think like a programmer and solve problems in a systematic way.
  • You will gain hands-on experience with C programming and develop your problem-solving skills.
  • You will be able to apply your programming skills to solve real-world problems.
  • You will be prepared for a career in the IT industry.

I hope you will join me on this journey. Together, we will learn how to use C to solve problems and create amazing things.

Table of Contents

Nptel problem solving through programming in c week 2 assignment answers.

Answer: C. Count@ 123

1000+ students getting help from instant notifications, Join us on telegram.

Answer: D. All the above options are true

Answer: A. Sequential

Answer: A. The rules of grammar of the programming language is violated

Answer: D. -32,768

Answer: D. Compilation Error

Answer: D. 16.00

Answer: C. a=a+b; b=a-b; a=a-b;

Answer: B. 3 1

NPTEL Problem Solving Through Programming In C Week 1 Assignment Answers

Answer: Option D. Input

Answer: Option A. Programming

Answer: Option C. Computer understands only Binary Language

Answer: D. Machine

Answer: C. A process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.

Answer: Option A. Flow-chart

Answer: D. Flowchart is basically a diagrammatic representation of the algorithm. Whereas in pseudo code normal English language is translated into the programming languages to be worked on.

Answer: C. 1

Answer: D. Compilation error

Answer: C. Control Unit

Disclaimer: These answers are provided only for the purpose to help students to take references. This website does not claim any surety of 100% correct answers. So, this website urges you to complete your assignment yourself.

Related Posts

NPTEL Cloud Computing Assignment 3 Answers 2023

NPTEL Cloud Computing Assignment 3 Answers 2023

NPTEL Programming In Java Week 6 Assignment Answers 2023

NPTEL Programming In Java Week 6 Assignment Answers 2023

NPTEL Cloud Computing and Distributed Systems Assignment 6 Answers 2023

NPTEL Cloud Computing and Distributed Systems Assignment 6 Answers 2023

NPTEL Cloud Computing Assignment 5 Answers 2023

NPTEL Cloud Computing Assignment 5 Answers 2023

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

  • Thursday, February 22, 2024

Problem Solving Through Programming In C Week4 Assignment 2024

Problem-Solving-Through-Programming-In-C-Week4-Assignment-2024

NPTEL Problem Solving Through Programming In C Week4 All Programming Assignment Solutions | Swayam Jan 2024. With the growth of Information and Communication Technology, there is a need to develop large and complex software.

ABOUT THE COURSE:

  • 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

COURSE LAYOUT

  • Week 1 : Introduction to Problem Solving through programs, Flowcharts/Pseudo codes, the compilation process, Syntax and Semantic errors, Variables and Data Types
  • Week 2 :  Arithmetic expressions, Relational Operations, Logical expressions; Introduction to Conditional Branching
  • Week 3 :  Conditional Branching and Iterative Loops
  • Week 4 :  Arranging things : Arrays
  • Week 5 :  2-D arrays, Character Arrays and Strings 
  • Week 6 :  Basic Algorithms including Numerical Algorithms
  • Week 7 :  Functions and Parameter Passing by Value
  • Week 8 :  Passing Arrays to Functions, Call by Reference
  • Week 9 :  Recursion
  • Week 10 :  Structures and Pointers
  • Week 11 :  Self-Referential Structures and Introduction to Lists
  • Week 12 :  Advanced Topics

Once again, thanks for your interest in our online courses and certification. Happy learning!

Problem Solving through Programming In C Jan 2024

Practice Program – 1 : Write a C Program to calculates the area (floating point number with two decimal places) of a Circle given it’s radius (integer value). The value of Pi is 3.14

Practice Program – 2 :   Write a C program to check if a given Number is zero or Positive or Negative Using if…else statement.

Program-01 : Write a C Program to Find the Smallest Number among Three Numbers (integer values) using Nested IF-Else statement.

Program-02 : The length of three sides are taken as input. Write a C program to find whether a triangle can be formed or not. If not display “This Triangle is NOT possible.” If the triangle can be formed then check whether the triangle formed is equilateral, isosceles, scalene or a right-angled triangle. (If it is a right-angled triangle then only print Right-angle triangle do not print it as Scalene Triangle).

Program-03 : Write a program to find the factorial of a given number using while loop

Program-04 : Write a Program to find the sum of all even numbers from 1 to N where the value of N is taken as input. [For example when N is 10 then the sum is 2+4+6+8+10 = 30]

Quizermania Logo

Problem Solving Through Programming In C NPTEL Week 7 Solutions

This set of MCQ(multiple choice questions) focuses on the  Problem Solving Through Programming In C Week 7 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 Week 7 answers ” contains 10 questions.

Now, start attempting the quiz.

Problem Solving Through Programming In C Week 7 answers

Q1. Which of the following statements are correct? 1) A string is a collection of characters terminated by ‘\0’. 2) The format specifier %s is used to print a string. 3) The length of the string can be obtained by strlen(). 4) strcon() function is used to join two strings.

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

Answer: b) 1, 2, 3

Q2. The right method of initializing a 2D array is

a) int abc[2][2] = {1, 2, 3, 4} b) int abc[][] = {1, 2, 3, 4} c) int abc[2][] = {1, 2, 3, 4} d) All of the above

Answer: a) int abc[2][2] = {1, 2, 3, 4}

Q3. Array passed as an argument to a function is interpreted as

a) Address of all the elements in an array b) Value of the first element of the array c) Address of the first element of the array d) Number of element of the array

Answer: c) Address of the first element of the array

Q4. What will be the outupt?

Q5. Find the output of the following C program.

a) fellows b) h c) fello d) Compiler error

Answer: a) fellows

Q6. What will be the output?

a) n1=18, n2=17 b) n1=18, n2=18 c) n1=17, n2=17 d) n1=17, n2=18

Answer: a) n1=18, n2=17

Q7. Consider the following C program segment:

a) gnirts b) gnirt c) string d) no output is printed

Answer: d) no output is printed

Q8. If the starting address of an float array Arr[10][10] is 2000, what would be the memory address of the element Arr[5][6]? (float takes 4 bytes of memory)

a) 2268 b) 2120 c) 2224 d) 2144

Answer: c) 2224

Q9. In C, the placement of elements of a two dimensional array is

a) Row wise b) Column wise c) Diagonal wise d) Bottom to top wise

Answer: a) Row wise

Q10. What will be the value of ‘i’ after the execution of the C code fragment given below?

Q1. The searching operation in an array is done using

a) Key and index b) Only key c) Only index d) None of these

Q2. Find the output of the following C program

Q3. What will be the output?

Q4. Consider the following C program segment:

Q5. What will be the value of ‘i’ after the execution of the C code given below?

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

Q6. If the starting address of an float array Arr[10][10] is 2000, what would be the memory address of the element Arr[5][6]? (float takes 4 bytes of memory)

Q7. In C, the placement of elements of a two dimensional array is

Q8. What will be the output?

Answer: 321004

Q9. What will be the output?

a) the string is empty b) The string is not empty c) Error d) None of the above

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

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

Previous Year – Problem Solving Through Programming In C Week 7 answers

Q1. Which of the following statement/s are false? I. Array elements are stored in memory in contiguous locations. II. An integer array always terminates with ‘\0’ (NULL).

a) I b) II c) Both I and II d) None

Answer: b) II

Q2. If two strings are identical, then strcmp() function returns

a) 1 b) 0 c) -1 d) None of these

Answer: b) 0

Q3. Which of the following function is more appropriate for reading in a multi word string?

a) scanf() b) gets() c) printf() d) puts()

Answer: b) gets()

Q4. What will be printed after execution of the following code? #include<stdio.h> int main() { int a[20] = {10, 20, 30, 40, 50, 60}; printf(“%d”, 3[a]); return 0; }

Q5. What will be the output of the program?

a) Array b) Array String c) Array\0String d) Compilation error

Answer: a) Array

a) Programming b) Language c) ProgrammingLanguage d) LanguageProgramming

Answer: c) ProgrammingLanguage

Q7. What will be the output?

a) n1= 8, n2=8 b) n1=9, n2=9 c) n1=8, n2=9 d) n1=9, n2=8

Answer: d) n1=9, n2=8

Answer: 720

a) assignment b) tnemngissa c) nothing will be printed d) tttttttttt

Answer: c) nothing will be printed

Q10. What will be the output?

a) Two strings are equal b) Two strings are not equal c) Would not print anything d) Compilation error

Answer: c) Would not print anything

<< Prev – An Introduction to Programming Through C Week 6 Solutions

>> Next- An Introduction to Programming Through C Week 8 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), 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.

IMAGES

  1. Nptel : Problem solving through programming in C week 6 Quiz assignment

    problem solving through programming in c week 6

  2. NPTEL Problem Solving Through Programming In C WEEK 6 Assignment 2023

    problem solving through programming in c week 6

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

    problem solving through programming in c week 6

  4. Problem solving through Programming In C

    problem solving through programming in c week 6

  5. Problem solving through Programming In C Week 6 Programming Quiz Assignment Solutions

    problem solving through programming in c week 6

  6. NPTEL Problem Solving Through Programming in C

    problem solving through programming in c week 6

VIDEO

  1. Programming in "C"

  2. Problem Solving Through Programming In C week 4 nptel

  3. NPTEL Problem Solving Through Programming In C Week 4 Programming Assignment 1 2 3 and 4

  4. NPTEL Problem Solving through Programming In C WEEK6 Programming Assignment Solutions

  5. NPTEL Problem Solving Through Programming In C Week-10 Quiz Assignment Solution

  6. NPTEL Problem Solving through Programming In C WEEK10 Programming Assignment Solutions

COMMENTS

  1. Problem solving through Programming In C

    0:00 / 3:12 Problem solving through Programming In C | NPTEL | Week 6 Assignment 6 Solution | Jan 2023 NPTEL ANSWERS 9.24K subscribers Join Subscribe Subscribed 3.5K views 10 months...

  2. Problem Solving Through Programming In C Week 6 Solutions

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

  3. Problem solving through Programming In C

    This course is aimed at enabling the students toFormulate simple algorithms for arithmetic and logical problemsTranslate the algorithms to programs (in C lan...

  4. NPTEL Problem Solving Through Programming In C WEEK 6 Assignment 2023

    Week 6 : Basic Algorithms including Numerical Algorithms Week 7 : Functions and Parameter Passing by Value Week 8 : Passing Arrays to Functions, Call by Reference Week 9 : Recursion Week 10 : Structures and Pointers Week 11 : Self-Referential Structures and Introduction to Lists Week 12 : Advanced Topics

  5. NPTEL Problem Solving through Programming In C WEEK6 ...

    NPTEL Problem Solving through Programming In C WEEK6 Programming Assignment Solutions | Swayam 2023 Techies Talk 21.1K subscribers Join Subscribe 2.7K views 4 weeks ago 1 product...

  6. Problem Solving Through Programming In C

    Problem Solving Through Programming In C By Prof. Anupam Basu | IIT Kharagpur Learners enrolled: 29073 Computer Science and Engineering Undergraduate/Postgraduate Enrollment Ends : 29 Oct 2022 IST Note: This exam date is subjected to change based on seat availability. You can check final exam date on your hall ticket.

  7. PDF Assignment 6

    03/07/2020 Problem solving through Programming In C - - Unit 8 - Week 6 https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=7&assessment=124 3/6

  8. NPTEL :: Computer Science and Engineering

    NOC:Problem Solving through Programming in C (Video) Syllabus; Co-ordinated by : IIT Kharagpur; Available from : 2017-12-21; Lec : 1; Modules / Lectures. Intro Video; Week 1. ... noc20-cs06_Week_01_Assignment_01: noc20-cs06_Week_01_Assignment_01: noc20-cs06_Week_02_Assignment_01: noc20-cs06_Week_02_Assignment_01:

  9. kg-0805/NPTEL-Problem-Solving-through-programming-in-C

    NPTEL - Problem Solving through Programming in C. Course layout. Week 1 : Introduction to Problem Solving through programs, Flowcharts/Pseudo codes, the compilation process, Syntax and Semantic errors, Variables and Data Types. Week 2 : Arithmetic expressions, Relational Operations, Logical expressions; Introduction to Conditional Branching.

  10. [Week 1-10] NPTEL Problem Solving Through Programming In C Assignment

    Week 6 : Programming Assignment 1. Write a C Program to find Largest Element of an Integer Array. Here the number of elements in the array 'n' and t he elements of the array is read from the test data. Use the printf statement given below to print the largest element. printf ("Largest element = %d", largest);

  11. PDF Week-07 Program-02

    03/07/2020 Problem solving through Programming In C - Course https://onlinecourses.nptel.ac.in/noc20_cs06/progassignment?name=134 3/3 Week 11 Week 12

  12. NPTEL Problem Solving Through Programming In C Week 6 Assignment

    Week 6 : Programming Assignment 1. Write a C Program to find Largest Element of an Integer Array. Here the number of elements in the array 'n' and t he elements of the array is read from the test data. Use the printf statement given below to print the largest element.

  13. NPTEL Problem Solving Through Programming In C Assignment 6 Answers

    About Problem Solving Through Programming In C. 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, and Implement conditional branching, iteration and recursion, Decompose a problem into functions and synthesize ...

  14. Problem solving through Programming In C

    COURSE INSTRUCTOR. Anupam BasuCOURSE LAYOUT :Week 1:Introduction to Problem Solving through programs, Flowcharts/Pseudo codes,The compilation process, Syntax and Semantic errors, Variables and Data TypesWeek 2:Arithmetic expressions, Relational Operations, Logical expressions; Introduction to Conditional BranchingWeek 3:Conditional Branching ...

  15. NPTEL Problem Solving Through Programming In C Week 1 & 2 Assignment

    Answer: A. Sequential Answer: A. The rules of grammar of the programming language is violated Answer: D. -32,768 Answer: D. Compilation Error Answer: D. 16.00 Answer: C. a=a+b; b=a-b; a=a-b;

  16. PROBLEM SOLVING THROUGH PROGRAMMING IN C

    0:00 / 4:20 NPTEL - PROBLEM SOLVING THROUGH PROGRAMMING IN C - Week 6 - All Programming Assignments IotEasy 333 subscribers Subscribe 15 Share 117 views 3 weeks ago NPTEL - Problem...

  17. NPTEL Problem Solving Through Programming In C Week 6 Quiz ...

    NPTEL Problem Solving Through Programming In C Week 6 Quiz Assignment Solution | Jan 2023 - YouTube 0:00 / 5:08 NPTEL Problem Solving Through Programming In C Week 6 Quiz Assignment Solution...

  18. Problem Solving Through Programming in C Week 6 Programming ...

    Problem_solving_through_Programming_In_C_Week_6_Programming_Assignment - Read online for free.

  19. Problem Solving Through Programming In C Week4 Assignment 2024

    Week 6 : Basic Algorithms including Numerical Algorithms Week 7 : Functions and Parameter Passing by Value Week 8 : Passing Arrays to Functions, Call by Reference Week 9 : Recursion Week 10 : Structures and Pointers Week 11 : Self-Referential Structures and Introduction to Lists Week 12 : Advanced Topics

  20. Problem solving through Programming In C Week 6 Programming Quiz

    NPTEL Problem solving through Programming In C NPTEL WEEK 6 Programming Quiz Assignment Solutions | SwayamThis course is aimed at enabling the students to* F...

  21. Problem Solving Through Programming In C Week 7 Solutions

    1) A string is a collection of characters terminated by '\0'. 2) The format specifier %s is used to print a string. 3) The length of the string can be obtained by strlen (). 4) strcon () function is used to join two strings. a) 1, 2.

  22. NPTEL Problem solving through Programming In C WEEK 6 ...

    NPTEL Problem solving through Programming In C WEEK 6 Programming Assignment Solutions | Swayam 2022 - YouTube 0:00 / 8:31 🔊NPTEL Problem solving through Programming In C WEEK 6...

  23. Problem Solving Through Programming In C Week 3 Assignment ...

    Problem Solving Through Programming In C Week 3 Assignment Answers ||Jan 2024|| NPTEL1. Join telegram Channel -- https://t.me/doubttown 🚀 Welcome to Doubt ...