NPTEL Problem Solving Through Programming in C | NPTEL Week 1 Quiz Assignment | NPTEL Assignment Solutions

NPTEL Problem Solving Through Programming in C Week 1 Quiz Assignment | NPTEL Swayam Assignment Answers


nptel problem solving through programming in c



MCQs (multiple choice questions) Nptel Week 1 Quiz Answers:

Q.1: The input given from keyboard is converted to computer understandable unit (bit) by the standard. Options are:

 a) ISO
 b) ANSI
 c) ASCII
 d) EBCDIC

Answer is (b) ANSI

Q.2: The execution nature of C program is. Options are:

 a) Event-based
 b) Concurrent
 c) Multi-threaded
 d) Sequential

Answer is (d) Sequential

Q.3: Choose the correct statements from the following. Options are:

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.

Answer is (b)

Q.4: When we write X=Y in C, which of the following statements is valid? Options are:

 a) X and Y both have same values but different locations.
 b) X and Y both have same location and same values.
 c) X and Y have different values and same location.
 d) X and Y have different values and different locations.

Answer is (a)

Q.5: 
what will be the output of the flowchart given below

 Options are:

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

Answer is (c) 16


Q.6: 
the output of the following algorithm is

 Options are:

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

Answer is (b) 28

Q.7: 
the print values of a and b of the flowchart below

 Options are:

 a) a=4, b=6
 b) a=6, b=4
 c) a=10, b=2
 d) a=2, b=10

Answer is (b)

Q.8: The program which translates high level program into its equivalent machine language program is called. Options are:

 a) a translator
 b) a language processor
 c) a converter
 d) None of the above

Answer is (a) a translator

Q.9: An interpreter reads the source code of a program. Options are:

 a) one line at a time
 b) two line at a time
 c) complete program in one stroke
 d) None of these 

Answer is (a)

Q.10: The C language has been developed at. Options are:

 a)   IBM, USA
 b)   Borland International, USA
 c)   Sun Microsystems
 d)   AT & T Bell Labs, USA

Answer is (d) 


If you are facing any queries regarding this assignment solutions, then please drop comment in comment section.

Post a Comment

0 Comments