Tuesday 24 October 2017

NIELIT O Level Paper Solution July-2012 C Language

NIELIT O Level Paper Solution July-2012 C Language

1. Objective


1.1 : C
1.2 : C
1.3 : B
1.4 : D
1.5 : A
1.6 : B
1.7 : C
1.8 : B
1.9 : D
1.10 : B

2. True/False


2.1 : T
2.2 : F
2.3 : F
2.4 : T
2.5 : F
Explanation : Answer will be 14.
2.6 : F
Explanation :  Union takes less memory than structure because its allocate space only for largest member not for every member. On the other hand structure allocates space for every member.
2.7 : F
2.8 : F
2.9 : F
2.10 : F

3. Match the column


3.1 : C
3.2 : K
3.3 : A
3.4 : F
3.5 : H
Explanation :   ferror function tests to see if the error indicator has been set for a stream pointed to by stream.
void main()
{
     FILE *pt
     pt=fopen("test.txt","r");
     if(source==NULL)
          printf("\n\tUnable to open source file");
     else
          printf("\n\tfile Open successfully");

}

3.6 :  B
3.7 :
3.8 : D
3.9 : J
3.10 : I

4. Fill in the Blank

4.1 : J
4.2 : NA
4.3 :  C
4.4 : E
4.5 : B
4.6 : H
4.7 : NA
4.8 : A
4.9 : NA
4.10 : NA

No comments:

Post a Comment