CS201
1)Differentiate between Random access and Sequential access 5marks
2)Write a declaration statement for an array of 10 elements of type float. Include an initialization statement of the first four elements to 1.0, 2.0, 3.0 and 4.0. 5marks
2)Write a declaration statement for an array of 10 elements of type float. Include an initialization statement of the first four elements to 1.0, 2.0, 3.0 and 4.0. 5marks
Another:
cs201 exam half hour before.
objective may say kuch bata deta hoo jo aya tha mujhay;
- C-language kis labortary may invent hoi.
- C is widely known as development language of _______ operating system.
objective may say kuch bata deta hoo jo aya tha mujhay;
- C-language kis labortary may invent hoi.
- C is widely known as development language of _______ operating system.
► Linux
► Windows
► Unix
► Mac OS
- What will be the result of arithmetic expression 6+27/3*3?
► 33
► 45
► 9
► 30
- What will be the correct syntax for initialization of pointer ptrwith string "programming"?
► char ptr = 'programming' ;
► char *ptr = "programming" ;
► char *ptr = 'programming' ;
► *ptr = "programming" ;
- Which character is inserted at the end of string to indicate the end of string?
► new line
► tab
► null
► carriage return
- ek question that like variable say related jis ki option kuch is tarah say the;
int (i)
int [2]
and subjective may say;
Q1- Write down the output of the following code?
int array[7], sum = 0;
for(int i=0;i<7;i++)
{
array[i] = i;
sum+= array[i];
}
cout<< " Sum = " <<sum;
Q2- Explain C-String with an example?
Q3- anonymous structure and anonymous union k baray likhain?
Q4- 2 question practical related thay jis may code dya gya tha us ko theek kerna tha
geek ki option say.
0 comments
Post a Comment