Editor And The Compiler, Source Program And Object Program-Programming Concepts-Assignment, Exercises of Computer Programming

Prof. Utsav Chattopadhyay gave this assignment for Programming Concepts course at KIIT University. It includes: Difference, Execution, Sequence, Loop, Continue, Return, Statements, Break, Purpose, Functions, Limitations

Typology: Exercises

2011/2012

Uploaded on 07/19/2012

anandi
anandi 🇮🇳

4.5

(8)

61 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ASSIGNMENT No. 1
(Units: 14)
Course: Programming Concepts (3402) Semester: Spring, 2012
Level: BS (CS) Total Marks: 100
Pass Marks: 50
Note: All questions are compulsory. Each question carries equal marks.
Q. 1 Explain the difference between the following:
(a) Editor and the Compiler
(b) Source program and the object program
Q. 2 (a) How can you use pseudo code and flow charts to solve different problems related to
programming? Explain.
(b) Explain the purpose and advantages of using comments in C/C++ Language.
Q. 3 (a) Write a simple program in C/C++ demonstrating the functions of relational operators.
(b) Differentiate between syntax errors and logical errors.
Q. 4 (a) Differentiate between Input and Output in C/C++ language. Which libraries and keywords
and required for Input and Output in a C/C++ program?
(b) Write a simple program in C/C++ demonstrating the functions of assignment and logical
operators.
Q. 5 (a) Write a program in C/C++ using nested if statement for calculating the average marks and
grades of 5 subjects.
(b) Write a program in C/C++ using switch statement for calculating the average marks and
grades of 5 subjects.
docsity.com

Partial preview of the text

Download Editor And The Compiler, Source Program And Object Program-Programming Concepts-Assignment and more Exercises Computer Programming in PDF only on Docsity!

ASSIGNMENT No. 1

(Units: 1–4)

Course: Programming Concepts (3402) Semester: Spring, 2012 Level: BS (CS) Total Marks: 100 Pass Marks: 50

Note: All questions are compulsory. Each question carries equal marks.

Q. 1 Explain the difference between the following: (a) Editor and the Compiler (b) Source program and the object program

Q. 2 (a) How can you use pseudo code and flow charts to solve different problems related to programming? Explain. (b) Explain the purpose and advantages of using comments in C/C++ Language.

Q. 3 (a) Write a simple program in C/C++ demonstrating the functions of relational operators. (b) Differentiate between syntax errors and logical errors.

Q. 4 (a) Differentiate between Input and Output in C/C++ language. Which libraries and keywords and required for Input and Output in a C/C++ program? (b) Write a simple program in C/C++ demonstrating the functions of assignment and logical operators.

Q. 5 (a) Write a program in C/C++ using nested if statement for calculating the average marks and grades of 5 subjects. (b) Write a program in C/C++ using switch statement for calculating the average marks and grades of 5 subjects.

docsity.com