Computer Programming C / C + + Previous Paper 2020
Khyber Pakhtunkhwa Board of Technical Education Peshawar
Diploma in Information Technology
(Part -I)
1st Term Examination 2020
Paper: Computer Programming C / C + +
Time allowed: 3 hours
Max marks: 50
Attempt any five questions. All questions carry equal marks.
Q1. What is C++? Write down the differences between C and C++.
Q2. What are experimental real constants and string constants? Explain with example.
Q3. Write the purpose and syntax of do while loop and show difference between loop and do while loop.
Q4. Write a program to find the largest number among any three given numbers.
Q5. What output of the following program?
#include<stdio.h>
{
int number = 5;
if( number%2==0)
printf(“%d is an even number”,number);
else
printf(“%d is an odd number”,number”);
return 0
}
Q6. Write a comprehensive note on.
i. print f ( )
ii. scanf ( )
iii. puts ( )
Q7. Write a program that adds two numbers and elaborate the structure C by exemplifying it.
Q8. Write the purpose, syntax and example of the following C function.
i. Abs ( )
ii. rand ( )
iii. Pow ( )
iv. Strncat ( )
v. Strev
Related Posts
4 comments on “Computer Programming C / C + + Previous Paper 2020”
Leave a Reply
Cancel reply
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!
FATIMA
I want to download past papera
Md. U
https://basicscomp.com/dit-past-papers/
FATIMA
I want to download past papers
Md. U
https://basicscomp.com/dit-past-papers/