National Academy of Science & Technology
Secondary School
Dhangadhi, Kailali
๐บ๐๐๐๐๐๐๐ ๐ถ๐ ๐ช๐๐๐๐๐๐๐ ๐บ๐๐๐๐๐๐ 2077
SUBJECT: - Computer Science
1. Define OS. Differentiate between System software and Application software. 5 |
Grade: XI (Science) F.M.: 50
Time: 2 Hrs. P.M.: 22
Group - "A" (Multiple Choice Questions)
Attempt all the questions. 9 x 1 = 9
1. The Generation of AI is
--5๐๐ ๐๐๐
2. Which of the following is the 10’s complement of 9?
=1
3. What is the speed of computer measured in?
=Gigahertz
5. Which operator is used to start for enter the formula in in Excel cell?
a. $ b. @ c. = d. +
๐๐๐๐๐๐ ๐๐ ๐.=
6. ……refers to the technique used for verifying the integrity of the message?
=Digital signature
7. HTML is a …… Language
int main() {
int n, data[100], i, j, temp;
/* get the number of entries */
printf("Enter your input for n:");
scanf("%d", &n);
/* get the input data */
for (i = 0; i < n; i++)
scanf("%d", &data[i]);
/* sort the given data in ascending order */
for (i = 0; i < n-1; i++) {
for (j = i + 1; j < n; j++) {
if (data[i] > data[j]) {
temp = data[i];
data[i] = data[j];
data[j] = temp;
}
}
}
/* data in ascending order */
printf("Ascending Order:\n");
for (i = 0; i < n; i++)
printf("%d\n", data[i]);
/* data in descending order */
printf("\nDescending Order:\n");
for (i = n-1; i >= 0; i--)
printf("%d\n", data[i]);
return 0;
}
Enter your input for n:5
300
100
500
200
400
Ascending Order:
100
200
300
400
500
Descending Order:
500
400
300
200
100
Post a Comment