| 1. | Who developed the 'C' Language? |
| a. | | Yaswanth |
| b. | | Balaguruswami |
| c. | | Dennis Ritchie |
| d. | | NONE of the above
|
|
|
|
|
|
|
| 2. | #include<stdio.h>
main()
{
int a,b=0
a=b++
a=--b
a=--b
a=10+a
printf("%d ",a)
}
what is the value of the a? |
| a. | | 9 |
| b. | | 29 |
| c. | | 10 |
| d. | | None
|
|
|
|
|
|
|
| 3. | #include<stdio.h>
main()
{
int a
for(a=0a<=4a++)
printf("%d",a)
}
What is the value of the a? |
| a. | | 4 |
| b. | | Error |
| c. | | 5 |
| d. | | Infinite loop
|
|
|
|
|
|
|
| 4. | #include<stdio.h>
main()
{
int a,b,c=0
printf("Enter a number:")
scanf("%d",&a)
while(a>0)
{
b=a%10
a=a/10
c=c*10+b
}
printf("%d\n",c)
}
What is the value when input a=121? |
| a. | | 121 |
| b. | | 122 |
| c. | | 222 |
| d. | | 111
|
|
|
|
|
|
|
| 5. | a)Arrays Contain same elements .
b)In for loop initialization always start with 0. |
| a. | | Both are false |
| b. | | both are true |
| c. | | (a ) is True |
| d. | | (b)is true
|
|
|
|
|
|
|
| 6. | main( )
{
int a, b
a = -3 - - 3
b = -3 - - ( - 3 )
printf ( "a = %d b = %d", a, b )
}
The values of the a and b are? |
| a. | | a=1,b=4 |
| b. | | a=0,b=-6 |
| c. | | a=-3,b=0 |
| d. | | Error
|
|
|
|
|
|
|
| 7. | What is this statement ?
int (*(*x) [10] ) [10] |
| a. | | x is the pointer to array of 10 int to array of 10 integers |
| b. | | x is the pointer to array of 10 pointers to array of 10 integers |
| c. | | x is the pointer to array of 10 pointers to array of 10 pointers |
| d. | | This statement is wrong
|
|
|
|
|
|
|