CDac CCAT Question Paper

CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING DAC CCAT GUESS PAPER for Jun-Jul 2013 Duration: 120 min Each question shal

Views 82 Downloads 9 File size 397KB

Report DMCA / Copyright

DOWNLOAD FILE

Recommend stories

Citation preview

CENTRE FOR DEVELOPMENT OF ADVANCED COMPUTING

DAC CCAT GUESS PAPER for Jun-Jul 2013 Duration: 120 min Each question shall carry one mark. There will be a negative marking i.e., quarter (0.25) mark will be deducted for every wrong answer.

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

Who invented Analytical Engine? 1. John von Neumann 2. Charles Babbage 3. Both 1 and 2 4. None of the Above In which generation Transistors came in to picture? 1. First 2. Second 3. Third 4. Fourth Choose the correct statement: If X is a Boolean variable then 1. 0 + X =X 2. 1+X=X 3. X + X’= X 4. X + X’ = 0 Which of the following system software resides in main memory always? 1. Text editor 2. Assembler 3. Linker 4. Loader The name for the way that computers manipulate data into information is called__________. 1. Programming 2. Processing 3. Storing 4. Organizing Data coded in the form of small lines are known as__________. 1. Data Code 2. Bar Code 3. Magnetic Code 4. All of the above Which replacement policy sometimes leads to more page faults when the size of the memory is increased? 1. First In First Out 2. Least Recently Used 3. No such policy exists 4. None of the above A railway track is an example of__________. 1. Simplex 2. Half-duplex 3. Full-duplex 4. All of the above Which is from the following device capable of changing signals from one form to another? 1. Transducer 2. Transformer 3. Amplifier 4. None of the above A set of computers interconnected together to from a client-server computing environment is collectively known as___________. 1. Client server Computing 2. Distributed Systems 3. Both 1 and 2 4. None of the above

DAC CCAT GUESS PAPER Jun-Jul 2013

11.

12.

13.

14.

15.

16.

17.

18.

19.

20.

21.

Size of char constant is 1. 1 2. 4 3. 2 4. 0 Data stored in computer memory is in 1. binary 2. character 3. decimal 4. hexadecimal Variable can be a 1. Const 2. Volatile 3. Both 1 & 2 4. None of the above Which of the following is invalid identifier? 1. scanf 2. 12xyz 3. printf 4. xyz12 Which of the following is type of scope? 1. Function 2. Prototype 3. Block 4. All of the above To use printf you need a _________ file 1. studio.h 2. stdio.h 3. stdio.c 4. conio.h Global variables that are declared static are _______. 1. Internal to the current translation unit 2. Visible to all translation units 3. Allocated on the heap 4. Read-only subsequent to initialization What is the function of getche()? 1. Gets character from user & show output on the screen 2. Shows the output to user 3. Get character from user and echoes to the screen 4. Get character from user and does not echo to screen In a C program, the first statement that will be executed is: 1. The first executable statement of the program. 2. The first executable statement of the end function. 3. The first executable statement after the comment /*start here*/ 4. The first executable statement of the main() function. A value that is acted upon by an operator is known as __________ 1. Operand 2. Operator 3. Expression 4. None of the above Which of the following statement is true? 1. The else statement is executed when the condition is true. 2. The else statement cannot be another twoway selection. 3. The else statement can be a null statement. 4. None of the above Page 1 of 1

ACTS, Head Quarters, Pune 22.

23.

24.

25.

26.

27.

28.

