Computer Programming C/C++ Previous-Paper 2019


0
Categories : DIT , DIT Previous Papers 2019
Khyber Pakhtunkhwa Board of Technical Education Peshawar.
Diploma In Information Technology
(Part -I)
1st Term examination 2019
Paper: Computer Programming C/C++
_________________________________________________________________
 
Time allowed: 3 hours                                       Max marks: 50
Note:             Attempt any five questions by selecting at least one question from each section. All question carry equal marks
Q1.           Explain C is considered to be a remarkable and powerful tool for programming. Also elaborate on the benefits of object oriented programming.     
Q2.           What are reserved words? Explain its usage with the help of programing example.
Q3.           Write a C program to print first ten natural number from 10 to 1 in descending order starting from  10, Using decrement operator without using loop.
Q4.           Write a program to  print size of int, flout, double, char and bool data types on separate line using print function.
Q5.           Write a program to assign five different numbers to integer variables without appearing the entered number on the screen (Hint: use getch function)
Q6.           Wat are relational operators? Write a C Program to check if an entered number is divisible by 4 and 6 using nested if statement.
Q7.           What is the condition which leads to the use of continue statement in loops?  Support your answer with a C programming example.
Q8.           What are library function? Write a C program to solve = [(x2+y2)  using sqrt () function let x=3 and y=4

Khyber Pakhtunkhwa Board of Technical Education Peshawar
Diploma in Information Technology
(Part -I)
1st Term Examination 2019
Paper: Computer Programming C/C++

Time allowed: 3 hours

Max marks: 50

Note: Attempt any five questions by selecting at least one question from each section. All question carry equal marks.

Q1. Explain C is considered to be a remarkable and powerful tool for programming. Also elaborate on the benefits of object-oriented programming.

Q2. What are reserved words? Explain its usage with the help of programing example.

Q3. Write a C program to print first ten natural number from 10 to 1 in descending order starting from 10, Using decrement operator without using loop.

Q4. Write a program to print size of int, flout, double, char and bool data types on separate line using print function.

Q5. Write a program to assign five different numbers to integer variables without appearing the entered number on the screen (Hint: use getch function)

Q6. Wat are relational operators? Write a C Program to check if an entered number is divisible by 4 and 6 using nested if statement.

Q7. What is the condition which leads to the use of continue statement in loops? Support your answer with a C programming example.

Q8. What are library function? Write a C program to solve = √[(x2+y2) using sqrt () function let x=3 and y=4

Related Posts

Like, Share, and Follow Us!

Leave a Reply

Your email address will not be published. Required fields are marked *


Copyright © 2024 Basics of Computer