Accenture Programming Placement Paper
Short Description
Accenture Programming Placement Paper download...
Description
Visit www.latestoffcampus.com For More Placement Papers, Interview tips , Job Updates To Get 24*7 Updates Via Facebook Like Us @ http://www.facebook.com/LatestOffCampus To Get Free Job Updates To Your mail Join US @ http://groups.google.com/group/latestoffcampus/subscribe ttp://groups.google.com/group/latestoffcampus/subscribe
TITLE: Accenture Sample Programming Placement Paper Level-I (Bolded option is your answer) 1. When we mention the prototype of a function? A Defining
B declaring
Cprototyping
D calling
2. Identify which of the following are declarations 1 :extern int x; 2 :float square ( float x ) { ... } 3 :double pow(double, double); A1 B2 C3
D 1 and 3
3. Is the following statement a declaration or definition? extern int i; A defination Bdeclaration C function
D error
4. By default a real number is treated as a A double
B long double
C float
D far double
5. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1? A rem=3.14% B rem = C rem = fmod(3.14, D Remainder cannot be 2.1; modf(3.14, 2.1); obtain 2.1); 6. In which numbering system can the binary number 1011011111000101 be easily converted to? A No need to B Decimal C Octal system D Hexadecimal system convert system 7. In C, if you pass an array as an argument to a function, what actually gets passed? A value of elmt B First element CAdd of last elmnt in array of the array oarray
D First element of the array
Visit www.latestoffcampus.com for placement papers, interview tips & job updates updates. To get free updates to mail https://groups.google.com/group/latestoffcampus Live updates on Facebook @ https://www.facebook.com/LatestOffCampus
Visit www.latestoffcampus.com For More Placement Papers, Interview tips , Job Updates To Get 24*7 Updates Via Facebook Like Us @ http://www.facebook.com/LatestOffCampus To Get Free Job Updates To Your mail Join US @ http://groups.google.com/group/latestoffcampus/subscribe ttp://groups.google.com/group/latestoffcampus/subscribe
8. What are the different types of real data type in C ? A float,double
B short C float,double,long D double,long int,float int,double,long double int 9. Which header file should be included to use functions like malloc() and calloc()? A memory.h
B stdlib.h
C string.h
D dos.h
10. A reference is declared using the _____ symbol.
A!
B ||
C&
D &&
11. Which of the following type of class allows only one object of it to be created? A Virtual class
B Abstract class C Singleton class
D Friend class
12. Which of the following statement is correct? A A reference is B A reference is C A reference is stored D A reference is stored in a queue. stored on heap. stored in a on stack. binary tree. 13. Which of the following statements is correct? Change a reference changes the referent. We can create an array of references. A Only 1 is B Only 2 is C Both 1 and 2 are D Both 1 and 2 are correct. correct. correct. incorrect. 14. A constructor that accepts __________ parameters is called the default constructor. A no B one C two D three 15. Can a class have virtual destructor? Visit www.latestoffcampus.com for placement papers, interview tips & job updates updates. To get free updates to mail https://groups.google.com/group/latestoffcampus Live updates on Facebook @ https://www.facebook.com/LatestOffCampus
Visit www.latestoffcampus.com For More Placement Papers, Interview tips , Job Updates To Get 24*7 Updates Via Facebook Like Us @ http://www.facebook.com/LatestOffCampus To Get Free Job Updates To Your mail Join US @ http://groups.google.com/group/latestoffcampus/subscribe ttp://groups.google.com/group/latestoffcampus/subscribe
A no
B yes
C not determined
D can’t say
16. Destructor has the same name as the constructor and it is preceded by ______. A$
B!
C?
D~
17. For automatic objects, constructors and destructors are called each time the objects A are B are destroyed C inherit parent class D enter and leave scope constructed 18. Which of the following statement will be correct if the function has three arguments passed to it? A All the B All the C The first argument D The middle argument will be the default argument. argument will argument will will be the default be the default be the default argument. argument. argument. 19. Which of the following utilities can be used to compile managed assemblies into processor-specific native code? A gacutil B ngen C dumpbin D SN 20. Which of the following is NOT an Arithmetic operator in C#.NET? A **
B%
C/
D+
21. The string built using the String class are immutable (unchangeable), whereas, the ones built- using the StringBuilder class are mutable. A false B true C cannot be determined 22. A derived class can stop virtual inheritance by declaring an override as A inherits
B sealed
C inheritable
D non inheritable
23. Which of the following is the necessary condition for implementing delegates? Visit www.latestoffcampus.com for placement papers, interview tips & job updates updates. To get free updates to mail https://groups.google.com/group/latestoffcampus Live updates on Facebook @ https://www.facebook.com/LatestOffCampus
Visit www.latestoffcampus.com For More Placement Papers, Interview tips , Job Updates To Get 24*7 Updates Via Facebook Like Us @ http://www.facebook.com/LatestOffCampus To Get Free Job Updates To Your mail Join US @ http://groups.google.com/group/latestoffcampus/subscribe ttp://groups.google.com/group/latestoffcampus/subscribe
A Exceptions
B Class declaration
24. Output of int[ , , ] a = new int[ 3, 2, 3 ]; Console.WriteLine(a.Length); A5 B4
C Run-time Polymorphism
D Inheritance
C 18
D 20
25. The [Serializable()] attribute gets inspected at A Linking-time
B Compile-time C Run-time
D Design Design-time
26. Which of the following keyword is used to overload user-defined defined types by defining static member functions? A operator B op C opoverload D operatoroverload 27. Which of the following is NOT a namespace in the .NET Framework Class Librar Library? A B C System.Threading D System.Xml System.Process System.Security 28. Which is a reserved word in the Java programming language? A subclasses
B array
C method
D native
29. Suppose that you would like to create an instance of a new Map that has an iteration order that is the same as the iteration order of an existing instance of a Map. Which concrete implementation of the Map interface should be used for the new instance? A TreeMap B HashMap C LinkedHashMap D The answer depends on the implementation 30. Which of the following are valid calls to Math.max? Math.max(1,4) Math.max(2.3, 5) Math.max(1, 3, 5, 7) Math.max(-1.5, -2.8f) Visit www.latestoffcampus.com for placement papers, interview tips & job updates updates. To get free updates to mail https://groups.google.com/group/latestoffcampus Live updates on Facebook @ https://www.facebook.com/LatestOffCampus
Visit www.latestoffcampus.com For More Placement Papers, Interview tips , Job Updates To Get 24*7 Updates Via Facebook Like Us @ http://www.facebook.com/LatestOffCampus To Get Free Job Updates To Your mail Join US @ http://groups.google.com/group/latestoffcampus/subscribe ttp://groups.google.com/group/latestoffcampus/subscribe
A 1,2 and 4
B 2,3 and 4
C 3 and 4
D 1,2 and 3
31. What is the name of the method used to start a thread execution? ution? A init();
B resume();
C start();
D run();
32. Which is true about a method-local inner class? A It must be marked final.
B It can be C It can be marked D It can be marked marked static. public. abstract. 33. You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective? A public B transient C private D protected 34. Which two of the following methods are defined in class Thread? start() wait() notify() run() terminate() A 1 and 4 B 2 and 4 C 2 and 3 D 3 and 4 35. Which statement is true about a static nested class? A You must B It must C It does not have access to nonstatic have a extend the members of the reference to an enclosing class. enclosing class. instance of the enclosing class in order to instantiate it. 36. Which constructs an anonymous inner class instance?
D It's variables and methods must be static.
Visit www.latestoffcampus.com for placement papers, interview tips & job updates updates. To get free updates to mail https://groups.google.com/group/latestoffcampus Live updates on Facebook @ https://www.facebook.com/LatestOffCampus
Visit www.latestoffcampus.com For More Placement Papers, Interview tips , Job Updates To Get 24*7 Updates Via Facebook Like Us @ http://www.facebook.com/LatestOffCampus To Get Free Job Updates To Your mail Join US @ http://groups.google.com/group/latestoffcampus/subscribe ttp://groups.google.com/group/latestoffcampus/subscribe
A Runnable r = B Runnable r = new Runnable { new Runnable() public void { }; run(){}};
C D Runnable r = new System.out.println(new Runnable(public void Runnable() {public void run() { }); run() { }});
Visit www.latestoffcampus.com for placement papers, interview tips & job updates updates. To get free updates to mail https://groups.google.com/group/latestoffcampus Live updates on Facebook @ https://www.facebook.com/LatestOffCampus
View more...
Comments