Which of the following statement is true? a. An expression is a sequence of operands and operators. b. Expressions always reduce to a single value. 1. Only a 2. Only b 3. Both a and b 4. None of the above What is the output of following program? #include void main() { int c=- -2; printf("c=%d",++c); } 1. 2 2. 3 3. Compile time error 4. Run time error What will be the output of following program? #include void main() { int a=-2, b=1, c=0, d; d=++a||++b||- -c; printf("%d %d",c,d); } 1. 00 2. 11 3. 01 4. 10 What will be the output of following program? #include void main() { unsigned char i=0x32; printf("%d",i>>1 ); } 1. 25 2. 50 3. 75 4. 100 Which of the following having lowest precedence? 1. ++ 2. ! 3. 4. Comma operator What would be output of the following program? #include void main() { printf("%p",main); } 1. Compile time error 2. Runtime error 3. Some address will be printed 4. None of the above What will be the output of following program? #include void main() { int n=0; switch (n++) { case 0 : printf (" %d ",n++); case 1 : printf (" %d ",++n); case 2 : printf (" %d ",n++);

DAC CCAT GUESS PAPER Jun-Jul 2013

29.

30.

31.

32.

case 3 : printf (" %d ",++n); case 4 : printf (" %d ",n++); break; } } 1. 1 2. 2 3. 11355 4. 13355 What will be the output of following program? #include void main() { char n='+'; int a=10,b=20; switch (n) { case '-': printf ("%d",b-a); break; case '+': printf ("%d",b+a); break; default : printf("A=%d B=%d",a,b); }} 1. 10 2. 30 3. A=10 B=20 4. None of these Which of the following is/are true about 'While Loop’? A. It is entry controlled B. Code in loop body executed until loop condition is false C. Increment Variable is must 1. A 2. A&B 3. B&C 4. None of these What will be the output of following program? #include void main() { int i=0; while(i 0 && 1) { printf(" %d",++i); i++; } } 1. 02468 2. 13579 3. Error 4. None of these Predict error from the following? #include void main() { do { printf("C-DAC"); }while(0) printf("ACTS"); } 1. Undefined symbol '0' 2. Possibly incorrect assignment 3. Declaration syntax error 4. None of these Page 2 of 2

ACTS, Head Quarters, Pune 33.

34.

35.

36.

What will be the output of following program? #include void main() { int i; for(i=0;ivar; struct is an _________. 1. Identifer 2. Constant 3. User defined variable 4. keyword What are the difference between a queue and a stack? 1. Queues require linked lists, but stacks do not. 2. Stacks require linked lists, but queues do not. 3. Queues use two ends of the structure; stacks use only one. 4. Stacks use two ends of the structure; queues use only one. Which of the following stack operations would result in stack underflow? 1. Peek 2. Pop 3. Push 4. Two or more of the above answers. Which is the best data structure to check whether an arithmetic expression has balanced parenthesis or not? 1. Queue 2. Stack 3. Tree 4. Link list Which of the following finds if the string A contains "abc"? 1. printf("%sabc\\n", A); 2. strcmp(A, "abc"); 3. strstr(A, "abc"); 4. strchr(A, "abc"); Which of following is the correct definition for a string variable? 1. string mystr; 2. string mystr[20]; 3. char mystr; 4. char mystr[20]; What is a proper method of opening a file for writing as binary file? 1. FILE *f = fwrite( "test.bin", "b" ); 2. FILE *f = fopenb( "test.bin", "w" ); 3. FILE *f = fopen( "test.bin", "wb" ); 4. FILE *f = fwriteb( "test.bin" );

DAC CCAT GUESS PAPER Jun-Jul 2013

Edited by Foxit Reader Copyright(C) by Foxit Corporation,2005-2009 For 54. Evaluation enum isOnly. a user defined data type similar to:

55.

56.

57.

58.

59.

60.

61.

62.

63.

64.

