{Week 1} Problem Solving Through Programming In C NPTEL Assignment Answers 2025

NPTEL Problem Solving Through Programming In C Week 1 Assignment Answers 2025

1. Set of instructions to be provided to an electronic machine to perform a task is called

a) Programming
b) Processing
c) Computing
d) Compiling

Answer :-  a

2. Compiler helps in the translation from

a) Integer to binary
b) High-level program to binary digits
c) High-level language to machine level language
d) Pseudo code to computer program

Answer :- c

📚 Did you know that 60-80% of the questions in the final exam are often repeated from previous years? 🎯 Boost your chances of success by exploring answers for NPTEL courses from past years on Answer GPT! 👇👇👇👇

3. The ALU unit of computer

a) Can perform logical operation only
b) Can perform arithmetic operation only
c) Can perform both arithmetic and logical operations
d) None of the above.

Answer :- For Answers Click Here 

4. What type of device is computer printer?

a) Memory
b) Output
c) Storage
d) Input

Answer :- 

5. Algorithm is –

a) A process or set of rules to be followed in calculations or other problem-solving operations, especially by a human.
b) A process or set of rules to be followed to solve numerical problems only.
c) A process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.
d) A process or set of rules to be followed to solve logical problems only.

Answer :- 

6. When we write X=10 and Y=X, which of the following memory assignment is correct

a) X and Y will have same location and 10 will be stored.
b) X and Y will have two distinct locations and 10 will be stored in both.
c) X and Y will have same location and only X will contain value 10
d) X and Y will have two distinct locations and only X will contain value 10

Answer :-  For Answers Click Here 

7. The input N from the user is 6. The output of the following algorithm is

a) 21
b) 720
c) 1
d) 2

Answer :- 

8. What will be the output of the algorithm given below?

a) 51
b) 52
c) 50
d) Compilation error

Answer :- 

9. The following algorithm is used to find a number X is even or odd. What will be the content of the empty box?

a) X%10=0?
b) X/10=0?
c) X/2=0?
d) X%2=0?

Answer :- 

10. X is an integer (X=2648). The print value of Y of the flowchart below is

a) 20
b) 22664488
c) 8462
d) 0

Answer :- For Answers Click Here 

2024 Week 1 Problem Solving Through Programming In C nptel Assignment Answers

1. Which of the following is a valid C variable name?

a) 2variable
b) variable_2
c) variable-2
d) variable.2

Answer :- b

2. 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 :- c

3. What is the purpose of the #include directive in a C program?

a) To include a library file.
b) To include a library file.
c) To define a constant.
d) To start the main function.

Answer :- a

4. Which of the following correctly describes the purpose of a compiler in C?

a) To execute the program line by line.
b) To convert source code into machine code.
c) To provide a runtime environment for program execution.
d) To interpret and run the program interactively.

Answer :- b

5. Which of the following is true about the execution nature of C programs?

a) C programs are executed in an event-based manner.
b) C programs are executed concurrently.
c) C programs are executed in a multi-threaded manner.
d) C programs are executed sequentially.

Answer :- d

6. 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 :- b

7. Which of the following is a characteristic of the ASCII standard?

a) It supports encoding for all the world’s languages.
b) It uses 16-bit encoding for characters.
c) It is a 7-bit character encoding standard.
d) None of the above.

Answer :- c

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 :- b

9.

a) 4
b) 8
c) 16
d) 20

Answer :- c

10.

a) 21
b) 28
c) 30
d) 40

Answer :- b

Leave a Comment