Computer Programming 151 DCT


You are here:
Home > DCSA Question and Answer > DCT > Computer Programming 151 (DCT)

For DCSA
MCT


Office Automation Question and Answer 131

Office Automation Question and Answer 151

Visual Programming Question and Answer

Computer Programming Question and Answer 111

Computer Basic Question and Answer 101

Computer Basic Question and Answer 131

Computer Basic Question and Answer 151

Microcomputer Troubleshooting Question and Answer 033

Microcomputer Troubleshooting Question and Answer 043

Microcomputer Troubleshooting Question and Answer 053

Microcomputer Troubleshooting Question and Answer 093


For UPWORK


Computer Skill Quiz and Answer

MS Word Quiz and Answer

MS Excel Quiz and Answer

MS PowerPoint Quiz and Answer

Adobe Photoshop Quiz and Answer

Adobe Illustrator Quiz and Answer

Logo Design Quiz and Answer
Bangladesh Open University
Diploma in Computer Science and Application Program
151 Term(1st Semester) Examination- For 2015 Session
Course: Computer Programming (DCSA 1303)
Essay Type Questions

Time: 2 Hrs.40 Minutes Full marks: 50
(N.B.-The figures in the margin indicate full marks.)

Section A: Short Question

Answer any EIGHT of the following questions. 2.5 x 8 = 20

1. Draw a flowchart to addtwo numbers entered by user.2.5

2. Why use return statement in C programming language?2.5

3. Define break statement and continue statement.

4. What is an argument? Differentiate between formal arguments and actual argument.

5. What is an array variable? How does an array variable differ from an ordinary variable?

6. What is purpose of the 'getchar' function? How is it used within a C program?

7. Why 'main' function is used in C?

8. Differentiate between local variable and global variable.

9. What are the keywords in C? What restrictions apply to their use?.

10. Write a program to find the factorial value of any number entered through the keyboard.

Section B: Analytical Question

Answer any Five of the following questions. 6 x 5 = 30

1. a) What is an operator? Describe several different type of operators that are included in C.

b) Mr. X's basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary.
2. How can you differentiate between while and do while statement? Explain it with proper example.

3. a) What is the difference between call by reference & call by value? Explain with example.

b) Any year is entered through the keyboard, write a program to determine wheather the year is leap or not.
4. a) Explain the difference between switch and nested if else with an example.

b) Write a program in C to determine whether a number is odd or even.
5. What is the function? List out the advantages disadvantages of functions? What is meant by function argument, function call and return value? Explain with example.

6. Describe why the storage classes are used in C programming language. Explain static and external storage class with example.

7. What is string constant? How string constant differ from character constant?.

8. Write a program to print all prime numbers from 1 to 300.