1. structure 2. class 3. Both 1 & 2 4. None of the above. Libraries that allow you to use several well-known kinds of data structures without having to program them in C++ are known as: 1. Standard Template Library 2. Template Library 3. Simple Library Template 4. Template Library Functions. char *const ptr=”CDAC”; Which of the following hold true? 1. Const pointer to char 2. Pointer to const char 3. Pointer to char string 4. Invalid declaration. Suppose cursor points to a node in a linked list (using the node definition with member functions called data and link). What Boolean expression will be true when cursor points to the tail node of the list? 1. (cursor->data == NULL) 2. (cursor == NULL) 3. (link ->data( ) == 0.0) 4. (data -> cursor ( ) == NULL) What kind of list is best to answer questions such as "What is the item at position n?" 1. Lists implemented with an array 2. Simple lists 3. Lists implemented with queue 4. None of the above In which data structure, elements can be added or removed at both end and middle? 1. Stack 2. Queue 3. Linked list 4. Array The node of doubly linked list must have 1. One data and two address fields 2. One data and one address fields 3. Two data and two address fields 4. One data and three address fields What is true about Circular list? 1. The list is infinite 2. The list is finite and each node has a successor 3. Both 1 and 2 4. None of the above How to remove a node from linked list? 1. By linking its successor to its predecessor. 2. By linking its predecessor to its successor. 3. By deleting all the nodes and again adding it. 4. None of the above. If the queue is implemented using linked list, where does the enqueue operation take place? 1. At the Head 2. At the Tail 3. After all other entries those are greater than the new entry. 4. None of the above. Choose the correct spelling of word and fill the sentence with correct meaning. The ______ was bleating and looking for her lamb. 1. You 2. Yew 3. Ewe 4. Awe Page 4 of 4

ACTS, Head Quarters, Pune 65.

66.

67.

68.

69.

70.

71.

72.

73.

74.

75.

Which word is the odd one? 1. Small 2. Beautiful 3. Weight 4. Slim Which is the word Synonyms to ‘Augment’? 1. Selfish 2. Wise 3. Increase 4. Appropriate Which is the word Synonyms to ‘Benign’? 1. Approval 2. Kind 3. Shameful 4. Bored Which is the word Synonyms to ‘Atrocity’? 1. Agreeable 2. Friendly 3. Shock 4. Brutal deed Which is the word Synonyms to ‘Vivacious’? 1. Shy 2. Lively 3. Sad 4. Ghost Which is the word Synonyms to ‘Willful’? 1. Analyze 2. Determined 3. Decline 4. Bias Cockroach is related to Antennae in the same way, as Man is related to__________. 1. Arm 2. Body 3. Color 4. None of the above Hot air is related to Balloon in the same way as Sails is related to______. 1. Motorboat 2. Aero plane 3. Ship 4. None of the above In the following questions, a group of three interrelated words is given. Choose a word from the given alternatives that belongs to the same group. Hair: Fur: Feather:? 1. Leather 2. Paper 3. Grass 4. Cloth He told me to keep his secret __________. 1. To myself 2. In myself 3. Amongst us 4. In between us The following questions consist of two words. Each has a certain relation with the other, followed by four lettered pair of words. Select the pair that has the same relation as the original pair of words Food: Gourmet 1. Sports: Fans 2. Craft: Skill 3. Art: Connoisseur 4. None of the above

DAC CCAT GUESS PAPER Jun-Jul 2013

76.

77.

78.

79.

80.

81.

82.

83.

84.

The following questions consist of two words. Each has a certain relation with the other, followed by four lettered pair of words. Select the pair that has the same relation as the original pair of words. Doubt: Faith 1. Atheist: Religious 2. Skeptic: pious 3. Cerebral: Dull 4. Impolite: Courteous Choose the word for each blank that best fits the meaning of the sentence as a whole. We lost confidence in him because he never ________ the grandiose promises he had made. 1. Forgot about 2. Delivered on 3. Reneged on 4. Tired of Choose the word for each blank that best fits the meaning of the sentence as a whole. To the dismay of the student body, the class president was ________ berated by the principal at a school assembly. 1. Ignominiously 2. Privately 3. Magnanimously 4. Fortuitously Choose the best suitable antonym of the given word. Robust 1. Gratitude 2. Tact 3. Weak 4. Generosity Choose the best suitable antonym of the given word. Abrupt 1. Clandestinely 2. Gradual 3. Simply 4. Fashionably Find out the missing number in the sequence: 1,3,3,6,7,9,? , 12,21. 1. 10 2. 11 3. 12 4. 13 If BURNER is coded as CASOIS then how will ALIMENT be coded? 1. EMONIOU 2. BKJLFMU 3. EROSITU 4. EKOLIMS If FRAGRANCE is written as SBHSBODFG, how can IMPOSING be written? 1. NQPTJOHJ 2. NQPTJHOJ 3. NQTPJOHH 4. None of the above In a family of 8 members A, B, C, D, E, F, G and H A is the father of C But C is not his son. E is the daughter of C. F is the spouse of A. B is brother of C. D is the son of B. G is the spouse of B. H is the father of G. Who is son of F? 1. C 2. B 3. A 4. G Page 5 of 5

