NPTEL Problem Solving Through Programming In C Assignment 7 Answers 2022:- In this post, We have provided answers to NPTEL Problem Solving Through Programming In C Assignment 7 week 7. 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 7 Answers 2022
1. 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).
Answer:- b
2. If two strings are identical, then stremp) function returns
Answer:- 0
Answers will be Uploaded Shortly and it will be Notified on Telegram, So JOIN NOW
3. 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
4. What will be printed after execution of the following code?
#include<stdio.h>
int main(0 int a[20] {10, 20, 30, 40,50,60 };
printf(“%d”, 3[al);
return 0;
Answer:- 40
5. What will be the output of the program?
#include<stdio.h>
int main ()
{
char str[]=”Arrayi0string”;
printf(“%s”, str);
return 0;
}
Answer:- a
6. What will be the output?
#include<stdio.h>
#include<string.h>
int main()
{
char str1[20] = “Programming”, str2[20] = “Language”;
printf(“6s”, strepy(str2, strcat(strl, str2));
return 0;
}
Answer:- c
👇For Week 08 Assignment Answers👇
7. What will be the output?
#include <stdio.h>
int main()
{
char str1[= "I-LOVE-C";
char str2]= {T,", L, 'O', V', E', ",'C};
int nl = sizeof(str1)/sizeof(str1|0);
int n2= sizeof(str2)/sizeof(str2|0);
printf"nl=%d, n2=9%d", nl, n2);
return 0;
}
Answer:- d
8. What will be the output?
#include <stdio.h>
int main()
{
int i, m=l, um|6] ={1,2,3,4,5,6};
for(i-0; i=5; it+)
m=m*num[i];
printf(" 6d", m);
return 0;
}
Answer:- 720
9. What will be the output?
#include<stdio.h>
#include<string.h>
int main()
{
char p[] = "assignment";
char t;
int i, j;
for(i-0, j=strlen(p); i<j: i++)
t p[i];
Plpli-i
Pj-i] = t;
printf("6s", p);
return 0;
}
Answer:- c
10. What will be the output?
#include<stdio.h>
#include string.h>
int main ()
{
char p[]= "welcome", q[="weleome";
if(p=q)
printf("Two strings are equal");
return 0;
}
Answer:- c
For More NPTEL Answers:- CLICK HERE
Join Our Telegram:- CLICK HERE