WEEK: 1 Assignment 1 QUIZ NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions



PROBLEM SOLVING THROUGH PROGRAMMING IN C.

By Prof. ANUPAM BASU


                               ASSIGNMENT 1



1.C language was developed by
 a)  Dennis Ritchie
 b) Bjarne Stroustrup
 c) James Gosling
 d) Guido van Rossum

2.A 2D diagram to represent the steps to be followed to solve a problem is known as
 a) Flow-chart
 b) Pseudo-code
 Both (a) and (b)
 d) None of these

3.Which one of the following statement is the most appropriate?
 a)     Flowchart is diagrammatic representation of the algorithm. Pseudo code is just another name of algorithm.
 b)     Flowchart is basically a diagrammatic representation of the algorithm. Whereas in pseudo code normal English language is translated into the programming languages to be worked on.
 c)   Pseudo code is basically a diagrammatic representation of the algorithm. Whereas in flowchart normal English language is translated into the programming languages to be worked on.
 d)  Pseudo code is another name of programming. Whereas in flowchart is diagrammatic representation of algorithm.

4.The ALU of a 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.

5.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

6.
 a) 120
 b) 720
 c) 5040
 d) 1

7.
 a) 4321
 b) 10
 c) 4
 d) 9

8.
 a)    1. r!=0     2. a=r and b=q
 b)    1. q=0     2. a=b and b=r
 c)    1. r=0      2. a=q and b=r
 d)    1. r=0       2. a=b and b=r

9.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

10.Computer memory which is used to store programs and data currently being processed by CPU is
 a) ROM
 b) RAM
 c) Cache memory
 d) PROM

CLICK ON THE LINK FOR WEEK 3 QUIZ AND PROGRAMS ANSWERS:
<<CLICK HERE FOR WEEK 3 QUIZ AND PROGRAMS>>
 Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%  correct solutions.

No comments:

Post a Comment

If you have any problems related to solutions or any concept please let me know.

Copyright (c) 2020 Custom Programs All Right Reserved

Pages