adplus-dvertising
NPTEL Problem solving through Programming In C Assignment 8 Answers 2022

NPTEL Problem solving through Programming In C Assignment 8 Answers 2022

NPTEL Problem solving through Programming In C Assignment 8 Answers 2022 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate as a Reference Purpose, It is Mandetory to Submit Your Weekly Assignment By Your Own Understand Level.

 

Are you looking for the Assignment Answers to NPTEL Problem solving through Programming In C Assignment 8 Answers 2022? If Yes You are in Our Great Place to Getting Your Solution, This Post Should be help you with the Assignment answer to the National Programme on Technology Enhanced Learning (NPTEL) Course “NPTEL Problem solving through Programming In C WeekSolution 2022

 

NPTEL Problem solving through Programming In C

From My Side :

This course is aimed at enabling the students to :
Formulate easy algorithms for arithmetic and investigative problems

Translate the algorithms to programs (in C language)

Test and kill the programs and truthful syntax and investigative errors

Implement conditional branching, iteration and recursion

Decompose a tortured into functions and synthesize a unmodified program using divide and conquer right of admission

Use arrays, pointers and structures to formulate algorithms and programs

Apply programming to solve matrix adding occurring together and multiplication problems and searching and sorting problems

Apply programming to solve easy numerical method problems, namely rot finding of doing, differentiation of do something and easy integration

This course is aimed at enabling the students to. Formulate easy algorithms for arithmetic and rational problems. Translate the algorithms to programs (in C language) Test and execute the programs and precise syntax and logical errors.

10 Steps to Solving a Programming Problem.
Read the difficulty at least three era (or however many makes you setting satisfying)
Work through the shackle manually taking into account at least three sets of sample data.
Simplify and optimize your steps.
Write pseudocode.
Translate pseudocode into code and debug.

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
  • 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
INTENDED AUDIENCE : BE/BTech  in all disciplines BCA/MCA/M. Sc
INDUSTRY SUPPORT   : All IT Industries

CRITERIA TO GET A CERTIFICATE

This course can have Associate in Nursing unproctored programming communication conjointly excluding the Proctored communication, please check announcement section for date and time. The programming communication can have a weightage of twenty fifth towards the ultimate score.

Final score = Assignment score + Unproctored programming exam score + Proctored Exam score
  • 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
YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF 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. 

CHECK HERE OTHERS NPTEL ASSIGNMENTS ANSWERS 

BELOW YOU CAN GET YOUR NPTEL Problem solving through Programming In C Assignment 8 Answers 2022? :

 

NPTEL Problem solving through Programming In C Assignment 8 Answers 2022

Q1. A function prototype is used for

a. Declaring the function logic
b. Calling the function from 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

Answer By SciShowEngineer: c. Telling the compiler, the kind of arguments used in the function

For Answer By SciShowEngineers Updates Follow Us on Telegram

Q2. What is the output of the following C program?

#include<stdio.h>
void foo(),f();
int main()
{
f();
}
void foo()
{
printf(“2”);
}
void f()
{
printf(“1”);
foo();
}
a. Compiler error as foo() is not declared in main
b. 1 2
c. 2 1
d. Compile-time error due to declaration of functions inside main

Answer By SciShowEngineer: b. 1 2

Q3. What is the error in the following program

#include<stdio.h>
int f(int a)
{
a>20? return(10): return(20);
}
int main()
{
int b;
b=f(20);
printf(“%d\n”,b);
}
a. Error: Return statement cannot be used with conditional operators
b. Error: Prototype declaration
c. Error: Two return statements cannot be used in any function
d. No error

Answer By SciShowEngineer: a. Error: Return statement cannot be used with conditional operators

Q4. What is the output of the C code given below?

#include<stdio.h>
float func(float age[]);

int main()
{
float result, age[]={23.4,55,22.6,3,40.5,18}; result=func(age); printf(“Result is=%0.2f”, result);
}

float func(float age[])
{
int i;
float result, sum=0.0;
for(i=0;i<6;++i) {
sum+=age[i];
}
result=(sum/6);
return result;
}
a. Result is=27.08
b. Result is=27.083334
c. Compiler error as result is declared twice
d. Error: Invalid prototype declaration

Answer By SciShowEngineer: a. Result is=27.08

Q5. How many times the function get() will be invoked if get(6) is called from the main function.

void get(int n)
{
if(n<1) return;
get(n-1);
get(n-3);
}
a. 6 times
b. 25 times
c. 12 times
d. Infinite times

Answer By SciShowEngineer: b. 25 times

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

#include<stdio.h>
int fun(int n)
{
int i,j, sum=0;
for(i=1;i<=n;i++) for(j=i;j<=i;j++)
sum=sum+j;
return(sum);
}
int main()
{
printf(“%d”,fun(5)); return 0;
}
a. 25
b. 5
c. 15
d. 10

Answer By SciShowEngineer: c. 15

Q7. What will be the output?

#include<stdio.h>
int main()
{
{
int a=70;
}
{
printf(“%d”,a);
}
return 0;
}
a. 70
b. Garbage value
c. Compilation error
d. None

Answer By SciShowEngineer: c. Compilation error

Q8. What will be the output?

#include<stdio.h>
int f(int n,int k)
{
if (n==0)
return 0;
else if(n%2)
return f(n/2,2*k)+k;
else return f(n/2,2*k) -k;
}
int main()
{
printf(“%d”,f(20,1));
return 0;
}

a. 5

b. 8

c. 9

d. 20

Answer By SciShowEngineer: c. 9

Q9. Consider the function

int fun(x: integer)
{
If x>100 then fun=x-10;
else
fun=fun(fun(x+11));
}

For the input x=95, the function will return
a. 89

 

b. 90

c. 91

d. 92

Answer By SciShowEngineer: c. 91

Q10. Consider the function

int func(int num)
{
int count=0;
while(num)
{
count++;
num>>=1;
}
return(count);
}
a. 9

b. 8

c. 0

d. 10

Answer By SciShowEngineer: a. 9

 

Problem solving through Programming In C Week 8 Assignments Solutions

 

Related Posts

3 thoughts on “NPTEL Problem solving through Programming In C Assignment 8 Answers 2022

  1. I’m curious to find out what blog platform you happen to be using? I’m experiencing some small security issues with my latest website and I would like to find something more safe. Do you have any solutions?

Leave a Reply

Your email address will not be published.