Looking for reliable SEBA Class 10 Computer Science Chapter 6 (Arrays in C) extra questions and answers for the 2026–27 academic year? Access important C array practice programs, 1D and 2D array traversal logic, memory calculation questions, string array concepts, and exam-oriented revision materials to score top marks in your HSLC board exams.

Q.1. What is an array in C?

Answer: An array is a collection of elements of the same data type stored in contiguous memory locations under a single name.

Q.2. Why are arrays used in C?

Answer: Arrays are used in C to store multiple values in a single variable, which simplifies program structure and reduces code complexity.

Q.3. What is the syntax to declare an array in C?

Answer: The syntax to declare an array in C is datatype array_name[size];.

Q.4. Give an example of an array declaration.

Answer: An example of an array declaration in C is int marks[5];.

Q.5. What is the index of the first element of an array in C?

Answer: The index of the first element of an array in C is always 0.

SEBA Class 10 Computer Science Chapter 6 Extra Questions

Q.6. How can you access the 3rd element of an array named num?

Answer: You can access the 3rd element of an array named num by using the syntax num[2].

Q.7. What is meant by the size of an array?

Answer: The size of an array refers to the total number of elements that the array can store.

Q.8. What is the last index of an array with a size of 10?

Answer: The last index of an array with a size of 10 is 9.

Q.9. Can an array hold elements of different data types?

Answer: No, an array cannot hold elements of different data types; all elements within an array must be of the same data type.

Q.10. What is the difference between the declaration and initialization of an array?

Answer: Array declaration reserves the required memory space for elements, whereas array initialization assigns initial values to those allocated memory locations.

Class 10 Computer Science Chapter 6 Important Questions SEBA 2026-27

Q.11. How can you initialize an array at the time of declaration?

Answer: You can initialize an array at the time of declaration by assigning values within curly braces, such as int a[5] = {1, 2, 3, 4, 5};.

Q.12. What happens if fewer values are provided during array initialization than its specified size?

Answer: If fewer values are provided during initialization, the remaining array elements are automatically set to 0.

Q.13. What is the purpose of array indexing?

Answer: The purpose of array indexing is to identify and access individual elements within the array using their specific positional numbers.

Q.14. Can the size of a standard array be changed at runtime in C?

Answer: No, the size of a standard array cannot be changed at runtime in C because its size must be defined at compile time.

Q.15. What is a one dimensional array?

Answer: A one dimensional array is an array that stores a list of elements sequentially in a single row or column.

Arrays in C Class 10 SEBA Extra Question Answer

Q.16. What is a two dimensional array?

Answer: A two dimensional array is an array that stores elements in a grid structure consisting of rows and columns (matrix form).

Q.17. How do you declare a two dimensional array in C?

Answer: You declare a two dimensional array in C by specifying both row and column sizes, such as int a[3][4];.

Q.18. What is the total number of elements in an array declared as int a[4][5];?

Answer: The total number of elements in int a[4][5]; is 20, which is calculated by multiplying the number of rows by the number of columns ($4 \times 5 = 20$).

Q.19. How do you access a specific element in a two dimensional array?

Answer: You access an element in a two dimensional array by specifying its row and column indices using the format a[row_index][column_index].

Q.20. What is array traversal?

Answer: Array traversal is the process of accessing or visiting every element of an array exactly once in order to process it.

SEBA Class 10 Computer Science Chapter 6 Practice Programs

Q.21. How can you calculate the length of an array in C?

Answer: You can calculate the length of an array in C using the formula int length = sizeof(arr) / sizeof(arr[0]);.

Q.22. What is the base address of an array?

Answer: The base address of an array is the memory address of its very first element, represented as &arr[0].

Q.23. Can you input array elements using a loop?

Answer: Yes, you can input array elements iteratively by using a for loop combined with an input function like scanf().

Q.24. What is the primary advantage of arrays over individual variables?

Answer: The primary advantage of arrays is that they allow efficient management and manipulation of large collections of data using loops under a single variable name.

Q.25. What are the main limitations of arrays in C?

Answer: The main limitations of arrays are their fixed size, which cannot be changed after declaration, and their restriction to holding elements of only one data type.

HSLC Computer Science Arrays in C Important Questions

Q.26. What is meant by array overflow?

Answer: Array overflow occurs when a program attempts to read or store data beyond the allocated boundary or declared size of an array.

Q.27. How do you pass an array to a function in C?

Answer: You pass an array to a function in C by passing its name, which acts as a pointer to the base address of the array.

Q.28. What is an array element?

Answer: An array element is a single individual value stored at a specific index location within an array.

Q.29. How do you print all the elements of an array?

Answer: You print all elements of an array by using a loop to iterate through each index, such as
for(i = 0; i < n; i++) { printf("%d ", arr[i]); }.

Q.30. What is the difference between an array and a pointer in C?

Answer: An array is a container that holds multiple data values of the same type in memory, whereas a pointer is a variable that stores the memory address of another variable or array element.

