HISSAN CENTRAL
EXAMINATION – 2068 (2012) |
|
COMPUTER SCEINCE
[230-M] |
|
Time: 3 hrs Full
Marks : 75
Pass Marks: 27 |
|
Group “A”
Long Answer questions 4x10=40
Attempts any Four questions:
1.What is data type? List some data types. Write a program that accepts Principle and Time then calculates the simple interest according to the following rates:
Duration Interest Rate
Up to 6 Months 8%
Up to 12 Months 9%
More than 5 Years 12%
Variable Type | Keyword | Storage Size | Range |
Character | char | 1 byte | -128 to 127 |
Unsigned character | unsigned char | 1 byte | 0 to 255 |
Integer | int | 2 byte | -32768 to 32767 |
Short integer | short int | 2 byte | -32768 to 32767 |
Long integer | long int | 4 byte | -2,147,483,648 to 2,147,483,647 |
Unsigned integer | unsigned int | 2 byte | 0 to 65535 |
Unsigned short integer | unsigned short int | 2 byte | 0 to 65535 |
Unsigned Long integer | unsigned long int | 4 byte | 0 to 4,294,967,925 |
Float | float | 4 byte | 1.2 E-38 to 3.4E+38 |
Double | double | 8 byte | 2.2E-308 to 1.7 E+308 |
Long double | long double | 10 byte | 3.4 E-4932 to 1.1 E+308 |
Second part:-
2.What is function in C? What are the different ways of using a function? Write a C program to display largest number among three numbers using a function max( ). This function takes the value of three numbers as arguments and returns the largest number among these numbers.
Ans:-
1. Function Declaration (Function Prototype)
2. Function Call
3. Function Definition
For example,
There are four methods to use functions:-
1. FUNCTION WITH NO ARGUMENTS AND NO RETURN VALUES:-This user defined function uses no arguments and returns no value.Let's take an example to understand about this.
#include<stdio.h>
void sum();
int main()
{
sum();
return 0;
}
void sum()
{
printf("sum of two numbers =%d",2+4);
}
In this we have not passed any arguments and no return value in function prototype and in body part.This is the simpalest way to use function. To call , simply we have to put function name inside the main() function.
2.FUNCTION WITH NO ARGUMENTS AND RETURNING SOME VALUES:
This user defined function uses no arguments and returns some value.For this we have to take other data type than void for function.Let's take an example to understand about this.
#include<stdio.h>
int sum();
int main()
{
printf("sum=%d",sum());
return 0;
}
int sum()
{
int a=4,b=5;
int c;
c=a+b;
return c;
}
In this we have not passed any arguments but it is returning some valeu of integer data type.For this we have used int data type in function prototype and in body part.This is the alternative methd to use function. Since the call is of integer type we have to use printff() with %d specifier to print the value/output.
3.FUNCTION WITH ARGUMENTS AND RETURNING NO VALUES.
This user defined function uses some arguments/variables and returns no value.For this we have to take void data tyep for function.Let's take an example to understand about this.
#include<stdio.h>
void sum(int,int);
int main()
{
sum(3,5);
return 0;
}
void sum(int a,int b)
{
int c;
c=a+b;
printf("sum=%d",c);
}
In this we have passed two arguments a and b and it is returning no value.For this we have used void data type in function prototype and in body part. when the function is called, we have passed two values 3 and 5 as real arguments. These values are copied to variables a and b and are used inside the body part of function. To print the value/output we simply use function name inside the main().
4.FUNCTION WITH ARGUMENTS AND RETURN VALUES.
This user defined function uses some arguments/variables and returns some value.For this, we have to take other data type than than void data type for function.Let's take an example to understand about this.
#include<stdio.h>
int sum(int,int);
int main()
{
printf("sum is %d", sum(3,5));
return 0;
}
int sum(int a,int b)
{
int c;
c=a+b;
return c;
}
In this we have passed two arguments a and b and it is returning an integer value value.For this we have used int data type in function prototype and in body part. when the function is called, we have passed two values 3 and 5 as real arguments. These values are copied to variables a and b and are used inside the body part of function. To print the value/output we simply use function name with specifier %d with printf() function inside the main().
3.Why data file is necessary in programming? Discuss the various modes of data files. Write a C program to delete a record. (Assume that the record has roll, name and address field. And asked the roll number for deleting the record.)
Ans:-
- r - open a file in read mode.
- w - opens or create a text file in write mode.
- a - opens a file in append mode.
- r+ - opens a file in both read and write mode.
- a+ - opens a file in both read and write mode.
- w+ - opens a file in both read and write mode.
4.What is structure? How it differs from an array? Write a program to accept name and address of Nth numbers of students and arrange them on descending order according to the name.
Ans:-
struct tag
{datatype member1;
datatype member2;
data type member3;
}variable;
example,
struct det
{char name[100];
char add[40];
int roll;
}variable;
data type identifier[value];
5.
a) Differentiate between while and do while loop.
Ans:-
Differences between while and do..while loop are given below.
while loop | do while loop |
In the while loop, condition is checked in the beginning. | In the do while loop, condition is checked at the end. |
It is also known as a pre-test or entry control loop. | It is also known as post-test or exit control loop. |
It is not terminated with a semicolon. | It is terminated with a semicolon. |
In the while loop, statements are not executed if the condition is false. | In the do while loop, statements are executed once even the condition is false. |
It uses the keyword ‘while’. | It uses two keywords ‘do’ and ‘while’. |
The syntax of while loop is as follows: initialization; while(condition) { statements; increment/decrement; } | The syntax of do-while loop is as follows: initialization; do { statements; increment/decrement; }while(condition); |
The operation of while loop can be represented using flowchart as follows: | The operation of do while loop can be represented using flowchart as follows: |
Example: int main() { int i=1; while(i>=10) { printf("I love my country"); i++; } return 0; } Output: This program displays nothing as output; as condition is evaluated false in the beginning. | Example: #include<stdio.h> int main() { int i=1; do { printf("I love my country"); i++; }while(i>=10); return 0; } Output: This program displays “I love my country” as output at once. |
Ans:-
Group “B”
Short Answer questions 7x5=35
Attempts any Seven questions:
6.What is information system? Explain the different types of information system.
Ans:-
1.)Transaction Information System:-
A transaction processing system is a type of information system. TPSs collect, store, modify, and retrieve the transactions of an organization. A transaction is an event that generates or modifies data that is eventually stored in an information system by using four major units namely input,storage,processing and output.
It has several advantages:
.Rapid response
.more reliable
2.)Management Information system (MIS):-
Management Information Systems (MIS) is the study of people, technology, organizations and the relationships among them. MIS professionals help firms realize maximum benefit from investment in personnel, equipment, and business processes. MIS is a people-oriented field with an emphasis on service through technology.
It has numerous advantages,
Improves personal efficiency
Expedites problem solving(speed up the progress of problems solving in an organization)
Facilitates interpersonal communication
Promotes learning or training
Ans:-
SDLC is a structure or a process to develop a software followed by a development team within the software organization. It consists of a detailed plan describing how to develop, maintain and replace specific software. SDLC is also known as information systems development or application development. It is life cycle defining a methodology for improving the quality of software and the overall development process.
The first step is problem definition(study). The intent is to identify the problem, determine its cause, and outline a strategy for solving it. It defines what ,when who and how project will be carried out.
As we know everything starts with a concept. It could be a concept of someone, or everyone. However, there are those that do not start out with a concept but with a question, “What do you want?” and "really, is there a problem?" They ask thousands of people in a certain community or age group to know what they want and decide to create an answer. But it all goes back to planning and conceptualization.
In this phase the user identifies the need for a new or changes in old or an improved system in large organizations. This identification may be a part of system planning process. Information requirements of the organization as a whole are examined, and projects to meet these requirements are proactively identified.
We can apply techniques like:
1) Collecting data by about system by measuring things, counting things, survey or interview with workers, management, customers, and corporate partners to discover what these people know.
2) observing the processes in action to see where problems lie and improvements can be made in workflow.
3)Research similar systems elsewhere to see how similar problems have been addressed, test the existing system, study the workers in the organization and list the types of information the system needs to produce.
2) Getting the idea about context of problem
3) The processes - you need to know how data is transformed into information.
Analysis:-
Once the problems identified, it is time to analyze the type of software that could answer the problems encountered. System analysis (may be by system analyst) will take a look at possible software. The goal of a system analysis is to know the properties and functions of software that would answer the concerns solicited from intended users.System Analysis would lead in determining the requirements needed in software. These requirements in software should be implemented otherwise the software may not answer the concerns or may lack in its usage. This stage will somehow determine how the software should function.
It is the study of complete business system or parts of business system and application of information gained from that study to design,documentation and implementation of new or improved system. This field is closely related to operations research. An analyst work with users to determine the expectation of users from the proposed system.
Ans:-
9.What is database file? Differentiate it with DBMS. List some advantages and limitations of DBMS.
Ans:-
Simply well organized collection of data is database.
One way of classifying databases involves the type of content, for example: bibliographic, full-text, numeric, and image. Databases consist of software-based "containers" that are structured to collect and store information so users can retrieve, add, update or remove such information in an automatic fashion. Database programs are designed for users so that they can add or delete any information needed. The structure of a database is tabular, consisting of rows and columns of information.
Advantages
Reduced data redundancy
Improved data security
Reduced data entry, storage, and retrieval costs
Facilitated development of new applications program
DBMS:-
A DBMS is a system software package that helps the use of integrated collection of data records and files known as databases. It allows different user application programs to easily access the same database. DBMSs may use any of a variety of database models, such as the network model or relational model. In large systems, a DBMS allows users and other software to store and retrieve data in a structured way. Instead of having to write computer programs to extract information, user can ask simple questions in a query language.
Its roles can be listed as given below.
1. provides an interface to the user as well as to application
2. lets user to create,maintain databases.
3. provides high integrity and security to its data.
10.What is e-commerce? What value does it bring to the business? List the types of e-commerce.
Ans:-
- Online shopping web sites for retail sales direct to consumers
- Providing or participating in online marketplaces, which process third-party business-to-consumer or consumer-to-consumer sales
- Business-to-business buying and selling
- Gathering and using demographic data through web contacts and social media
- Business-to-business (B2B) electronic data interchange
- Marketing to prospective and established customers by e-mail or fax (for example, with newsletters)
- Engaging in pretail for launching new products and services
- Online financial exchanges for currency exchanges or trading purposes
11.What do you mean by object oriented programming structure? Discuss how it differs from procedural oriented programming structure.
Ans:-
12.What is networking? Explain the different types of communication channels.
Ans:-
A computer network, often simply referred to as a network, is a collection of computers and devices connected by communications channels that facilitates communications among users and allows users to share resources with other users. Networks may be classified according to a wide variety of characteristics.
Purpose of networking:-
Networking for communication medium (have communication among people;internal or external)
Resource sharing (files, printers, hard drives, cd-rom/)
Higher reliability ( to support a computer by another if that computer is down)
Higher flexibility( different system can be connected without any problems)
Unguided channel:-
13.What is digital divide? What are the social impacts of ICT in society?
Ans:-
The digital divide is a problem that affects people from all walks of life. It is a multifaceted issue, but two main characteristics define this gap: access to high-speed internet and access to reliable devices. Many of the individuals who struggle from the digital divide face both.
In some areas, internet access is either limited, unavailable, or unaffordable for those who could be equipped. Even with a reliable internet connection, access to certain digital spaces can remain a challenge, always just out of reach for those who can’t afford costly tools like laptops and software.
This leaves countless students and professionals to rely on public computers or their mobile devices as their only tools to exist in an increasingly digital world. It leaves many more, like those in rural areas or living under the poverty line, without even that.
Positive impacts in society:-
1.File sharing/transferring:-
A file can be put on a "Shared Location" or onto a File Server for instant use by colleagues does not matter what is a size of file and how many will use it. Mirror servers and peer-to-peer networks can be used to ease the load of data transfer.
2.Internet banking:-
We know that almost all banks now-a-days are using this technology for its customers as an extra facility. Internet Banking/ Online Banking allows bank customers to do financial transactions on a website operated by the banks. The customers can do almost any kind of transaction on the secured websites. They can check their account balance, transfer funds, pay bills, etc. but security is a major issue for thi
14.Write short notes on any two:
a) Virtual reality b) E-learning c) Multimedia and its application
Ans:-
2)Multimedia in Entertainment:
THE END
Casino No Deposit Bonus Codes 2021
ReplyDeleteClaim our 피망바카라시세 exclusive Casino Bonus Codes! Our list of top no deposit bonuses for 2021 includes: 1. Red 화이트 벳 Dog e 스포츠 토토 Casino Bonus – 갤럭시 카지노 $1,000 + 20 Free Spins (only $5 for slots). 카지노 톡
Slot Machines - CasinoFansGambling
ReplyDeleteYou can play slot machines 엠카지노에오신것을환영합니다 on 우리 카지노 계열 this website, but there is a lack of casino gambling apps available, as well as other forms of 온라인 카지노 게임 gambling. 카지노 사이트 Slot machines are 토토 폴리스