ACTS, Head Quarters, Pune 85.

86.

87.

88.

89.

90.

91.

92.

93.

Six persons A, B, C, D, E and F are sitting in two rows, three in each. E is not at the end of any row. D is second to the left of F. C the neighbor of E is sitting diagonally opposite to D. B is the neighbor of F Which of the following are in same row? 1. A and E 2. E and D 3. C and B 4. C and D In training for a competition, you find that swimming downstream (with the Flow) in a river, you can swim 2 miles in 40 minutes, & upstream (against the Flow), you can swim 2 miles in 60 minutes. How long would it take you to swim a mile in still water? 1. 25 Minutes 2. 50 Minutes 3. 24 Minutes 4. None of these A watch reads 3.15. If the minute hand points east, in which direction will the hour hand points. 1. East 2. North-east 3. South-east 4. South If A is to the south of B and C is to the east of B in what direction is A with respect to C? 1. North-east 2. North-west 3. South-east 4. South- west If first letter is interchanged by second, third by fourth, fifth by sixth and so on in the word HABILITATE then which will be the 8th letter from your left in the new word? 1. L 2. E 3. T 4. A How many such letter-pairs are there in the word MONKEY having same no. of letters left between them as they have in the series? 1. 3 2. 4 3. 1 4. 5 How many 3's are there in the following number series, which are preceded by an odd number but not followed by an even number? 3425315213673182785391345235435 1. One 2. Two 3. Three 4. More than four If the numbers, which are divisible by 4, from 4 to 84, are written in reverse order then which number will be at the 7th place? 1. 60 2. 28 3. 20 4. 32 If * means addition, - means division, / means subtraction and +_ means multiplication then which of the following equation is correct. 1. 16*5/10+4-3 =19 2. 16+5/10*4-3=9

DAC CCAT GUESS PAPER Jun-Jul 2013

94.

95.

96.

97.

98.

99.

100.

101.

102.

103.

104.

3. 16+5-10*4/3=9 4. 16-5*10/4+3=12 If A+D > C+D, C+D=2B and B+E > C+D, it necessarily follows that 1. A+B > 2D 2. D+B > C+E 3. A+D > B+E 4. A+D > B+C Which of the following programming technique focuses on algorithm? 1. Procedural language 2. Object oriented language 3. Object based language 4. Structural language What are the various ways in which an algorithm can be represented? 1. programs 2. flowcharts 3. decision tables 4. All of the above Pseudocode is used for __________. 1. Writing code 2. Planning program logic 3. Coding the program 4. None of above Which is the good algorithm for sorting data? 1. Quick sort 2. Insertion sort 3. Bubble sort 4. None of the above Decision table is used for 1. Taking decision in software 2. Defining complex program logic 3. Designing algorithm 4. Both Designing algorithm and flowchart In flowchart, square symbol is used for 1. Processing 2. Decision 3. Annotation 4. Auxilliary operation Decision table are useful to 1. Make decisions when computer is not available. 2. Make decisions if there are a large number of different branches within a program. 3. Make decision in software. 4. None of the above. Which control structures are used by Iteration logic? 1. IF…THEN, CASE 2. DO…WHILE, REPEAT…UNTIL 3. IF…THEN, IF…THEN…ELSE, CASE 4. All of the above Which language can be understood by computer without using translation program? 1. Assembly language 2. Machine language 3. High-level language 4. English language What is limitation of machine language that it is rarely used today? 1. Difficult to understand 2. Time consuming 3. Both 1 and 2 4. No limitation Page 6 of 6

