Sie sind auf Seite 1von 4

PAPER 1 ASPIRE TECHIES QUESTION PAPER - I

ASPIRE TEECHIES

1. What is the output of the following Program segment. int main { int i = 10; printf(%d %d %d %d,++i, i++, ++i, ++i); return 0; } 2. Write a single statement for the following two statements. char *p; p = (char *)malloc(100); 3. Represent the following array in pointer format. A[i][j][k][l] 4. What is the output of the following program segment?
int main() { static char *s[] = {black,white,pink,violet}; char **ptr[]= {s+3, s+2, s+1, s}, ***p; p = ptr; ++p; printf(%s, **p+1); return 0; }

5. What is the output of the following program segment?


int main() { char str[20] = Hello; char *const p = str; *p = M; printf(%s \n, str); return 0; }

PAPER 1 6. What is the output of the following program segment?


int main() { int ***r, **q, *p, i = 8; p = &i; q = &p; r = &q; printf(%d %d %d, *p, **q, ***r); return 0; }

ASPIRE TEECHIES

7. What is the output of the following program segment?


int *check(static int, static int); int main() { int *c; c = check(10,20); printf(%d,*c); return 0; } int *check(static int i, static int j) { int *p, *q; p = &i; q = &j; if (i >= 45) return (p); else return (q); }

8. What will be the output of the following program segment if pointer size is 2 bytes & 4 bytes
int main() { printf(%d %d,sizeof(null), sizeof()); return 0; }

9. What will be the output of the following program segment?


int main() { int arr[2][2][2] = {10, 2, 3, 4, 5, 6, 7, 8}; int *p, *q; p = &arr[1][1][1]; q = (int *) arr; printf(%d %d, *p, *q); return 0; }

PAPER 1 10. What will be the output of the following program segment?
int main() { int arr[3] = {2, 3, 4}; char *p; p = arr; p = (char*) ((int *)(p)); printf(%d ,*p); p = (int *) (p+1); printf(%d, *p); return 0; }

ASPIRE TEECHIES

11. A man buys an article for Rs.27.50 and sells it for Rs.28.60 Find the gain percent 12. . If a radio is purchased for Rs 490 and sold for Rs 465.50 Find the loss%? 13. Find S.P when C.P=Rs 56.25 and Gain=20% 14. Find S.P when C.P=Rs 80.40,loss=5% 15. Find C.P when S.P=Rs 40.60,gain=16%? 16. Find C.P when S.P=Rs 51.70 ,loss=12%? 17. A person incurs 5% loss by selling a bat for Rs 1140 . At what price should the watch be sold to earn 5% profit? 18. If the cost price is 96% of the selling price,then what is the profit percent? 19. If an article is sold at 5% gain instead of 5% loss,the seller gets Rs 6.72 more. The C.P of the article is? 20. The price of an article including the sales tax is Rs 616.The rate of sales tax is 10%,if the shopkeeper has made a profit of 12%,then the cost price of the article is? 21. Mayank Bothra purchased 20 dozens of toys at the rate of 375 Rs per dozen .He sold each one of then at the rate of Rs 33.What was his percentage profit? 22. Vipin bought paper sheets for Rs 7200 and spent Rs 200 on transport. Paying Rs 600,he had 330 boxes made,which he sold at Rs 28 each. His profit percentage is? 23. A person earns 15% on investment but loses 10% on another investment .If the ratio of the two investments be 3:5 ,what is the gain or loss on the two investments taken together? 24. The profit earned by selling an article for Rs 900 is double the loss incurred when the same article is sold for Rs 450 .At what price should the article be sold to make 25% profit? 25. If an article is sold at 5% gain instead of 5% loss,the seller gets Rs 6.72 more. The C.P of the article is? 26. Two discounts of 40% and 20% equal to a single discount of? 27. Find C.P when S.P=Rs 51.70 loss=12%?

PAPER 1 28. Find C.P when S.P=Rs 40.60,gain=16%? 29. Find S.P when C.P=Rs 80.40,loss=5%?

ASPIRE TEECHIES

30. If a radio is purchased for Rs 490 and sold for Rs 465.50 Find the loss%? 31. A person incurs 5% loss by selling a watch for Rs 1140 . At what price should the watch be sold to earn 5% profit? 32. If the cost price is 96% of the selling price,then what is the profit percent? 33. A discount dealer professes to sell his goods at cost price but uses a weight of 960 gms for a Kg weight .Find his gain %? 34. A man sold two flats for Rs 675,958 each .On one he gains 16% while on the other he losses 16%.How much does he gain or lose in the whole transaction? 35. A man sold two geans at Rs 1995 each. On one he lost 10% and on the other he gained 10%.what his gain or loss percent? 36. The price of an article is reduced by 20%. in order to restore the original price, the new price must be increased by what %? 37. Sam purchased 20 dozens of toys at the rate of 375 Rs per dozen .He sold each one of then at the rate of Rs 33.What was his percentage profit? 38. Two third of consignment was sold at a profit of 5% and the remainder at a loss of 2%.If the total profit was Rs 400,the value of the consignment was? 39. Kunal bought a suitcase with 15% discount on the labeled price. He sold the suitcase for Rs 2880 with 20% profit on the labeled price .At what price did he buy the suitcase? 40. A tradesman gives 4% discount on the marked price and gives an article free for buying every 15 articles and thus gains 35%. The marked price is above the cost price by suppose a customer takes away 16 items costing 10 each. 41. By selling 33m of cloth ,one gains the selling price of 11m.Find the gain percent? 42. The price of a jewel, passing through three hands, rises on the whole by 65%.if the first and second sellers earned 20% and 25% profit respectively, find the percentage profit earned by the third seller? 43. When a producer allows 36% commission on the retail price of his product ,he earns a profit of 8.8%.what would be his profit percent if the commission rate is changed to 12% *** *** ***

Das könnte Ihnen auch gefallen