NPTEL Problem solving through Programming In C Assignment 7 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 7 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 7 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 7 Answers 2022? :
NPTEL Problem solving through Programming In C Assignment 7 Answers 2022
Q1. Which of the following statements are correct?
i. A string is a collection of characters terminated by 10′.
ii. The format specifier %s is used to print a string.
iii. The length of the string can be obtained by strlen().
iv. The pointer cannot work on string
a. i, ii
b. i, ii, iii
c. ii, iv
d. i, iii
Answer By SciShowEngineer: b. i, ii, iii
For More Updates Follow Us on Telegram
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 By SciShowEngineer: a. int abc[2][2] = {1, 2, 3,4}
Q3. The 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 elements of the array
Answer By SciShowEngineer: c. Address of the first element of the array
Q4. What will be the output?
#include<stdio.h>
int main()
{
int disp[3][4]={{5,
6,8,2},{4,5,3,7}, {1,10,13,15}};
printf(“%d\n”,disp[2][3]); return 0;
}
Answer By SciShowEngineer: 15
Q5. What will be the output?
#include <stdio.h>
int main()
{
char str1[]=”Live and let live”;char str2[]={‘L’, ‘ï’, ‘v’, ‘e’, ‘ ‘, ‘a’, ‘n’, ‘d’, ‘ ‘, ‘l’, ‘e’, ‘t’,’ ‘,’l’, ‘i’, ‘v’, ‘e’};
int n1=
sizeof(str1)/sizeof(str1[0]);
int n2=
sizeof(str2)/sizeof(str2[0]);
printf(“n1=%d, n2=%d”,nl,n2);
return 0;
}
a. n1=18, n2=17
b. n1=18, n2=18
c. n1=17, n1=17
d) n1=17, n2=18
Answer By SciShowEngineer: a. n1=18, n2=17
Q6. What will be the value of ‘i’ after the execution of the C code fragment given below?
static char str1[]=”dills”;
static char str2[20];
static char str3[]=”daffo”;
int i;
i=strcmp(strcat(str3, strcpy(str2,str1)),”daffodills”);
Answer By SciShowEngineer: 0
Q7. Consider the following C program segment:
#include<stdio.h>
#include<string.h>
int main()
{
char p[20];
char s[]=”string”;
int length=strlen(s);
int i;
for(i=0;i<length;i++)
p[i]=s[length-i];
printf(“%s”,p);
return 0;
}
The output would be:
a. gnirts
b. gnirt
c. string
d. no output is printed
Answer By SciShowEngineer: d. no output is printed
Q8. What will be the output?
#include<stdio.h>
void swap(char*str1,char*str2)
{
char*temp=strl;
str1=str2;
str2 =temp;
}
int main()
{
char*str1=”Swayam”;
char*str2=”2022″;
swap(str1,str2);
printf(“str1 is %s, str2 is %s”,str1,str2);
return 0;
}
a. str1 is Swayam, str2 is 2022
b. str1 is 2022, str2 is Swayam
c. str1 is Swayam, str2 is Swayam
d. str1 is 2022, str2 is 2022
Answer By SciShowEngineer: a. str1 is Swayam, str2 is 2022
Q9. What would you put in place of “****” to print “Two”?
#include<stdio.h>
int main()
{
char arr[]=”TwentyTwo”;
printf(“%s”,****);
return 0;
}
a. arr
b. arr+5
c. arr+6
d. Not possible
Answer By SciShowEngineer: c. arr+6
Q10. 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 By SciShowEngineer: c. 2224
Problem solving through Programming In C Week 7 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.
Thank you, I’ve just been searching for info about this topic for a while and yours is the best I have discovered so far. But, what about the conclusion? Are you positive about the supply?
I don抰 even know the way I finished up right here, however I believed this put up was once great. I don’t understand who you are but definitely you’re going to a famous blogger in the event you are not already 😉 Cheers!