ACTS, Head Quarters, Pune 105. Assembly language program get converted into its equivalent machine language by 1. Assembler 2. Linker 3. Loader 4. All of above 106. FORTRAN stands for _________ 1. For translation 2. For translator 3. Formula translation 4. Four translations 107. Which is not a scripting language 1. Perl 2. Javascript 3. Java 4. All of the above 108. The version of software released to selected users before commercial release is known as _______ 1. Alpha 2. Beta 3. Gamma 4. Theta 109. At which point the debugger stops during program execution and awaits further command 1. Check point 2. Break point 3. Watch point 4. None of the above 110. Which of the following information is contained in the system manual? 1. Special checks and security measures 2. List of error conditions 3. Loading and unloading procedures 4. None of the above 111. Collection of related information is called a _______. 1. Process 2. Thread 3. File 4. Hard disk 112. Attributes of a file does not include _________. 1. Date and time of its creation 2. Date and time of last access 3. Date and time of first update 4. Date and time of last update 113. Which of the following disk space allocation methods can be used only for sequential-access files? 1. Contiguous allocation 2. Linked allocation 3. Indexed allocation 4. None of the above 114. Which method is used to reduce the speed mismatch between slow I/O devices and comparatively faster CPU? 1. Paging 2. Spooling 3. Swapping 4. Cryptography 115. Which of the following is not a part of OOPs? 1. Multitasking 2. Information hiding 3. Polymorphism 4. Type checking

DAC CCAT GUESS PAPER Jun-Jul 2013

116. Which one of the following is the first fully Objectoriented language? 1. Simula. 2. Java. 3. C++. 4. Javascript. 117. Programming without inheritance is 1. Programming with abstract data types 2. Not object oriented 3. Object oriented 4. None of the above 118. Which one of the following is not an object-oriented language? 1. Java. 2. Eiffel. 3. Modula-2. 4. JavaScript. 119. To be accessed from a member function of a derived class, data in the base class must be _________. 1. public 2. default 3. protected 4. public or protected 120. What do you mean by passive objects? 1. Passive objects do not take part in the interaction between objects. 2. Passive objects are one, which passively waits for the message to be processed. It waits for another object that requires its services. In simple words it can be referred as server. 3. Both 1 and 2 4. None of the above 121. What is non-persistent object? 1. A non-persistent object is said to be transient or ephemeral. By default objects are considered as non-persistent. 2. It has no existence. 3. Both of 1 and 2 4. None of the above. 122. What is a Transient Object? 1. It cannot be serialized. 2. It temporary in nature. 3. Both 1 & 2. 4. None of the above 123. Demerits of the friend function include ________ 1. Objects according to the size of friend Members will occupy maximum size of the memory. 2. We can’t do any run time polymorphism concepts in those members. 3. Both of the 1 and 2 4. None of the above. 124. What is namespace? 1. A namespace is a collection of classes which logically belong together 2. Provides different names 3. Both of the above 4. None of the above 125. Which is/are the class member operators: 1. Dot operator (.) 2. Comma operator (,) 3. Dot with asterisk (. *) 4. All of the above. Page 7 of 7

