Sei sulla pagina 1di 12

PLAN HARBOR Represents E-TECHA, 1st Technical Competition

About E-Techa !!! E-TECHA" is the 1st technical competition going to organised by the PLAN HARBOR at national level and total of 1834 participants have registered for the test through out the nation also including IITs , NITs and the top notch colleges. This test is made to increase the knowledge of the student and let the students get to know the 1st time the basic and most conceptual questions asked in INTERVIEWS and INTERSHIPS of mncs like FACEBOOK, MICROSOFT, IBM, TCS etc. The test is based on the idea that student gain more knowledge rather scoring in it. All the best to participants !!!

planharbor@gmail.com facebook.com/planharbor

Coding Competition

August 25, 2013

Read the following instructions carefully. There are a total of 29 questions carrying 100 marks. Except questions Q.26 Q.29, all the other questions are of multiple choice type with only one correct answer. Questions Q.26 - Q.29 require a numerical answer, and a number should be entered using the virtual keyboard on the monitor. Questions Q.1 Q.25 carry 3 mark each. Questions Q.26 carry 5 marks. Q.27 carry 6 marks. Q.28 and Q.29 carry 7 marks each. Unattempted questions will result in zero mark and wrong answers will result in NEGATIVE marks. There is no negative marking for questions of theoretical answer type, i.e., for Q.26 Q.29. For all 3 mark questions, 1 mark will be deducted for each wrong answer. The paper is of 80 (75+5) minutes. 5 minutes are provided for reading the paper carefully. The online response sheet attached with this test paper will automatically be removed at 11:30 A.M.

All the best for the paper Gain Knowledge rather than scoring Plan Harbor team ---------------------------------------------------------------------------------------------------------------------

Hrishabh Gupta
Founder, Plan Harbor

Ashutosh Shringi
Co-Founder, Plan Harbor

Page 1

1. Predict output or errors of following :

2. Which one is not a properties in sequence generator?


A. B. C. D.

Start Value recycle Current Value Number of Cached Values

3. Session has to run Monday to Saturday not run sunday how to schedule in informatica ?
A. B. C. D. E.

weekly option daily option customized option none of these declare set values option.

Page 2

4. What is requirement of compile time overloadinG? A) method signature be different but name should be same. B) method signature and name should be different. C) method signature and parameters be different. D) none of the above.

5) Find the output of the program.

6. How many types of properties we have in C#.NET? A. 1 B. 2 C. 3 D. 4

Page 3

7 . Which of following cannot be instantiated? ** A. indexer B. properties C. interface D. object

8. Name one keyword (suppose in C#) that cannot be used with the base class ?

9.What is the property of members of Interface? A) public and static B) public and abstract C) protected and static D) static and abstract

10. A compiler could be able to perform loop optimization and this could be invoked via these
directives. What are these directives called ? .

11) Find the output of the program.

Page 4

12. What concept is used to give mechanism for a function to modify a pointer?

13. Which type of codes in C# runs out of the control of the garbage collector?Mention the keywords if any.

14. What can be used to define call back methods in C# and from which derived? (hint : these are similar to cpp pointers.)

namespace is this

15. If you declare Invoke method in C# then what are the two more methods to more methods involved to have asynchronous callback?

16.The ASP.Net runtime includes a key-value map of CLR objects is called ?

17.What is the value of m after the following code fragment is executed? a=2 b=2 c=4 If (a > b) Then If (a > c) Then m=1 Else m=2 End If Else If (c <> 0) Then m=3 Else m=4 End If End If A.1 B.3 C.2 D.None of the above

Page 5

18 ) The pointer which can point or access whole the residence memory of RAM is called as _ .It can access segments.

19 . What does the expression 1U > -1 evaluate to? Hint : [embedded C]

20. [RUBY] What do you use to Convert c=[[1,a],[2,b],[3,c]] to [1,a,2,b,3,c]??

21.Create a 5 element array that is filled with 5 random numbers from 1 to 10.

22. Calculate the factorial of 10 with a symbol to proc.

23. What will be the value of $var below: $var = true ? '1' : false ? '2' : '3';

Page 6

24 . What is the output of following code snippet? public class TestOverriding { public static void main(String aga[]){ Super superRef =new Sub(); Sub subRef = new Sub(); Super suRef=new Super(); superRef.tests(); subRef.tests(); suRef.tests(); } } class Super{ public static void tests(){ System.out.println("Super static"); } } class Sub extends Super{ public static void tests(){ System.out.println("Sub static"); } }

A.

Super static Super static Super static Sub static Sub static Sub static Super static Sub static Super static. Sub static Super static Sub static Compilation error at 7,8,9 Compilation error at 18

B.

C.

D.

E.

F.

Page 7 25) Will the following code result in memory leak?

#include<stdio.h>

void main(void)

char *ptr = (char*)malloc(10);

if(NULL == ptr)

printf("\n Malloc failed \n");

return;

else

// Do some processing

} return;

A) Yes B) No

Page 8

Subjective Questions
1) Given a function which produces a random integer in the range 1 to 5, write a function which
produces a random integer in the range 1 to 7.

2) In the code below, the atexit() function is not being called. Can you tell why?
#include<stdio.h>

void func(void)

printf("\n Cleanup function called \n");

return;

int main(void)

int i = 0;

atexit(func);

for(;i<0xffffff;i++);

_exit(0);

3).Write a C code to create a dos command like dir.


4) .Write function in C which returns integer without using the keyword in turbo C.

Potrebbero piacerti anche