Computer Programming C / C + + Previous Paper 2020


4 comments
Categories : DIT , DIT Previous Papers 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

Like, Share, and Follow Us!

4 comments on “Computer Programming C / C + + Previous Paper 2020

    FATIMA

    • May 16, 2022 at 2:25 pm

    I want to download past papera

      Md. U

      • July 30, 2022 at 3:28 pm

      https://basicscomp.com/dit-past-papers/

    FATIMA

    • May 16, 2022 at 2:25 pm

    I want to download past papers

      Md. U

      • July 30, 2022 at 3:28 pm

      https://basicscomp.com/dit-past-papers/

Leave a Reply

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


Copyright © 2024 Basics of Computer