Home /Islamia University Bhawalpur (IUB) /Programming Fundamentals

Programming Fundamentals MSCS 3 Semester/Term Islamia University Bhawalpur (IUB) 2014

Programming Fundamentals MSCS 3 Semester/Term Islamia University Bhawalpur (IUB) 2014 — page 1

Discussion

Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.

Your email is only used to send you replies and occasional Ustadni updates. It is never shown publicly.

Log in to post under your name

No questions yet — be the first to ask.

More Programming Fundamentals papers

See all

Paper text

com

Class:MCS (3r Semester) Final Term

Subject: Programming Fundamentals

Time: 100 Minutes

Name:

Nudrat Batoal.

The Islamia Unibersity of Bahabalpur, Pakistan

DEPARTMENT OF COMPUTER SCIENCE

IUB Affiliated Colleges

ustadni.co

Session: 2014-16

Code: CSIT 31101

Total Marks: 45

US

Roll. No. 2004

Q#02: Expand and explain with examples

a.

b.

Local and Static Variable

Default Parameters

C.

d.

Structure and Union

e. Post Test and Pre Test Loop

f. getch() and getche

g. Types of Files

[7*3=21)

Q#03: Suppose your Computer does not support% operator. Write a function that performs same

functionality such as remainder operator but don't use remainder operator. J

[08]

Q# 04: Write a menu driven program using Switch, input choice from user and display the following menu:

1. Round No.

2. Search the Array

f entered choice is 1: Invoke user defined "Round No" function to round a floating point number if it:

ractional part is greater than 0.5, and if entered choice is 2: invoke "Binary_Search" function to search a

value in an array[10] of integers using binary search method.

[08]

Q # 05: a. Write a program that creates a file to store name and email of the user using structure. [04]

b. Write a program that inputs five integers and stores it in a file using binary /O.

[04]

Q # 06: a. Write a program that inputs ten integers in an array and passes the array to a Sort function

that sorts the array using selection sort./

[08]

visit website: ustadni.com