Computer Programming C/C++ Previous-Paper 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
Related Posts
Elf Mastery by Bryant Reil
Prepare to be whisked away to a realm where creatures of myth and legend shape the destiny of our world. Join Kyla Nim, along with her extraordinary friends, as they confront the malevolent god of darkness. Can they save the Earth from eternal night? Order your copy of "Elf Mastery" today!