ACTS, Head Quarters, Pune 126. Runtime polymorphism is achieved only when a virtual function is accessed through a_________ to the base class. 1. dot operator. 2. this operator 3. pointer. 4. None of the above. 127. A function declared in a base class that has no definition is a: 1. Pure Virtual function 2. Virtual function 3. Some inbuilt function 4. None of the above. 128. Which operator cannot be overloaded through friend functions? 1. *= 2. == 3. = 4. += 129. Member functions that return the value of an attribute of an object are called: 1. Destructors 2. Inspectors 3. Facilitators 4. Mutators 130. Abstract classes are mainly used with 1. Inheritance 2. Operator overloading 3. Serialization 4. None of the above. 131. Abstract class cannot be instantiated but references but pointers of the abstract class can exist. 1. True 2. False 3. Depends on compiler 4. Can’t say. 132. Data duplication in diamond inheritance is avoided by making the base class _________. 1. pure virtual 2. virtual 3. friend 4. generic 133. Reusability is done through inheritance that supports 1. ‘is a kind’ of relationship 2. ‘is a part’ of relationship 3. have relationship. 4. None of the above. 134. What is the day on 15 August 1947? 1. Tuesday 2. Monday 3. Friday 4. Sunday 135. The difference between the compound interest and the simple interest accured on an amount of Rs 18000 in 2 years is Rs.405. What was the rate of interest? 1. 25 2. 10 3. 15 4. 16 136. Six bells commence tolling together and toll at intervals 2,4,6,8,10 and 12 seconds respectively. In 30 minutes how many times they toll together? 1. 4 2. 10 3. 12 4. 16 DAC CCAT GUESS PAPER Jun-Jul 2013

137. How many positive integer solutions does the equation 2x+3y = 100 have? 1. 50 2. 33 3. 20 4. 16 138. A profit of Rs 450 is divided between two partners, one of whom has contributed Rs 1200 for 5 months and the other Rs 750 for 4 months. How much amount the second partner received? 1. Rs 425 2. Rs 300 3. Rs 150 4. None of the above 139. A positive number is by mistake divided by 6 instead of being multiplied by 6. What is the % error on the basis of correct answer? 1. 93 2. 97 3. 83 4. 92 140. How many 5 digit numbers can be formed from the digits 2,3,4,7,0 such that no digits is to be used more than once? 1. 96 2. 720 3. 5^5 4. 120 141. In how many permutations of the lettters of the word ‘PARALLEL’, all the L do not come together? 1. 360 2. 3000 3. 3360 4. None of the above 142. If two pipes function simultaneously, the resevoir will be filled in 12 hours. One pipe fills the resevoir in 10 hours faster than the other. How many hours does it take the second pipe to fill the resevoir? 1. 20 hours 2. 10 hours 3. 40 hours 4. 30 hours 143. A tap can fill a tank in 6 hours. After half the tank is filled, three more similar taps are opened. What is the total time taken to fill the tank completely? 1. 3 hours 30 minutes 2. 3 hours 15 minutes 3. 3 hours 20 minutes 4. 3 hours 45 minutes 144. In a game three coins are tossed. What will be the probability of getting neither three Heads nor three Tails? 1. 3/4 2. 3/5 3. 1/2 4. 2/3 145. A bag contains 4 green and 5 yellow balls. If three balls are chosen from the bag randomly, what is the probability of getting all green balls? 1. 3/23 2. 1/21 3. 2/27 4. None of the above

Page 8 of 8

ACTS, Head Quarters, Pune 146. A shoe was sold at a profit of 10%. If its cost price was 5% less and it was sold for Rs. 7 more, the gain would have been 20%. Find the cost price of the shoe? 1. Rs. 225 2. Rs. 175 3. Rs. 345 4. None of the above 147. Mohan calculates percentage profit on the buying price and Ram calculates its percentage profit on the selling price. What will be their difference in profit if both claims a profit of 20% on goods sold for Rs. 3000? 1. Rs. 150 2. Rs. 250 3. Rs. 100 4. Rs. 300 148. If 15 % of A = 20 % of B, then A: B is 1. 4: 3 2. 3:9 3. 7:14 4. 6:18 149. Suresh took loan of some amount that becomes Rs.2520 in 2 years and Rs.2700 in 5 years on simple interest. Find out the interest rate? 1. 3¼% 2. 2.5% 3. 1.5% 4. 2.675% 150. The difference between times taken by Ram and Shyam to travel a distance of 350 km by car is 2 hours 20 minutes. If the difference between their speed is 5 km/h, Find the slower speed. 1. 45 km/h 2. 35 km/h 3. 25 km/h 4. 55 km/h

DAC CET

Page 9 of 9