MCQ'S Answers:
1. The average - 18yrs
2. The average age 5 - 18yrs 9 months
3. The average age - 42.8
4. 10 sheep - 300rs
5. If a,b,c,d,e - c
6. A group of - 24
7. Out of three - 6
8. The average weight - 61kgs
9. A batsman - 35
10. A,b,c - 60kgs
11. A courier clerk weighs 4 - not
12. A courier clerk - 750 grams
13. Five friends - 20 rs
14. The average of 10 - 2
15. Average marks - 54
16. The average age of six - 26.4 yrs
17. Three girls a,b,c - 92 kgs
18. Two groups - 3:2
19. The average age of 12 - 9 years
20. The average of 50 - 2,26
21. The average of 70 - 300,52
22. Six friends eat - 948 rs
23. The average age of 6 - 24 years
24. The average of a - 20
25. The average of 8 - 168
Program answers:
Reversed Sum of Pairs (Id - 5292)
#include <stdio.h>
#include <stdlib.h>
int main(){
int n;
scanf("%d ",&n);
int arr[n];
for(int i=0;i<n;i++){
scanf("%d ",&arr[i]);
}
for(int i=n-1;i>0;i-=2){
printf("%d ",arr[i]+arr[i-1]);
}
if(n%2!=0){
printf("%d ",arr[0]);
}
}
}
Matrix Print Excluding Border elements (Id - 5295)
#include <stdio.h>
#include<stdlib.h>
int main()
{
int n,a;
scanf("%d ",&n);
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
scanf("%d ",a);
if(i>0 && i<n-1 && j>0 && j<n-1){
printf("%d ",a);
}
}
if(i>0 && i<n-2){
printf("\n");
}
}
}
2 Comments
Where is the 6 to 9 pm test in skillrack?? I can't find it
ReplyDeleteUnder the code test.. Provided your college has enrolled in that
ReplyDelete