0% found this document useful (0 votes)
2 views2 pages

G10 Arrayws

The document is a worksheet for Computer Applications for Std X, containing various programming tasks related to arrays. It includes assignments such as displaying vowels from characters, sorting numbers, finding maximum values, and performing searches. Additionally, it contains theoretical questions about arrays and sorting/searching algorithms.

Uploaded by

bei7igz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

G10 Arrayws

The document is a worksheet for Computer Applications for Std X, containing various programming tasks related to arrays. It includes assignments such as displaying vowels from characters, sorting numbers, finding maximum values, and performing searches. Additionally, it contains theoretical questions about arrays and sorting/searching algorithms.

Uploaded by

bei7igz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Array Worksheet

Subject: Computer Applications Std: X

1) WAP to assign 10 characters into an array and display all the vowels present in it.
2) WAP to assign 5 names into the array and Display each element in uppercase along with the length of
it.
3) Write a program to accept any 10 nos into an array and display all the elements in different lines.
4) WAP to accept the 10 values and display the prime index position values present in it.
5) Write a program to accept the marks of the students and find the maximum and minimum marks
scored by a student.
6) Write a program which accepts ten names into an array and display them in uppercase.
7) Write a program to accept cities and the temp and find the city who got the maximum temp.
8) Write a program to accept the age of employees in an array and find the no:of employees who are in
the given range. 22 to 30, 31 to 40, 41 to 50 and 51 to 60.
9) WAP to accept the salary of the employees and find the employees who got the salary above 50000.
10) WAP to accept the marks scored by the students and find the student who got the maximum marks.
11) WAP to accept any 10 numbers in an array and find the sum of all even numbers and odd num
present in it.
12) WAP to accept any 10 nos in an array and display the nos in ascending order using bubble sort
13) WAP to accept any 10 nos in an array and display the nos in descending order using selection sort.
14) WAP to accept any five states in an array and the corresponding capital cities in another array.
15) Accept to input for state and display the corresponding capital if found in the array using linear
search.
16) WAP to accept any 10 characters in an array and an element and search the element using binary
search.
17) WAP to accept 10 double values into an array and also accept a double value and display the position
of that value present in the array using binary search.
18) WAP to sort the string in descending order using selection sort.
19) WAP to accept the names of the students and the roll nos in the arrays and accept the roll no and find
the roll no if found and display the name and the corresponding roll no,
20) WAP to accept any five fruit names and display in ascending order (Lexical order) using bubble sort.
21) WAP to accept to any 10 cities and the temp of it. Display the records in the ascending order using
bubble sort.
22) WAP to accept a number and extract the digit and store it in an array. Display the digits in ascending
order using selection sort.
23) WAP to accept any 10 nos in an array and display all the prime numbers and the composite numbers
present in it.
24) WAP to accept two arrays and merge those two arrays and display it.
25) WAP to accept five elements in an array and accept an element and delete that element from the
given array.
26) WAP to accept an element and the position from the user and insert an element into the array.
27) WAP to accept a double dimensional array of size 4X4 and perform the following :
a) Sum of each rows.
b) Sum of each column
c) Sum of right diagonal
d) Sum of left diagonal
e) Sum of all the elements
28) Answer the following:
a) What is an array?
b) What is subscripted variable and subscript?
c) Name the two types of array?
d) Give the difference between linear search and binary search.
e) Give the difference between bubble sort and selection sort.
f) Give the difference between length and length().

You might also like