Live Help (Start Chat)
View Count: 0
Duration: 20 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 23 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 18 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 28 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 25
Always array size should be -----------? 
Options:
  1. N
  2. N-1
  3. N+1
  4. N*1
View Answer/Explanation:
b
Explanation:

Question No: 2 of 25
The array index should starts with 
Options:
  1. 0
  2. 1
  3. 2
  4. 3
View Answer/Explanation:
a
Explanation:

Question No: 3 of 25
In which of the following array declaration is correct 
Options:
  1. int array[];
  2. int []array;
  3. array int[];
  4. none of above
View Answer/Explanation:
a
Explanation:

Question No: 4 of 25
In which of the following declaration and initialization are correct? 
Options:
  1. int array[4]={100,200,300,400};
  2. int array[]={100 200 300 400};
  3. int array={100,200,300,400}
  4. int array[3]={100,200,300,400};
View Answer/Explanation:
a
Explanation:

Question No: 5 of 25
In two dimensional array the two indexes represents [ex: int array[][];] 
Options:
  1. 1st index represents rows and 2nd index represents blocks.
  2. 1st index represents columns and 2nd index represents sub arrays.
  3. 1st index represents blocks and 2nd index represents sub arrays.
  4. 1st index represents rows and 2nd index represents columns.
View Answer/Explanation:
d
Explanation:

Question No: 6 of 25
What will be the output of the following program?
#include
int main()
{
		int a[5],i;
		static int b[5];
		for(i=0;i<5;i++)
		{
			printf("\n%d\t%d\t%d",i,a[i],b[i]);
		}
} 
Options:
  1. 0 3160 0 1 -1 0 2 8653 0 3 9247 0 4 1912 0
  2. 0 0 0 1 0 0 2 2 0 3 0 0 4 0 0
  3. 0 0 0 1 0 -1 2 0 316 3 0 5874 4 0 5432
  4. 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0
View Answer/Explanation:
b
Explanation:
The storage class of the array a[] has not been mentioned, the default storage class auto is assumed for it. As against this, the storage class of b[] has been explicitly mentioned as static. The default value of auto storage class variables is any garbage value and the default value of static storage class variables is 0.Therefore all zeroes are print out for b[],where as garbage values are printed out for a[].

Question No: 7 of 25
What will be the output of the above program?
#include
int  main()
{
	static float arr[]={1.2,12,2.4,24,3.5,35};
	int i;
	for(i=0;i<=5;i++)
	printf("%f",arr[i]);
} 
Options:
  1. 1.0,12,2.0,24,3.0,35
  2. 1.200000 12.00000 2.400000 24.000000 3.500000 35.000000
  3. Compilation Error
  4. 1.200 12.000 2.4000 24.000 3.5000 35.000
View Answer/Explanation:
b
Explanation:

Question No: 8 of 25
main()
{
	int arr1[10],arr2[10],i;
	for(i=0;i<9;i++)
	{
		arr1[i]='A'+i;
		arr2[i]='a'+i;
		printf("%d\t",arr2[i]-arr1[i]);
	}
}
What will be the output of the above program? 
Options:
  1. 32 32 32 32 32 32 32 32 32
  2. A B C D E F G H I J K
  3. Compilation error
View Answer/Explanation:
a
Explanation:
arr1[] and arr2[] are declared as arrays capable of storing 10 integers. Through the for loop we are storing numbers from 65 to 74 in arr1[] and numbers from 97 to 106 in arr2[].Whenever we mentioned ‘A’ it is replaced with by its ascii value 65,where as ‘a’ is replaced by its ascii value 97.Therefore,the operation ‘A’ + i is perfectly acceptable, as it just adds value of I to 65.Once the values are stored in two arrays, the difference of values, i.e 32,is printed through the printf().

Question No: 9 of 25
#include
main()
{
	static int b[]={10,20,30,40,50};
	int i;
	for(i=0;i<=4;i++)
		printf("%d\t",i[b]);

}
What will be the output of the above program? 
Options:
  1. Syntax Error
  2. Compilation Error
  3. 10 20 30 40 50
  4. Run time error
View Answer/Explanation:
c
Explanation:

Question No: 10 of 25
In the given program which line of code will shows the error?
main()
{
  int arr[25],i;
  for(i=0;i<=100;i++)
  {
    arr[i]=100;
    printf(“%d”,arr(i));
  }
} 
Options:
  1. Compilation Error
  2. arr(i)=100
  3. In printing statement
  4. No output
View Answer/Explanation:
a
Explanation:
For arrays c uses square brackets, where as basic or forton use paranthesis. The moment the compiler finds (), it expects a reference to a function , and arr has not been defined as a function .Hence the error message.

  1