NPTEL Problem solving through Programming In C Assignment 6 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 6 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 Week 6 Solution 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.
- 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
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.
- 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
UNPROCTORED PROGRAMMING EXAM SCORE >=10/25 AND PROCTORED EXAM SCORE >= 20/50.
CHECK HERE OTHERS NPTEL ASSIGNMENTS ANSWERS
BELOW YOU CAN GET YOUR NPTEL Problem solving through Programming In C Assignment 6 Answers 2022? :
NPTEL Problem solving through Programming In C Assignment 6 Answers 2022
Q1. Which of the following is correct statement to access 5th element in a array arr] of size 50?
a. arr[5]
b. arr[4]
c. arr{5}
d. arr{4}
Answer By SciShowEngineer: b. arr[4]
Q2. Which statement is correct?
a. An index or subscript in array is a positive integer
b. An index or subscript in array is a positive or negative integer
c. An index or subscript in array is a real number
d. None of the above statement are correct
Answer By SciShowEngineer: a. An index or subscript in array is a positive integer
Q3. What is the output of the C program?
#include<stdio.h>
int main()
{
int a[3]={10,12,14};
a[1]=20;
int i=0;
while(i<3)
{
printf(“%d”,a[i]);
i++;
}
return 0;
}
a. 20 12 14
b. 10 20 14
c. 10 12 20
d. Compiler error
Answer By SciShowEngineer: b. 10 20 14
Q4. An integer array (An integer takes two bytes of memory) of size 15 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?
a. 2013
b. 2024
c. 2026
d. 2030
Answer By SciShowEngineer: b. 2024
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
Answer By SciShowEngineer: c. ‘for’ loop
Q6. How many ‘a’ will be printed when the following code is executed?
#include<stdio.h>
int main()
{
int i=0;
char c=’a’;
while(i<5)
{
i++;
switch(c)
{
case ‘a’:
printf(“%c”,c);
break;
}
printf(“a\n”);
return 0;
}
Answer By SciShowEngineer: 6
Q7. What is the output of the following C program?
#include<stdio.h>
int main()
{
int arr[2]={1,2,3,4,5};
printf(“%d”,arr[3]);
return 0;
}
a. 3
b. 4
c. No output
d. Compilation Error
Answer By SciShowEngineer: d. Compilation Error
Q8. What will be printed after execution of the following code?
#include<stdio.h>
int main()
{
int arr[10]={1,2,3,4,5};
printf(“%d”,arr[5]);
return 0;
}
a. Garbage Value
b. 0
c. 5
d. 6
Answer By SciShowEngineer: b. 0
Q9. What is the output of the following C program?
#include<stdio.h>
int main()
{
int i;
int arr[3]={1};
for(i=0;i<3;i++)
printf(“%d”,arr[i]);
return 0;
}
a. 1 followed by two garbage values
b. 1 1 1
c. 1 0 0
d. 0 0 0
Answer By SciShowEngineer: c. 1 0 0
Q10. What will be the output when the following code is executed.
#include<stdio.h>
int main()
{
int a[6]={1,2,3,4,5,6};
switch(sizeof(a))
{
case 1:
case 2:
case 3:
case 4:
case 5:
printf(“IIT KGP”);
break;
}
printf(“IIT MADRAS”);
return 0;
}
a. IIT KGP
b. IIT MADRAS
c. Compilation Error
d. Nothing is printed
Answer By SciShowEngineer: b. IIT MADRAS
Problem solving through Programming In C Week 6 Assignments Solutions
Yhaa You have done it but next? if YOU Want to your Others NPTEL Problem solving through Programming In C Assignments Answers Then Follow US HERE and Join Telegram.