Sign Up

Sign In

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 Latest Articles

NPTEL Problem Solving Through Programming In C Assignment 2 Answers 2023

A banner of Problem Solving Through Programming In C With NPTEL written on top

Are you trying to solve your problem solving through programming in c week 2 assignment but, you have some doubts and you are here to clear your doubts?

This article will provide you all probable answers to the assignment.

Take inspiration from these answers and give your 100% to the assignment.

Problem Solving Through Programming In C Assignment 2 Answers

Q1. Which of the following statements is correct?
I. Keywords are those words whose meaning is already defined by Compiler.
II. Keywords cannot be used as variable names.
III. There are 32 keywords in C
IV. C keywords are also called reserved words.

Answer: d. All of the above

Instant notifications have boosted 1000+ students’ marks, Join us on telegram.


Q2. A function is

a) Block of statements to perform some specific task
b) It is a fundamental modular unit to perform some task
c) It has a name and can be used multiple times

d) All of the above

Answer : Option D


Q3. If an integer needs two bytes of storage, then the minimum value of an unsigned integer in C would be

Answer: b. 0


Q4. What is the output?

#include<stdio.h> 
#define fun(x) (x*x-2*x+9) 
int main()
{
float i; 
i=45/fun(2); 
printf("%.2f", i); 
return 0;
}

Answer: 5.00


Q5. What is the output?

#include <stdio.h> 
int main() {
float q = 'x';
printf("%.2f", q);
return 0;     
}

Answer: 120.00


Q6. Which of the following is a correct C Keyword?

Answer: d. default


Q7. Integers can be of the following type in C?

Answer: d. All the above


Q8. The operator % in C Language is called?

Answer: c. Modulus


Q9. What will be the correct value of ‘x’?
  int x = 5.6634 + 4.867;

Answer: a. x=10


Q10. What is a C Storage Class?

Answer: d. All the above.


TELEGRAM FOR NOTIFICATIONClick Here
Follow on Google News (in one click)Click Here

Disclaimer: It’s important to note that the answers provided here may not be 100% accurate. For this reason, we encourage you to complete your assignments independently and use these answers only as a reference.


Also Available:

Problem Solving Through Programming In C NPTEL Week 1 Assignment Answers

Related Posts

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.

Powered By
100% Free SEO Tools - Tool Kits PRO