Need help with this week’s assignment? Get detailed and trusted solutions for Problem Solving through Programming in C Week 1 NPTEL Assignment Answers. Our expert-curated answers help you solve your assignments faster while deepening your conceptual clarity.
✅ Subject: Problem Solving through Programming in C
📅 Week: 1
🎯 Session: NPTEL 2025 July-October
🔗 Course Link: Click Here
🔍 Reliability: Verified and expert-reviewed answers
📌 Trusted By: 5000+ Students
For complete and in-depth solutions to all weekly assignments, check out 👉 NPTEL Problem Solving through Programming in C Week 1 NPTEL Assignment Answers
🚀 Stay ahead in your NPTEL journey with fresh, updated solutions every week!
Problem Solving Through Programming In C Week 1 NPTEL Assignment Answers 2025
1. Which of the following is a valid C variable name?
a) 2variable
b) variable_2
c) variable-2
d) variable.2
Answer : For Answers Click Here
2. CPU comprises of
a) ALU- Arithmetic and Logic Unit
b) Registers
c) Control unit
d) All of the above
Answer :
3. Choose the correct statements from the following
i) In high-level language, testing and debugging a program is difficult than assembly language.
ii) C programs are highly portable on any type of operating system platform.
iii) A flowchart is a visual representation of the sequence of steps for solving a problem.
iv) The role of a compiler is to translate source program statements to decimal codes.
a) (i) and (ii)
b) (ii) and (iii)
c) (i), (ii), and (iii)
d) (ii), (iii), and (iv)
Answer :
4. Which of the following functions is used to read a single character from the keyboard in C?
a) printf()
b) scanf()
c) getchar()
d) puts()
Answer :
5. What is the purpose of the #include directive in a C program?
a) To include a library file.
b) To define a library file.
c) To define a constant.
d) To start the main function.
Answer : For Answers Click Here
6. An interpreter reads the source code of a program
a) one line at a time
b) two line at a time
c) complete program in one stroke
d) None of these
Answer :
7. In C programming, what is the best way to comment multiple lines?
a) Using // at the beginning of each line.
b) Enclosing the comments between /* and */.
c) Using # at the beginning of each line.
d) Enclosing the comments between { and }.
Answer :
8. Which of the following statements is true regarding variable declaration in C?
a) Variables can be declared at any point in the program.
b) Variables must be declared before they are used.
c) Variables are automatically initialized to zero.
d) Variable names can start with a digit.
Answer :
9.

a) 4
b) 8
c) 16
d) 20
Answer :
10.

a) a=4, b=6
b) a=6, b=4
c) a=10, b=2
d) a=2, b=10
Answer : For Answers Click Here
NPTEL Problem Solving Through Programming In C Week 1 Assignment Answers 2024
1. CPU comprises of
a) ALU – Arithmetic and Logic Unit
b) Registers
c) Control unit
d) All of the above
Answer: d) All of the above
Explanation: A CPU contains the Arithmetic Logic Unit (ALU), registers, and the control unit. Together, these components perform all operations required by the computer.
2. Input device/s of a computer
a) Printer
b) Speaker
c) Joystick
d) Monitor
Answer: c) Joystick
Explanation: Joystick is an input device. Printer and speaker are output devices, and monitor is also an output device.
3. Choose the correct statements from the following
i) In high-level language, testing and debugging a program is difficult than assembly language.
ii) C programs are highly portable on any type of operating system platform.
iii) A flowchart is a visual representation of the sequence of steps for solving a problem.
iv) The role of a compiler is to translate source program statements to decimal codes.
a) (i) and (ii)
b) (ii) and (iii)
c) (i), (ii), and (iii)
d) (ii), (iii), and (iv)
Answer: b) (ii) and (iii)
Explanation: Statement (ii) is true because C programs are portable. Statement (iii) is also correct. However, (i) is incorrect since high-level languages are easier to debug, and (iv) is wrong because a compiler translates to machine code, not decimal codes.
4. How many bits are there in a byte?
a) 2
b) 4
c) 8
d) 16
Answer: c) 8
Explanation: A byte consists of 8 bits. This is the standard size of a byte in modern computer systems.
5.
a) 4
b) 8
c) 16
d) 20
Answer: c) 16
Explanation: The question seems incomplete, but assuming it’s about the number of registers in a general-purpose processor or some similar metric, 16 is a common answer. Please clarify the question for an accurate explanation.
6.
a) 21
b) 28
c) 30
d) 40
Answer: b) 28
Explanation: Since the question is missing, the explanation cannot be provided accurately. Please provide the full question.
7.
a) a = 4, b = 6
b) a = 6, b = 4
c) a = 10, b = 2
d) a = 2, b = 10
Answer: b) a = 6, b = 4
Explanation: As the question is missing, the explanation for this answer cannot be given. Please share the original question.
8. The program which translates high level program into its equivalent machine language program is called
a) a translator
b) a language processor
c) a converter
d) None of the above
Answer: a) a translator
Explanation: A translator converts high-level programming languages into machine-level languages. It is often categorized as a compiler, interpreter, or assembler.
9. An interpreter reads the source code of a program
a) one line at a time
b) two line at a time
c) complete program in one stroke
d) None of these
Answer: a) one line at a time
Explanation: Unlike a compiler, an interpreter translates and executes the code line-by-line, making debugging easier but execution slower.
10. Flowchart and algorithms are used for
a) Easy testing and debugging
b) Better programming
c) Efficient coding
d) All of these
Answer: d) All of these
Explanation: Flowcharts and algorithms help in visualizing the logic of the program, making it easier to test, debug, write better code, and improve overall coding efficiency.


