ICS Computer Science Chapter-09 Elements of C language part-2 BISE

Important Question for ICS Computer Science Part-2, Important notes for ICS computer Science for all Boards and Federal Board.


Chapter-09(Elements of C language)

1
Which of the following has the highest precedence?

++
&&
| |
--
2
Which operator is used to represent equality in C language?

=
==
>< 
None
3
Which of the following is called the modulus operator?

*
%
+
&
4
Data type int contains types:

10
4
2
16
5
Which is the name for a word that has a specific meaning in C?

Keywords
Comments
Token
Operators
6
To add a value 1 to variable y, you write:

y + =1;
y = y+ 1;
y =1 + y;
All
7
The expression 0%4 has a value equal to:

3
5
0
None
8
The value of the C expression 13 + 21 % 4 – 2 is:

0
12
16
14
9
Which of the following are valid examples of character constant?

‘A’
‘9’
‘$’
All
10
Which of the following data types is most appropriate for storing a name?

Float
Integer
Char
None
11
Variables are created in:

RAM
ROM
Hard Disk
None
12
a + = b is equalent to:

b + = a
a = +b
a =a+b
b = b + a
13
Which is numeric data type

Floating point
Integer
Both a and b
None
14
The number of bytes used by float data type in C is:

2
4
12
16


Q-2: Write short answers any TEN, each question carry 2 marks.                  2x10=20
               i.        What is the data type of an expression?
             ii.        Define comments in C language?
            iii.        List different types of operators in C language.
            iv.        What is the use of AND operator?
             v.        What is compound condition?
            vi.        What is the use of decrement operator in C language?
           vii.        Define prefix and postfix increment operator.
         viii.        Why does cancelation error occur?
            ix.        How does an arithmetic underflow occur?
             x.        Define constant.
            xi.        What is variable initialization?
           xii.        Define different types of identifiers in C language.
         xiii.        What is an identifier, explain with example.

Q-3: Write detail answers any 2 from the following questions.                               2x8=16

·         What are logical operators? Discuss different logical operators in C language.
·         Describe the concept of overflow and underflow with examples.
·         Write down the rules for naming variables in C language with examples.