Class X Computer Science: Array Programming Questions in C

Q.31. Write a C program to input 5 numbers into an array and display them.    

Code:    

#include<stdio.h>

int main()
{
int arr[5], i;
for(i=0; i<5; i++)
{
printf(“Enter number: “);
scanf(“%d”, &arr[i]);
}
printf(“Array elements: “);
for(i=0; i<5; i++)
printf(“%d “, arr[i]);
return 0;
}

Output:    

  text

Enter number: 10
Enter number: 20
Enter number: 30
Enter number: 40
Enter number: 50
Array elements: 10 20 30 40 50

Q.32. Write a C program to find the sum of all elements in an array.    

Code:    

#include<stdio.h>

int main()
{
int arr[5] = {10, 20, 30, 40, 50}, sum = 0, i;
for(i=0; i<5; i++)
sum += arr[i];
printf(“Sum = %d”, sum);
return 0;
}

Output:    

  text

Sum = 150

Q.3. Write a C program to find the largest number in an array.    

Code:    

#include<stdio.h>

int main()
{
int arr[5] = {25, 65, 12, 90, 45}, max, i;
max = arr[0];
for(i=1; i<5; i++) if(arr[i] > max)
max = arr[i];
printf(“Largest = %d”, max);
return 0;
}

Output:    

  text

Largest = 90

Q.34. Write a C program to find the smallest number in an array.    

Code:    

  

#include<stdio.h>

int main()
{
int arr[5] = {25, 65, 12, 90, 45}, min, i;
min = arr[0];
for(i=1; i<5; i++)
if(arr[i] < min)
min = arr[i];
printf(“Smallest = %d”, min);
return 0;
}

Output:    

  text

Smallest = 12

Q.35. Write a C program to count the total number of even and odd numbers in an array.    

Code:    

  

#include<stdio.h>

int main()
{
int arr[6] = {10, 15, 20, 25, 30, 35}, even=0, odd=0, i;
for(i=0; i<6; i++)
{
if(arr[i]%2==0)
even++;
else
odd++;
}
printf(“Even = %d, Odd = %d”, even, odd);
return 0;
}

Output:    

  text

Even = 3, Odd = 3

Q.6. Write a C program to search for a specific element in an array.    

Code:    

  

#include<stdio.h>

int main()
{
int arr[5] = {10, 20, 30, 40, 50}, i, x, found=0;
printf(“Enter element to search: “);
scanf(“%d”, &x);
for(i=0; i<5; i++)
if(arr[i]==x)
found=1;
if(found)
printf(“Element found”);
else
printf(“Element not found”);
return 0;
}

Output (If element exists):    

  text

Enter element to search: 30
Element found

Output (If element does not exist):    

  text

Enter element to search: 99
Element not found

Q.37. Write a C program to display the elements of an array in reverse order.    

Code:    

  

#include<stdio.h>

int main()
{
int arr[5] = {1, 2, 3, 4, 5}, i;
printf(“Reversed array: “);
for(i=4; i>=0; i )
printf(“%d “, arr[i]);
return 0;
}

Output:    

  text

Reversed array: 5 4 3 2 1

Q.38. Write a C program to calculate the average of elements in an array.    

Code:    

#include<stdio.h>

int main()
{
int arr[5] = {10, 20, 30, 40, 50}, sum=0, i;
for(i=0; i<5; i++)
sum += arr[i];
printf(“Average = %.2f”, (float)sum/5);
return 0;
}

Output:    

  text

Average = 30.00

Q.39. Write a C program to sort the elements of an array in ascending order.    

Code:    

  

#include<stdio.h>

int main()
{
int arr[5] = {30, 10, 40, 20, 50}, i, j, temp;
for(i=0; i<5; i++) for(j=i+1; j<5; j++) if(arr[i]>arr[j])
{
temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
printf(“Sorted array: “);
for(i=0; i<5; i++)
printf(“%d “, arr[i]);
return 0;
}

Output:    

  text

Sorted array: 10 20 30 40 50

Q.40. Write a C program to merge two arrays into a third array.    

Code:    

#include<stdio.h>

int main()
{
int a[3] = {1, 2, 3}, b[3] = {4, 5, 6}, c[6], i, j;
for(i=0; i<3; i++)
c[i] = a[i];
for(j=0; j<3; j++)
c[i+j] = b[j];
printf(“Merged array: “);
for(i=0; i<6; i++)
printf(“%d “, c[i]);
return 0;
}

Output:    

  text

Merged array: 1 2 3 4 5 6

💻 Updated Extra Questions Guide Notice: This page features an extensive collection of SEBA Class 10 Computer Science Chapter 6 (Arrays in C) Extra Questions and Detailed Answers updated for the 2026–27 academic session. All additional C programming code snippets, array manipulation practice questions, and conceptual notes strictly follow the latest revised Assam Board (SEBA) curriculum.

💡 Ace Your HSLC Computer Science Exam:

Leave a Reply

Your email address will not be published. Required fields are marked *