Sunteți pe pagina 1din 2

Government Boys Degree College

Skardu
Subject: Computer Science. Class: ICS-II Lecturer: Basharat Ali
SECTION-A
1. Encircle the correct option (4)
I. C language is a:
a. High level language
b. Low level language
c. Low level language with high level features
d. High level language with low level features
II. C programs are converted into the machine language with the help of:
a. Editor
b. Compiler
c. Operating System
d. Linker
III. A C variable cannot start with
a. An alphabet
b. A number
c. Any special character except underscore( _ )
d. Both c and c
IV. Size of an integer variable is:
a. 2 Bytes
b. 2 bits
c. 1 Byte
d. 4 Bytes
SECTION-B
2. Give Short Answers: (9)
I. Write rules and conventions for naming variables in C language.
II. Differentiate between variable declaration and variable initialization.
III. Find errors, and rewrite the following program
# include (stdio.h)
int Main(void
{
int a=20; b=3, c;
c=a%b:
printf(\nThe remainder of %d %d is: %d, c, a, b);
getche();
}
SECTION-C
3. a. Write a program using real numbers to add, subtract, multiply and divide them and display
the results. (5)
b. Write a program that takes an ASCII code from the user and prints its equivalent character
on screen. (5)
Government Boys Degree College
Skardu
Subject: Computer Science. Class: ICS-I Lecturer: Basharat Ali
SECTION-A
1. Encircle the correct option (4)
I. Devices used for inserting data and instructions into computer memory are called:
a. Input devices
b. Output devices
c. Storage devices
d. All of the above
II. EGA stands for
a. Enhanced Graphics Array
b. Extended Graphics Adaptor
c. Electrical Graphics Adaptor
d. Enhanced Graphics Adaptor
III. Pixel stands for
a. Dot pitch
b. Resolution
c. Picture element
d. Picture array
IV. There are ____ function keys on keyboard
a. 10
b. 12
c. 14
d. 11
SECTION-B
2. Give Short Answers: (9)
I. Differentiate between impact and non-impact printers
II. Differentiate between Computer Hardware and Software
III. Write three functions of operating systems.

IV. SECTION-C
3. a. Differentiate between dot-matrix and chain printers. (5)
b. What is application software? Explain any four types of application software. (5)

S-ar putea să vă placă și