0% found this document useful (0 votes)
65 views

Government Boys Degree College: Subject: Computer Science. Class: ICS-II Lecturer: Basharat Ali Section-A

This document contains sample questions from computer science classes at Government Boys Degree College in Skardu, Pakistan. Section A contains multiple choice questions about C language concepts like data types, compilers, and naming conventions for variables. Section B asks for short answers differentiating variable declarations from initializations, identifying errors in a C program, and distinguishing between impact and non-impact printers. Section C provides programming questions - writing a program to perform basic math operations on real numbers and a program to print the character for a given ASCII code. A second document contains similar questions about input/output devices, computer hardware/software, operating systems functions, and differentiating dot matrix from chain printers and examples of application software.

Uploaded by

Basharat Ali
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Government Boys Degree College: Subject: Computer Science. Class: ICS-II Lecturer: Basharat Ali Section-A

This document contains sample questions from computer science classes at Government Boys Degree College in Skardu, Pakistan. Section A contains multiple choice questions about C language concepts like data types, compilers, and naming conventions for variables. Section B asks for short answers differentiating variable declarations from initializations, identifying errors in a C program, and distinguishing between impact and non-impact printers. Section C provides programming questions - writing a program to perform basic math operations on real numbers and a program to print the character for a given ASCII code. A second document contains similar questions about input/output devices, computer hardware/software, operating systems functions, and differentiating dot matrix from chain printers and examples of application software.

Uploaded by

Basharat Ali
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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)

You might also like