tag:blogger.com,1999:blog-72504524292430664472024-03-13T21:12:51.531-07:00placement paperspamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.comBlogger32125tag:blogger.com,1999:blog-7250452429243066447.post-18284074777716071862008-02-22T08:57:00.001-08:002008-02-22T08:57:35.958-08:00java1What is the most important feature of Java?<br />Java is a platform independent language.<br /><br />What do you mean by platform independence?<br />Platform independence means that we can write and compile the java code in one platform (eg Windows) and can execute the class in any other supported platform eg (Linux,Solaris,etc).<br /><br />Are JVM's platform independent?<br />JVM's are not platform independent. JVM's are platform specific run time implementation provided by the vendor.<br /><br />What is a JVM?<br />JVM is Java Virtual Machine which is a run time environment for the compiled java class files.<br /><br />What is the difference between a JDK and a JVM?<br />JDK is Java Development Kit which is for development purpose and it includes execution environment also. But JVM is purely a run time environment and hence you will not be able to compile your source files using a JVM.<br /><br />What is a pointer and does Java support pointers?<br />Pointer is a reference handle to a memory location. Improper handling of pointers leads to memory leaks and reliability issues hence Java doesn't support the usage of pointers.<br /><br />What is the base class of all classes?<br />java.lang.Object<br /><br />Does Java support multiple inheritance?<br />Java doesn't support multiple inheritance.<br /><br />Is Java a pure object oriented language?<br />Java uses primitive data types and hence is not a pure object oriented language.<br /><br />Are arrays primitive data types?<br />In Java, Arrays are objects.<br /><br />What is difference between Path and Classpath?<br />Path and Classpath are operating system level environment variales. Path is used define where the system can find the executables(.exe) files and classpath is used to specify the location .class files.<br /><br />What are local variables?<br />Local varaiables are those which are declared within a block of code like methods. Local variables should be initialised before accessing them.<br /><br />What are instance variables?<br />Instance variables are those which are defined at the class level. Instance variables need not be initialized before using them as they are automatically initialized to their default values.<br /><br />How to define a constant variable in Java?<br />The variable should be declared as static and final. So only one copy of the variable exists for all instances of the class and the value can't be changed also.<br />static final int PI = 2.14; is an example for constant.<br /><br />Should a main method be compulsorily declared in all java classes?<br />No not required. main method should be defined only if the source class is a java application.<br /><br />What is the return type of the main method?<br />Main method doesn't return anything hence declared void.<br /><br />Why is the main method declared static?<br />main method is called by the JVM even before the instantiation of the class hence it is declared as static.<br /><br />What is the arguement of main method?<br />main method accepts an array of String object as arguement.<br /><br />Can a main method be overloaded?<br />Yes. You can have any number of main methods with different method signature and implementation in the class.<br /><br />Can a main method be declared final?<br />Yes. Any inheriting class will not be able to have it's own default main method.<br /><br />Does the order of public and static declaration matter in main method?<br />No it doesn't matter but void should always come before main().<br /><br />Can a source file contain more than one Class declaration?<br />Yes a single source file can contain any number of Class declarations but only one of the class can be declared as public.<br /><br />What is a package?<br />Package is a collection of related classes and interfaces. package declaration should be first statement in a java class.<br /><br />Which package is imported by default?<br />java.lang package is imported by default even without a package declaration.<br /><br />Can a class declared as private be accessed outside it's package?<br />Not possible.<br /><br />Can a class be declared as protected?<br />A class can't be declared as protected. only methods can be declared as protected.<br /><br />What is the access scope of a protected method?<br />A protected method can be accessed by the classes within the same package or by the subclasses of the class in any package.<br /><br />What is the purpose of declaring a variable as final?<br />A final variable's value can't be changed. final variables should be initialized before using them.<br /><br />What is the impact of declaring a method as final?<br />A method declared as final can't be overridden. A sub-class can't have the same method signature with a different implementation.<br /><br />I don't want my class to be inherited by any other class. What should i do?<br />You should declared your class as final. But you can't define your class as final, if it is an abstract class. A class declared as final can't be extended by any other class.<br /><br />Can you give few examples of final classes defined in Java API?<br />java.lang.String,java.lang.Math are final classes.<br /><br />How is final different from finally and finalize?<br />final is a modifier which can be applied to a class or a method or a variable. final class can't be inherited, final method can't be overridden and final variable can't be changed.<br /><br />finally is an exception handling code section which gets executed whether an exception is raised or not by the try block code segment.<br /><br />finalize() is a method of Object class which will be executed by the JVM just before garbage collecting object to give a final chance for resource releasing activity.<br /><br />Can a class be declared as static?<br />No a class cannot be defined as static. Only a method,a variable or a block of code can be declared as static.<br /><br />When will you define a method as static?<br />When a method needs to be accessed even before the creation of the object of the class then we should declare the method as static.<br /><br />What are the restriction imposed on a static method or a static block of code?<br />A static method should not refer to instance variables without creating an instance and cannot use "this" operator to refer the instance.<br /><br />I want to print "Hello" even before main is executed. How will you acheive that?<br />Print the statement inside a static block of code. Static blocks get executed when the class gets loaded into the memory and even before the creation of an object. Hence it will be executed before the main method. And it will be executed only once.<br /><br />What is the importance of static variable?<br />static variables are class level variables where all objects of the class refer to the same variable. If one object changes the value then the change gets reflected in all the objects.<br /><br />Can we declare a static variable inside a method?<br />Static varaibles are class level variables and they can't be declared inside a method. If declared, the class will not compile.<br /><br />What is an Abstract Class and what is it's purpose?<br />A Class which doesn't provide complete implementation is defined as an abstract class. Abstract classes enforce abstraction.<br /><br />Can a abstract class be declared final?<br />Not possible. An abstract class without being inherited is of no use and hence will result in compile time error.<br /><br />What is use of a abstract variable?<br />Variables can't be declared as abstract. only classes and methods can be declared as abstract.<br /><br />Can you create an object of an abstract class?<br />Not possible. Abstract classes can't be instantiated.<br /><br />Can a abstract class be defined without any abstract methods?<br />Yes it's possible. This is basically to avoid instance creation of the class.<br /><br />Class C implements Interface I containing method m1 and m2 declarations. Class C has provided implementation for method m2. Can i create an object of Class C?<br />No not possible. Class C should provide implementation for all the methods in the Interface I. Since Class C didn't provide implementation for m1 method, it has to be declared as abstract. Abstract classes can't be instantiated.<br /><br />Can a method inside a Interface be declared as final?<br />No not possible. Doing so will result in compilation error. public and abstract are the only applicable modifiers for method declaration in an interface.<br /><br />Can an Interface implement another Interface?<br />Intefaces doesn't provide implementation hence a interface cannot implement another interface.<br /><br />Can an Interface extend another Interface?<br />Yes an Interface can inherit another Interface, for that matter an Interface can extend more than one Interface.<br /><br />Can a Class extend more than one Class?<br />Not possible. A Class can extend only one class but can implement any number of Interfaces.<br /><br />Why is an Interface be able to extend more than one Interface but a Class can't extend more than one Class?<br />Basically Java doesn't allow multiple inheritance, so a Class is restricted to extend only one Class. But an Interface is a pure abstraction model and doesn't have inheritance hierarchy like classes(do remember that the base class of all classes is Object). So an Interface is allowed to extend more than one Interface.<br /><br />Can an Interface be final?<br />Not possible. Doing so so will result in compilation error.<br /><br />Can a class be defined inside an Interface?<br />Yes it's possible.<br /><br />Can an Interface be defined inside a class?<br />Yes it's possible.<br /><br />What is a Marker Interface?<br />An Interface which doesn't have any declaration inside but still enforces a mechanism.<br /><br />Which OO Concept is achieved by using overloading and overriding?<br />Polymorphism.<br /><br />If i only change the return type, does the method become overloaded?<br />No it doesn't. There should be a change in method arguements for a method to be overloaded.<br /><br />Why does Java not support operator overloading?<br />Operator overloading makes the code very difficult to read and maintain. To maintain code simplicity, Java doesn't support operator overloading.<br /><br />Can we define private and protected modifiers for variables in interfaces?<br />No<br /><br />What is Externalizable?<br />Externalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has two methods, writeExternal(ObjectOuput out) and readExternal(ObjectInput in)<br /><br />What modifiers are allowed for methods in an Interface?<br />Only public and abstract modifiers are allowed for methods in interfaces.<br /><br />What is a local, member and a class variable?<br />Variables declared within a method are "local" variables. Variables declared within the class i.e not within any methods are "member" variables (global variables). Variables declared within the class i.e not within any methods and are defined as "static" are class variables<br /><br />What is an abstract method?<br />An abstract method is a method whose implementation is deferred to a subclass.<br /><br />What value does read() return when it has reached the end of a file?<br />The read() method returns -1 when it has reached the end of a file.<br /><br />Can a Byte object be cast to a double value?<br />No, an object cannot be cast to a primitive value.<br /><br />What is the difference between a static and a non-static inner class?<br />A non-static inner class may have object instances that are associated with instances of the class's outer class. A static inner class does not have any object instances.<br /><br />What is an object's lock and which object's have locks?<br />An object's lock is a mechanism that is used by multiple threads to obtain synchronized access to the object. A thread may execute a synchronized method of an object only after it has acquired the object's lock. All objects and classes have locks. A class's lock is acquired on the class's Class object.<br /><br />What is the % operator?<br />It is referred to as the modulo or remainder operator. It returns the remainder of dividing the first operand by the second operand.<br /><br />When can an object reference be cast to an interface reference?<br />An object reference be cast to an interface reference when the object implements the referenced interface.<br /><br />Which class is extended by all other classes?<br />The Object class is extended by all other classes.<br /><br />Which non-Unicode letter characters may be used as the first character of an identifier?<br />The non-Unicode letter characters $ and _ may appear as the first character of an identifier<br /><br />What restrictions are placed on method overloading?<br />Two methods may not have the same name and argument list but different return types.<br /><br />What is casting?<br />There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to refer to an object by a compatible class, interface, or array type reference.<br /><br />What is the return type of a program's main() method?<br />void.<br /><br />If a variable is declared as private, where may the variable be accessed?<br />A private variable may only be accessed within the class in which it is declared.<br /><br />What do you understand by private, protected and public?<br />These are accessibility modifiers. Private is the most restrictive, while public is the least restrictive. There is no real difference between protected and the default type (also known as package protected) within the context of the same package, however the protected keyword allows visibility to a derived class in a different package.<br /><br />What is Downcasting ?<br />Downcasting is the casting from a general to a more specific type, i.e. casting down the hierarchy<br /><br />What modifiers may be used with an inner class that is a member of an outer class?<br />A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.<br /><br />How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?<br />Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII character set uses only 7 bits, it is usually represented as 8 bits. UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16 uses 16-bit and larger bit patterns.<br /><br />What restrictions are placed on the location of a package statement within a source code file?<br />A package statement must appear as the first line in a source code file (excluding blank lines and comments).<br /><br />What is a native method?<br />A native method is a method that is implemented in a language other than Java.<br /><br />What are order of precedence and associativity, and how are they used?<br />Order of precedence determines the order in which operators are evaluated in expressions. Associatity determines whether an expression is evaluated left-to-right or right-to-left<br /><br />Can an anonymous class be declared as implementing an interface and extending a class?<br />An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.<br /><br />What is the range of the char type?<br />The range of the char type is 0 to 2^16 - 1.<br /><br />What is the range of the short type?<br />The range of the short type is -(2^15) to 2^15 - 1.<br /><br />Why isn't there operator overloading?<br />Because C++ has proven by example that operator overloading makes code almost impossible to maintain.<br /><br />What does it mean that a method or field is "static"?<br />Static variables and methods are instantiated only once per class. In other words they are class variables, not instance variables. If you change the value of a static variable in a particular object, the value of that variable changes for all instances of that class. Static methods can be referenced with the name of the class rather than the name of a particular object of the class (though that works too). That's how library methods like System.out.println() work. out is a static field in the java.lang.System class.<br /><br />Is null a keyword?<br />The null value is not a keyword.<br /><br />Which characters may be used as the second character of an identifier,but not as the first character of an identifier?<br />The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier.<br /><br />Is the ternary operator written x : y ? z or x ? y : z ?<br />It is written x ? y : z.<br /><br />How is rounding performed under integer division?<br />The fractional part of the result is truncated. This is known as rounding toward zero.<br /><br />If a class is declared without any access modifiers, where may the class be accessed?<br />A class that is declared without any access modifiers is said to have package access. This means that the class can only be accessed by other classes and interfaces that are defined within the same package.<br /><br />Does a class inherit the constructors of its superclass?<br />A class does not inherit constructors from any of its superclasses.<br /><br />Name the eight primitive Java types.<br />The eight primitive types are byte, char, short, int, long, float, double, and boolean.<br /><br />What restrictions are placed on the values of each case of a switch statement?<br />During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value.<br /><br />What is the difference between a while statement and a do statement?<br />A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once.<br /><br />What modifiers can be used with a local inner class?<br />A local inner class may be final or abstract.<br /><br />When does the compiler supply a default constructor for a class?<br />The compiler supplies a default constructor for a class if no other constructors are provided.<br /><br />If a method is declared as protected, where may the method be accessed?<br />A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared.<br /><br />What are the legal operands of the instanceof operator?<br />The left operand is an object reference or null value and the right operand is a class, interface, or array type.<br /><br />Are true and false keywords?<br />The values true and false are not keywords.<br /><br />What happens when you add a double value to a String?<br />The result is a String object.<br /><br />What is the diffrence between inner class and nested class?<br />When a class is defined within a scope od another class, then it becomes inner class. If the access modifier of the inner class is static, then it becomes nested class.<br /><br />Can an abstract class be final?<br />An abstract class may not be declared as final<br /><br />What is numeric promotion?<br />Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place. In numerical promotion, byte, char, and short values are converted to int values. The int values are also converted to long values, if necessary. The long and float values are converted to double values, as required<br /><br />What is the difference between a public and a non-public class?<br />A public class may be accessed outside of its package. A non-public class may not be accessed outside of its package.<br /><br />To what value is a variable of the boolean type automatically initialized?<br />The default value of the boolean type is false<br /><br />What is the difference between the prefix and postfix forms of the ++ operator?<br />The prefix form performs the increment operation and returns the value of the increment operation. The postfix form returns the current value all of the expression and then performs the increment operation on that value.<br /><br />What restrictions are placed on method overriding?<br />Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides. The overriding method may not throw any exceptions that may not be thrown by the overridden method.<br /><br />What is a Java package and how is it used?<br />A Java package is a naming context for classes and interfaces. A package is used to create a separate name space for groups of classes and interfaces. Packages are also used to organize related classes and interfaces into a single API unit and to control accessibility to these classes and interfaces.<br /><br />What modifiers may be used with a top-level class?<br />A top-level class may be public, abstract, or final.<br /><br />What is the difference between an if statement and a switch statement?<br />The if statement is used to select among two alternatives. It uses a boolean expression to decide which alternative should be executed. The switch statement is used to select among multiple alternatives. It uses an int expression to determine which alternative should be executed.<br /><br />What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. import java.net.* versus import java.net.Socket)?<br />It makes no difference in the generated class files since only the classes that are actually used are referenced by the generated class file. There is another practical benefit to importing single classes, and this arises when two (or more) packages have classes with the same name. Take java.util.Timer and javax.swing.Timer, for example. If I import java.util.* and javax.swing.* and then try to use "Timer", I get an error while compiling (the class name is ambiguous between both packages). Let's say what you really wanted was the javax.swing.Timer class, and the only classes you plan on using in java.util are Collection and HashMap. In this case, some people will prefer to import java.util.Collection and import java.util.HashMap instead of importing java.util.*. This will now allow them to use Timer, Collection, HashMap, and other javax.swing classes without using fully qualified class names in.<br /><br />Can a method be overloaded based on different return type but same argument type ?<br />No, because the methods can be called without using their return type in which case there is ambiquity for the compiler<br /><br />What happens to a static var that is defined within a method of a class ?<br />Can't do it. You'll get a compilation error<br /><br />How many static init can you have ?<br />As many as you want, but the static initializers and class variable initializers are executed in textual order and may not refer to class variables declared in the class whose declarations appear textually after the use, even though these class variables are in scope.<br /><br />What is the difference between method overriding and overloading?<br />Overriding is a method with the same name and arguments as in a parent, whereas overloading is the same method name but different arguments<br /><br />What is constructor chaining and how is it achieved in Java ?<br />A child object constructor always first needs to construct its parent (which in turn calls its parent constructor.). In Java it is done via an implicit call to the no-args constructor as the first statement.<br /><br />What is the difference between the Boolean & operator and the && operator?<br />If an expression involving the Boolean & operator is evaluated, both operands are evaluated. Then the & operator is applied to the operand. When an expression involving the && operator is evaluated, the first operand is evaluated. If the first operand returns a value of true then the second operand is evaluated. The && operator is then applied to the first and second operands. If the first operand evaluates to false, the evaluation of the second operand is skipped.<br /><br />Which Java operator is right associative?<br />The = operator is right associative.<br /><br />Can a double value be cast to a byte?<br />Yes, a double value can be cast to a byte.<br /><br />What is the difference between a break statement and a continue statement?<br />A break statement results in the termination of the statement to which it applies (switch, for, do, or while). A continue statement is used to end the current loop iteration and return control to the loop statement.<br /><br />Can a for statement loop indefinitely?<br />Yes, a for statement can loop indefinitely. For example, consider the following: for(;;) ;<br /><br />To what value is a variable of the String type automatically initialized?<br />The default value of an String type is null.<br />What is the difference between a field variable and a local variable?<br />A field variable is a variable that is declared as a member of a class. A local variable is a variable that is declared local to a method.<br /><br />How are this() and super() used with constructors?<br />this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.<br /><br />What does it mean that a class or member is final?<br />A final class cannot be inherited. A final method cannot be overridden in a subclass. A final field cannot be changed after it's initialized, and it must include an initializer statement where it's declared.<br /><br />What does it mean that a method or class is abstract?<br />An abstract class cannot be instantiated. Abstract methods may only be included in abstract classes. However, an abstract class is not required to have any abstract methods, though most of them do. Each subclass of an abstract class must override the abstract methods of its superclasses or it also should be declared abstract.<br /><br />What is a transient variable?<br />transient variable is a variable that may not be serialized.<br /><br />How does Java handle integer overflows and underflows?<br />It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.<br /><br />What is the difference between the >> and >>> operators?<br />The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.<br /><br />Is sizeof a keyword?<br />The sizeof operator is not a keyword.pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-23354055721061791712008-02-22T08:54:00.000-08:002008-02-22T08:56:34.969-08:00जावा questions*Q1. How could Java classes direct program messages to the system console, but error messages, say to a file?<br /><br />A. The class System has a variable out that represents the standard output, and the variable err that represents the standard error device. By default, they both point at the system console. This how the standard output could be re-directed:<br />Stream st = new Stream(new FileOutputStream("output.txt")); System.setErr(st); System.setOut(st);<br /><br />*Q2. What's the difference between an interface and an abstract class?<br /><br />A. An abstract class may contain code in method bodies, which is not allowed in an interface. With abstract classes, you have to inherit your class from it and Java does not allow multiple inheritance. On the other hand, you can implement multiple interfaces in your class.<br /><br />*Q3. Why would you use a synchronized block vs. synchronized method?<br /><br />A. Synchronized blocks place locks for shorter periods than synchronized methods.<br /><br />*Q4. Explain the usage of the keyword transient?<br /><br />A. This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers).<br /><br /><br />*Q5. How can you force garbage collection?<br /><br />A. You can't force GC, but could request it by calling System.gc(). JVM does not guarantee that GC will be started immediately.<br /><br />*Q6. How do you know if an explicit object casting is needed?<br /><br />A. If you assign a superclass object to a variable of a subclass's data type, you need to do explicit casting. For example:<br />Object a; Customer b; b = (Customer) a;<br />When you assign a subclass to a variable having a supeclass type, the casting is performed automatically.<br /><br />*Q7. What's the difference between the methods sleep() and wait()<br /><br />A. The code sleep(1000); puts thread aside for exactly one second. The code wait(1000), causes a wait of up to one second. A thread could stop waiting earlier if it receives the notify() or notifyAll() call. The method wait() is defined in the class Object and the method sleep() is defined in the class Thread.<br /><br />*Q8. Can you write a Java class that could be used both as an applet as well as an application?<br /><br />A. Yes. Add a main() method to the applet.<br /><br />*Q9. What's the difference between constructors and other methods?<br /><br />A. Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times.<br /><br />*Q10. Can you call one constructor from another if a class has multiple constructors<br /><br />A. Yes. Use this() syntax.<br /><br />*Q11. Explain the usage of Java packages.<br /><br />A. This is a way to organize files when a project consists of multiple modules. It also helps resolve naming conflicts when different packages have classes with the same names. Packages access level also allows you to protect data from being used by the non-authorized classes.<br /><br />*Q12. If a class is located in a package, what do you need to change in the OS environment to be able to use it?<br /><br />A. You need to add a directory or a jar file that contains the package directories to the CLASSPATH environment variable. Let's say a class Employee belongs to a package com.xyz.hr; and is located in the file c:\dev\com\xyz\hr\Employee.java. In this case, you'd need to add c:\dev to the variable CLASSPATH. If this class contains the method main(), you could test it from a command prompt window as follows:<br />c:\>java com.xyz.hr.Employee<br /><br />*Q13. What's the difference between J2SDK 1.5 and J2SDK 5.0?<br /><br />A.There's no difference, Sun Microsystems just re-branded this version.<br /><br /><br />*Q14. What would you use to compare two String variables - the operator == or the method equals()?<br /><br />A. I'd use the method equals() to compare the values of the Strings and the == to check if two variables point at the same instance of a String object.<br /><br /><br />*Q15. Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written?<br /><br />A. Yes, it does. The FileNoFoundException is inherited from the IOException. Exception's subclasses have to be caught first.<br /><br />*Q16. Can an inner class declared inside of a method access local variables of this method?<br /><br />A. It's possible if these variables are final.<br /><br />*Q17. What can go wrong if you replace && with & in the following code:<br />String a=null; if (a!=null && a.length()>10) {...}<br />A. A single ampersand here would lead to a NullPointerException.<br /><br />*Q18. What's the main difference between a Vector and an ArrayList<br /><br />A. Java Vector class is internally synchronized and ArrayList is not.<br /><br /><br />*Q19. When should the method invokeLater()be used?<br /><br />A. This method is used to ensure that Swing components are updated through the event-dispatching thread.<br /><br /><br />*Q20. How can a subclass call a method or a constructor defined in a superclass?<br /><br />A. Use the following syntax: super.myMethod(); To call a constructor of the superclass, just write super(); in the first line of the subclass's constructor<br /><br />For senior-level developers:<br /><br />**Q21. What's the difference between a queue and a stack?<br /><br />A. Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule<br /><br />**Q22. You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces?<br /><br />A. Sometimes. But your class may be a descendent of another class and in this case the interface is your only option.<br /><br />**Q23. What comes to mind when you hear about a young generation in Java?<br /><br />A. Garbage collection.<br /><br />**Q24. What comes to mind when someone mentions a shallow copy in Java?<br /><br />A. Object cloning.<br /><br />**Q25. If you're overriding the method equals() of an object, which other method you might also consider?<br /><br />A. hashCode()<br /><br />**Q26. You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use:<br />ArrayList or LinkedList?<br /><br />A. ArrayList<br /><br />**Q27. How would you make a copy of an entire Java object with its state?<br /><br />A. Have this class implement Cloneable interface and call its method clone().<br />**Q28. How can you minimize the need of garbage collection and make the memory use more effective?<br /><br />A. Use object pooling and weak object references.<br />**Q29. There are two classes: A and B. The class B need to inform a class A when some important event has happened. What Java technique would you use to implement it?<br /><br />A. If these classes are threads I'd consider notify() or notifyAll(). For regular classes you can use the Observer interface.<br /><br />*Q30. What access level do you need to specify in the class declaration to ensure that only classes from the same directory can access it?<br /><br />A. You do not need to specify any access level, and Java will use a default package access level.pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-73924172969237813282007-12-15T18:19:00.000-08:002007-12-15T18:20:28.126-08:00Operating SystemsOperating Systems<br /><br />Following are a few basic questions that cover the essentials of OS:<br /><br />1. Explain the concept of Reentrancy.<br />It is a useful, memory-saving technique for multiprogrammed timesharing systems. A Reentrant Procedure is one in which multiple users can share a single copy of a program during the same period. Reentrancy has 2 key aspects: The program code cannot modify itself, and the local data for each user process must be stored separately. Thus, the permanent part is the code, and the temporary part is the pointer back to the calling program and local variables used by that program. Each execution instance is called activation. It executes the code in the permanent part, but has its own copy of local variables/parameters. The temporary part associated with each activation is the activation record. Generally, the activation record is kept on the stack.<br />Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure.<br /><br />2. Explain Belady's Anomaly.<br />Also called FIFO anomaly. Usually, on increasing the number of frames allocated to a process' virtual memory, the process execution is faster, because fewer page faults occur. Sometimes, the reverse happens, i.e., the execution time increases even when more frames are allocated to the process. This is Belady's Anomaly. This is true for certain page reference patterns.<br /><br />3. What is a binary semaphore? What is its use?<br />A binary semaphore is one, which takes only 0 and 1 as values. They are used to implement mutual exclusion and synchronize concurrent processes.<br /><br />4. What is thrashing?<br />It is a phenomenon in virtual memory schemes when the processor spends most of its time swapping pages, rather than executing instructions. This is due to an inordinate number of page faults.<br /><br />5. List the Coffman's conditions that lead to a deadlock.<br /> Mutual Exclusion: Only one process may use a critical resource at a time.<br /> Hold & Wait: A process may be allocated some resources while waiting for others.<br /> No Pre-emption: No resource can be forcible removed from a process holding it.<br /> Circular Wait: A closed chain of processes exist such that each process holds at least one resource needed by another process in the chain.<br /><br /><br />6. What are short-, long- and medium-term scheduling?<br />Long term scheduler determines which programs are admitted to the system for processing. It controls the degree of multiprogramming. Once admitted, a job becomes a process. <br />Medium term scheduling is part of the swapping function. This relates to processes that are in a blocked or suspended state. They are swapped out of real-memory until they are ready to execute. The swapping-in decision is based on memory-management criteria.<br />Short term scheduler, also know as a dispatcher executes most frequently, and makes the finest-grained decision of which process should execute next. This scheduler is invoked whenever an event occurs. It may lead to interruption of one process by preemption. <br /><br />7. What are turnaround time and response time?<br />Turnaround time is the interval between the submission of a job and its completion. Response time is the interval between submission of a request, and the first response to that request.<br /><br />8. What are the typical elements of a process image?<br /> User data: Modifiable part of user space. May include program data, user stack area, and programs that may be modified. <br /> User program: The instructions to be executed.<br /> System Stack: Each process has one or more LIFO stacks associated with it. Used to store parameters and calling addresses for procedure and system calls.<br /> Process control Block (PCB): Info needed by the OS to control processes.<br /><br />9. What is the Translation Lookaside Buffer (TLB)?<br />In a cached system, the base addresses of the last few referenced pages is maintained in registers called the TLB that aids in faster lookup. TLB contains those page-table entries that have been most recently used. Normally, each virtual memory reference causes 2 physical memory accesses-- one to fetch appropriate page-table entry, and one to fetch the desired data. Using TLB in-between, this is reduced to just one physical memory access in cases of TLB-hit.<br /><br />10. What is the resident set and working set of a process?<br />Resident set is that portion of the process image that is actually in real-memory at a particular instant. Working set is that subset of resident set that is actually needed for execution. (Relate this to the variable-window size method for swapping techniques.)<br /><br />11. When is a system in safe state?<br />The set of dispatchable processes is in a safe state if there exists at least one temporal order in which all processes can be run to completion without resulting in a deadlock.<br /><br />12. What is cycle stealing?<br />We encounter cycle stealing in the context of Direct Memory Access (DMA). Either the DMA controller can use the data bus when the CPU does not need it, or it may force the CPU to temporarily suspend operation. The latter technique is called cycle stealing. Note that cycle stealing can be done only at specific break points in an instruction cycle.<br /><br />13. What is meant by arm-stickiness?<br />If one or a few processes have a high access rate to data on one track of a storage disk, then they may monopolize the device by repeated requests to that track. This generally happens with most common device scheduling algorithms (LIFO, SSTF, C-SCAN, etc). High-density multisurface disks are more likely to be affected by this than low density ones.<br /><br />14. What are the stipulations of C2 level security?<br />C2 level security provides for:<br /> Discretionary Access Control<br /> Identification and Authentication<br /> Auditing<br /> Resource reuse<br /><br />15. What is busy waiting?<br />The repeated execution of a loop of code while waiting for an event to occur is called busy-waiting. The CPU is not engaged in any real productive activity during this period, and the process does not progress toward completion.<br /><br />16. Explain the popular multiprocessor thread-scheduling strategies.<br /> Load Sharing: Processes are not assigned to a particular processor. A global queue of threads is maintained. Each processor, when idle, selects a thread from this queue. Note that load balancing refers to a scheme where work is allocated to processors on a more permanent basis. <br /> Gang Scheduling: A set of related threads is scheduled to run on a set of processors at the same time, on a 1-to-1 basis. Closely related threads / processes may be scheduled this way to reduce synchronization blocking, and minimize process switching. Group scheduling predated this strategy.<br /> Dedicated processor assignment: Provides implicit scheduling defined by assignment of threads to processors. For the duration of program execution, each program is allocated a set of processors equal in number to the number of threads in the program. Processors are chosen from the available pool.<br /> Dynamic scheduling: The number of thread in a program can be altered during the course of execution.<br /><br />17. When does the condition 'rendezvous' arise?<br />In message passing, it is the condition in which, both, the sender and receiver are blocked until the message is delivered.<br /><br />18. What is a trap and trapdoor?<br />Trapdoor is a secret undocumented entry point into a program used to grant access without normal methods of access authentication. A trap is a software interrupt, usually the result of an error condition.<br /><br />19. What are local and global page replacements?<br />Local replacement means that an incoming page is brought in only to the relevant process' address space. Global replacement policy allows any page frame from any process to be replaced. The latter is applicable to variable partitions model only.<br /><br />20. Define latency, transfer and seek time with respect to disk I/O.<br />Seek time is the time required to move the disk arm to the required track. Rotational delay or latency is the time it takes for the beginning of the required sector to reach the head. Sum of seek time (if any) and latency is the access time. Time taken to actually transfer a span of data is transfer time. <br /><br />21. Describe the Buddy system of memory allocation.<br />Free memory is maintained in linked lists, each of equal sized blocks. Any such block is of size 2^k. When some memory is required by a process, the block size of next higher order is chosen, and broken into two. Note that the two such pieces differ in address only in their kth bit. Such pieces are called buddies. When any used block is freed, the OS checks to see if its buddy is also free. If so, it is rejoined, and put into the original free-block linked-list.<br /><br />22. What is time-stamping?<br />It is a technique proposed by Lamport, used to order events in a distributed system without the use of clocks. This scheme is intended to order events consisting of the transmission of messages. Each system 'i' in the network maintains a counter Ci. Every time a system transmits a message, it increments its counter by 1 and attaches the time-stamp Ti to the message. When a message is received, the receiving system 'j' sets its counter Cj to 1 more than the maximum of its current value and the incoming time-stamp Ti. At each site, the ordering of messages is determined by the following rules: For messages x from site i and y from site j, x precedes y if one of the following conditions holds....(a) if Ti<Tj or (b) if Ti=Tj and i<j.<br /><br />23. How are the wait/signal operations for monitor different from those for semaphores?<br />If a process in a monitor signal and no task is waiting on the condition variable, the signal is lost. So this allows easier program design. Whereas in semaphores, every operation affects the value of the semaphore, so the wait and signal operations should be perfectly balanced in the program.<br /><br /><br />24. In the context of memory management, what are placement and replacement algorithms?<br />Placement algorithms determine where in available real-memory to load a program. Common methods are first-fit, next-fit, best-fit. Replacement algorithms are used when memory is full, and one process (or part of a process) needs to be swapped out to accommodate a new program. The replacement algorithm determines which are the partitions to be swapped out.<br /><br />25. In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?<br />For load-time dynamic linking: Load module to be loaded is read into memory. Any reference to a target external module causes that module to be loaded and the references are updated to a relative address from the start base address of the application module. <br />With run-time dynamic loading: Some of the linking is postponed until actual reference during execution. Then the correct module is loaded and linked.<br /><br />26. What are demand- and pre-paging?<br />With demand paging, a page is brought into memory only when a location on that page is actually referenced during execution. With pre-paging, pages other than the one demanded by a page fault are brought in. The selection of such pages is done based on common access patterns, especially for secondary memory devices.<br /><br />27. Paging a memory management function, while multiprogramming a processor management function, are the two interdependent?<br />Yes.<br /><br />28. What is page cannibalizing?<br />Page swapping or page replacements are called page cannibalizing.<br /><br />29. What has triggered the need for multitasking in PCs?<br /> Increased speed and memory capacity of microprocessors together with the support fir virtual memory and<br /> Growth of client server computing<br /><br />30. What are the four layers that Windows NT have in order to achieve independence?<br /> Hardware abstraction layer<br /> Kernel<br /> Subsystems<br /> System Services.<br /><br />31. What is SMP?<br />To achieve maximum efficiency and reliability a mode of operation known as symmetric multiprocessing is used. In essence, with SMP any process or threads can be assigned to any processor.<br /><br />32. What are the key object oriented concepts used by Windows NT?<br /> Encapsulation<br /> Object class and instance<br /><br />33. Is Windows NT a full blown object oriented operating system? Give reasons.<br />No Windows NT is not so, because its not implemented in object oriented language and the data structures reside within one executive component and are not represented as objects and it does not support object oriented capabilities .<br /><br />34. What is a drawback of MVT?<br />It does not have the features like <br /> ability to support multiple processors<br /> virtual storage<br /> source level debugging<br /><br />35. What is process spawning?<br />When the OS at the explicit request of another process creates a process, this action is called process spawning.<br /><br />36. How many jobs can be run concurrently on MVT?<br />15 jobs<br /><br />37. List out some reasons for process termination.<br /> Normal completion<br /> Time limit exceeded<br /> Memory unavailable<br /> Bounds violation<br /> Protection error<br /> Arithmetic error<br /> Time overrun<br /> I/O failure<br /> Invalid instruction<br /> Privileged instruction<br /> Data misuse<br /> Operator or OS intervention<br /> Parent termination.<br /><br />38. What are the reasons for process suspension?<br /> swapping<br /> interactive user request<br /> timing<br /> parent process request<br /><br />39. What is process migration?<br />It is the transfer of sufficient amount of the state of process from one machine to the target machine<br /><br />40. What is mutant?<br />In Windows NT a mutant provides kernel mode or user mode mutual exclusion with the notion of ownership.<br /><br />41. What is an idle thread?<br />The special thread a dispatcher will execute when no ready thread is found.<br /><br />42. What is FtDisk?<br />It is a fault tolerance disk driver for Windows NT.<br /><br />43. What are the possible threads a thread can have?<br /> Ready<br /> Standby<br /> Running <br /> Waiting<br /> Transition <br /> Terminated.<br /><br />44. What are rings in Windows NT?<br /> Windows NT uses protection mechanism called rings provides by the process to implement separation between the user mode and kernel mode.<br /><br />45. What is Executive in Windows NT?<br />In Windows NT, executive refers to the operating system code that runs in kernel mode.<br /><br />46. What are the sub-components of I/O manager in Windows NT?<br /> Network redirector/ Server<br /> Cache manager.<br /> File systems <br /> Network driver<br /> Device driver<br /><br />47. What are DDks? Name an operating system that includes this feature.<br /> DDks are device driver kits, which are equivalent to SDKs for writing device drivers. Windows NT includes DDks.<br /><br />48. What level of security does Windows NT meets?<br /> C2 level security.pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-47897746956481114302007-12-15T18:16:00.000-08:002007-12-15T18:18:51.284-08:00Java Basics1.The Java interpreter is used for the execution of the source code.<br />True<br />False<br />Ans: a.<br />2) On successful compilation a file with the class extension is created.<br />a) True<br />b) False<br />Ans: a.<br />3) The Java source code can be created in a Notepad editor.<br />a) True<br />b) False<br />Ans: a.<br />4) The Java Program is enclosed in a class definition.<br />a) True<br />b) False<br />Ans: a.<br />5) What declarations are required for every Java application?<br />Ans: A class and the main( ) method declarations.<br />6) What are the two parts in executing a Java program and their purposes?<br />Ans: Two parts in executing a Java program are:<br />Java Compiler and Java Interpreter.<br />The Java Compiler is used for compilation and the Java Interpreter is used for execution of the application.<br />7) What are the three OOPs principles and define them?<br />Ans : Encapsulation, Inheritance and Polymorphism are the three OOPs <br />Principles.<br />Encapsulation:<br />Is the Mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse.<br />Inheritance:<br />Is the process by which one object acquires the properties of another object.<br />Polymorphism:<br />Is a feature that allows one interface to be used for a general class of actions.<br /> <br /> <br />8) What is a compilation unit?<br />Ans : Java source code file.<br />9) What output is displayed as the result of executing the following statement?<br />System.out.println("// Looks like a comment.");<br />// Looks like a comment <br />The statement results in a compilation error <br />Looks like a comment <br />No output is displayed<br />Ans : a.<br />10) In order for a source code file, containing the public class Test, to successfully compile, which of the following must be true?<br />It must have a package statement <br />It must be named Test.java <br />It must import java.lang <br />It must declare a public class named Test<br />Ans : b<br />11) What are identifiers and what is naming convention?<br />Ans : Identifiers are used for class names, method names and variable names. An identifier may be any descriptive sequence of upper case & lower case letters,numbers or underscore or dollar sign and must not begin with numbers.<br />12) What is the return type of program’s main( ) method?<br />Ans : void<br />13) What is the argument type of program’s main( ) method?<br />Ans : string array.<br />14) Which characters are as first characters of an identifier?<br />Ans : A – Z, a – z, _ ,$<br />15) What are different comments?<br />Ans : 1) // -- single line comment<br />2) /* --<br />*/ multiple line comment <br />3) /** --<br />*/ documentation<br />16) What is the difference between constructor method and method?<br />Ans : Constructor will be automatically invoked when an object is created. Whereas method has to be call explicitly.<br />17) What is the use of bin and lib in JDK?<br />Ans : Bin contains all tools such as javac, applet viewer, awt tool etc., whereas Lib <br />contains all packages and variables.<br /> <br /> <br />Data types,variables and Arrays<br />1) What is meant by variable?<br />Ans: Variables are locations in memory that can hold values. Before assigning any value to a variable, it must be declared.<br />2) What are the kinds of variables in Java? What are their uses?<br />Ans: Java has three kinds of variables namely, the instance variable, the local variable and the class variable.<br />Local variables are used inside blocks as counters or in methods as temporary variables and are used to store information needed by a single method.<br />Instance variables are used to define attributes or the state of a particular object and are used to store information needed by multiple methods in the objects.<br />Class variables are global to a class and to all the instances of the class and are useful for communicating between different objects of all the same class or keeping track of global states. <br />3) How are the variables declared?<br />Ans: Variables can be declared anywhere in the method definition and can be initialized during their declaration.They are commonly declared before usage at the beginning of the definition. <br />Variables with the same data type can be declared together. Local variables must be given a value before usage.<br />4) What are variable types?<br />Ans: Variable types can be any data type that java supports, which includes the eight primitive data types, the name of a class or interface and an array.<br />5) How do you assign values to variables?<br />Ans: Values are assigned to variables using the assignment operator =.<br />6) What is a literal? How many types of literals are there?<br />Ans: A literal represents a value of a certain type where the type describes how that value behaves.<br />There are different types of literals namely number literals, character literals, <br />boolean literals, string literals,etc.<br />7) What is an array?<br />Ans: An array is an object that stores a list of items.<br />8) How do you declare an array?<br />Ans: Array variable indicates the type of object that the array holds.<br />Ex: int arr[];<br />9) Java supports multidimensional arrays.<br />a)True<br />b)False<br />Ans: a.<br />10) An array of arrays can be created.<br />a)True<br />b)False<br />Ans: a.<br />11) What is a string?<br />Ans: A combination of characters is called as string.<br />12) Strings are instances of the class String.<br />a)True<br />b)False<br />Ans: a.<br />13) When a string literal is used in the program, Java automatically creates instances of the string class.<br />a)True<br />b)False<br />Ans: a.<br />14) Which operator is to create and concatenate string?<br />Ans: Addition operator(+).<br />15) Which of the following declare an array of string objects?<br />String[ ] s; <br />String [ ]s: <br />String[ s]: <br />String s[ ]:<br />Ans : a, b and d<br />16) What is the value of a[3] as the result of the following array declaration?<br />1 <br />2 <br />3 <br />4<br />Ans : d<br />17) Which of the following are primitive types?<br />byte <br />String <br />integer <br />Float<br />Ans : a.<br />18) What is the range of the char type?<br />0 to 216 <br />0 to 215 <br />0 to 216-1 <br />0 to 215-1<br />Ans. d<br />19) What are primitive data types?<br />Ans : byte, short, int, long<br />float, double<br />boolean<br />char<br />20) What are default values of different primitive types?<br />Ans : int - 0<br />short - 0<br />byte - 0<br />long - 0 l<br />float - 0.0 f<br />double - 0.0 d <br />boolean - false<br />char - null<br />21) Converting of primitive types to objects can be explicitly.<br />a)True<br />b)False<br />Ans: b.<br />22) How do we change the values of the elements of the array?<br />Ans : The array subscript expression can be used to change the values of the elements of the array.<br />23) What is final varaible?<br />Ans : If a variable is declared as final variable, then you can not change its value. It becomes constant.<br />24) What is static variable?<br />Ans : Static variables are shared by all instances of a class.<br /> <br /> <br /> <br />Operators<br />1) What are operators and what are the various types of operators available in Java?<br />Ans: Operators are special symbols used in expressions.<br />The following are the types of operators:<br />Arithmetic operators,<br />Assignment operators, <br />Increment & Decrement operators, <br />Logical operators, <br />Biwise operators, <br />Comparison/Relational operators and<br />Conditional operators<br />2) The ++ operator is used for incrementing and the -- operator is used for <br />decrementing.<br />a)True<br />b)False<br />Ans: a.<br />3) Comparison/Logical operators are used for testing and magnitude.<br />a)True<br />b)False<br />Ans: a.<br />4) Character literals are stored as unicode characters.<br />a)True<br />b)False<br />Ans: a.<br />5) What are the Logical operators?<br />Ans: OR(|), AND(&), XOR(^) AND NOT(~).<br />6) What is the % operator?<br />Ans : % operator is the modulo operator or reminder operator. It returns the reminder of dividing the first operand by second operand.<br />7) What is the value of 111 % 13?<br />3 <br />5 <br />7 <br />9 <br />Ans : c.<br />8) Is &&= a valid operator?<br />Ans : No.<br />9) Can a double value be cast to a byte?<br />Ans : Yes<br />10) Can a byte object be cast to a double value ?<br />Ans : No. An object cannot be cast to a primitive value. <br />11) What are order of precedence and associativity?<br />Ans : Order of precedence the order in which operators are evaluated in expressions.<br />Associativity determines whether an expression is evaluated left-right or right-left.<br />12) Which Java operator is right associativity?<br />Ans : = operator.<br />13) What is the difference between prefix and postfix of -- and ++ operators?<br />Ans : The prefix form returns the increment or decrement operation and returns the value of the increment or decrement operation.<br />The postfix form returns the current value of all of the expression and then <br />performs the increment or decrement operation on that value.<br />14) What is the result of expression 5.45 + "3,2"?<br />The double value 8.6 <br />The string ""8.6" <br />The long value 8. <br />The String "5.453.2"<br />Ans : d<br />15) What are the values of x and y ?<br />x = 5; y = ++x; <br />Ans : x = 6; y = 6<br />16) What are the values of x and z?<br />x = 5; z = x++; <br />Ans : x = 6; z = 5<br /> <br /> <br /> <br /> <br /> <br /> <br />Control Statements<br />1) What are the programming constructs?<br />Ans: a) Sequential<br />b) Selection -- if and switch statements<br />c) Iteration -- for loop, while loop and do-while loop<br />2) class conditional {<br />public static void main(String args[]) {<br />int i = 20;<br />int j = 55;<br />int z = 0;<br />z = i < j ? i : j; // ternary operator<br />System.out.println("The value assigned is " + z);<br />}<br />}<br />What is output of the above program?<br />Ans: The value assigned is 20<br />3) The switch statement does not require a break.<br />a)True<br />b)False<br />Ans: b.<br />4) The conditional operator is otherwise known as the ternary operator.<br />a)True<br />b)False<br />Ans: a.<br />5) The while loop repeats a set of code while the condition is false.<br />a)True<br />b)False<br />Ans: b.<br />6) The do-while loop repeats a set of code atleast once before the condition is tested.<br />a)True<br />b)False<br />Ans: a. <br />7) What are difference between break and continue?<br />Ans: The break keyword halts the execution of the current loop and forces control out of the loop.<br />The continue is similar to break, except that instead of halting the execution of the loop, it starts the next iteration.<br /> <br />8) The for loop repeats a set of statements a certain number of times until a condition is matched.<br />a)True<br />b)False<br />Ans: a.<br />9) Can a for statement loop indefintely?<br />Ans : Yes.<br />10) What is the difference between while statement and a do statement/<br />Ans : A while statement checks at the beginning of a loop to see whether the next loop iteration should occur.<br />A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once. <br /> <br /> <br />Introduction to Classes and Methods<br />1) Which is used to get the value of the instance variables?<br />Ans: Dot notation.<br />2) The new operator creates a single instance named class and returns a <br />reference to that object.<br />a)True<br />b)False<br />Ans: a.<br />3) A class is a template for multiple objects with similar features.<br />a)True<br />b)False<br />Ans: a.<br />4) What is mean by garbage collection?<br />Ans: When an object is no longer referred to by any variable, Java automatically <br />reclaims memory used by that object. This is known as garbage collection. <br />5) What are methods and how are they defined?<br />Ans: Methods are functions that operate on instances of classes in which they are defined.Objects can communicate with each other using methods and can call methods in other classes.<br />Method definition has four parts. They are name of the method, type of object or primitive type the method returns, a list of parameters and the body of the method. <br />A method's signature is a combination of the first three parts mentioned above.<br />6) What is calling method?<br />Ans: Calling methods are similar to calling or referring to an instance variable. These methods are accessed using dot notation. <br />Ex: obj.methodname(param1,param2)<br />7) Which method is used to determine the class of an object?<br />Ans: getClass( ) method can be used to find out what class the belongs to. This class is defined in the object class and is available to all objects. <br />8) All the classes in java.lang package are automatically imported when<br />a program is compiled.<br />a)True<br />b)False<br />Ans: a.<br />9) How can class be imported to a program?<br />Ans: To import a class, the import keyword should be used as shown.;<br />import classname;<br />10) How can class be imported from a package to a program?<br />Ans: import java . packagename . classname (or) import java.package name.*;<br />11) What is a constructor?<br />Ans: A constructor is a special kind of method that determines how an object is <br />initialized when created.<br />12) Which keyword is used to create an instance of a class?<br />Ans: new.<br />13) Which method is used to garbage collect an object?<br />Ans: finalize ().<br />14) Constructors can be overloaded like regular methods.<br />a)True<br />b)False<br />Ans: a.<br />15) What is casting?<br />Ans: Casting is bused to convert the value of one type to another.<br /> <br /> <br /> <br />16) Casting between primitive types allows conversion of one primitive type to another.<br />a)True<br />b)False<br />Ans: a.<br />17) Casting occurs commonly between numeric types.<br />a)True<br />b)False<br />Ans: a.<br />18) Boolean values can be cast into any other primitive type.<br />a)True<br />b)False<br />Ans: b.<br />19) Casting does not affect the original object or value.<br />a)True<br />b)False<br />Ans: a.<br />20) Which cast must be used to convert a larger value into a smaller one?<br />Ans: Explicit cast.<br />21) Which cast must be used to cast an object to another class?<br />Ans: Specific cast.<br />22) Which of the following features are common to both Java & C++?<br />A.The class declaration<br />b.The access modifiers<br />c.The encapsulation of data & methods with in objects<br />d.The use of pointers<br />Ans: a,b,c.<br />23) Which of the following statements accurately describe the use of access modifiers within a class definition?<br />a.They can be applied to both data & methods<br />b.They must precede a class's data variables or methods<br />c.They can follow a class's data variables or methods<br />d.They can appear in any order<br />e.They must be applied to data variables first and then to methods<br />Ans: a,b,d.<br />24) Suppose a given instance variable has been declared private.<br />Can this instance variable be manipulated by methods out side its class?<br />a.yes<br />b.no<br />Ans: b.<br />25) Which of the following statements can be used to describe a public method?<br />a.It is accessible to all other classes in the hierarchy<br />b.It is accessablde only to subclasses of its parent class<br />c.It represents the public interface of its class<br />d.The only way to gain access to this method is by calling one of the public class<br />methods<br />Ans: a,c.<br />26) Which of the following types of class members can be part of the internal part of a class?<br />a.Public instance variables<br />b.Private instance variables<br />c.Public methods<br />d.Private methods<br />Ans: b,d.<br />27) You would use the ____ operator to create a single instance of a named class.<br />a.new<br />b.dot<br />Ans: a.<br />28) Which of the following statements correctly describes the relation between an object and the instance variable it stores?<br />a.Each new object has its own distinctive set of instance variables<br />b.Each object has a copy of the instance variables of its class<br />c.the instance variable of each object are seperate from the variables of other objects<br />d.The instance variables of each object are stored together with the variables of other objects<br />Ans: a,b,c.<br />29) If no input parameters are specified in a method declaration then the declaration will include __.<br />a.an empty set of parantheses<br />b.the term void<br />Ans: a.<br />30) What are the functions of the dot(.) operator?<br />a.It enables you to access instance variables of any objects within a class<br />b.It enables you to store values in instance variables of an object <br />c.It is used to call object methods<br />d.It is to create a new object<br />Ans: a,b,c.<br />31) Which of the following can be referenced by this variable?<br />a.The instance variables of a class only<br />b.The methods of a class only<br />c.The instance variables and methods of a class <br />Ans: c.<br />32) The this reference is used in conjunction with ___methods.<br />a.static<br />b.non-static<br />Ans: b.<br />33) Which of the following operators are used in conjunction with the this and super references?<br />a.The new operator<br />b.The instanceof operator<br />c.The dot operator<br />Ans: c.<br />34) A constructor is automatically called when an object is instantiated<br />a. true<br />b. false <br />Ans: a.<br />35) When may a constructor be called without specifying arguments?<br />a. When the default constructor is not called<br />b. When the name of the constructor differs from that of the class<br />c. When there are no constructors for the class<br />Ans: c.<br />36) Each class in java can have a finalizer method<br />a. true<br />b.false<br />Ans: a.<br />37) When an object is referenced, does this mean that it has been identified by the finalizer method for garbage collection?<br />a.yes<br />b.no<br />Ans: b.<br />38) Because finalize () belongs to the java.lang.Object class, it is present in all ___.<br />a.objects<br />b.classes<br />c.methods<br />Ans: b.<br />39) Identify the true statements about finalization.<br />a.A class may have only one finalize method <br />b.Finalizers are mostly used with simple classes<br />c.Finalizer overloading is not allowed<br />Ans: a,c.<br />40) When you write finalize() method for your class, you are overriding a finalizer <br />inherited from a super class.<br />a.true<br />b.false<br />Ans: a.<br />41) Java memory management mechanism garbage collects objects which are no longer referenced<br />a true<br />b.false<br />Ans: a.<br />42) are objects referenced by a variable candidates for garbage collection when the variable goes out of scope?<br />a yes<br />b. no<br />Ans: a.<br />43) Java's garbage collector runs as a ___ priority thread waiting for __priority threads to relinquish the processor.<br />a.high <br />b.low<br />Ans: a,b.<br />44) The garbage collector will run immediately when the system is out of memory<br />a.true <br />b.false<br />Ans: a.<br />45) You can explicitly drop a object reference by setting the value of a variable whose data type is a reference type to ___<br />Ans: null<br />46) When might your program wish to run the garbage collecter?<br />a. before it enters a compute-intense section of code<br />b. before it enters a memory-intense section of code<br />c. before objects are finalized<br />d. when it knows there will be some idle time<br />Ans: a,b,d<br />47) For externalizable objects the class is solely responsible for the external format of its contents<br />a.true <br />b.false<br />Ans: a<br />48) When an object is stored, are all of the objects that are reachable from that object stored as well?<br />a.true<br />b.false<br />Ans: a<br />49) The default__ of objects protects private and trancient data, and supports the __ of the classes<br />a.evolution<br />b.encoding<br />Ans: b,a.<br />50) Which are keywords in Java?<br />a) NULL<br />b) sizeof<br />c) friend<br />d) extends<br />e) synchronized<br />Ans : d and e <br />51) When must the main class and the file name coincide?<br />Ans :When class is declared public.<br />52) What are different modifiers?<br />Ans : public, private, protected, default, static, trancient, volatile, final, abstract.<br />53) What are access modifiers?<br />Ans : public, private, protected, default.<br />54) What is meant by "Passing by value" and " Passing by reference"?<br />Ans : objects – pass by referrence<br />Methods - pass by value <br />55) Is a class a subclass of itself?<br />Ans : A class is a subclass itself.<br /> <br />56) What modifiers may be used with top-level class?<br />Ans : public, abstract, final.<br />57) What is an example of polymorphism?<br />Inner class <br />Anonymous classes <br />Method overloading <br />Method overriding<br />Ans : c<br /> <br /> <br />Packages and interface<br />1) What are packages ? what is use of packages ?<br />Ans :The package statement defines a name space in which classes are stored.If you omit the package, the classes are put into the default package.<br />Signature... package pkg;<br />Use: * It specifies to which package the classes defined in a file belongs to. * Package is both naming and a visibility control mechanism.<br />2) What is difference between importing "java.applet.Applet" and "java.applet.*;" ?<br />Ans :"java.applet.Applet" will import only the class Applet from the package java.applet<br />Where as "java.applet.*" will import all the classes from java.applet package.<br />3) What do you understand by package access specifier?<br />Ans : public: Anything declared as public can be accessed from anywhere <br />private: Anything declared in the private can’t be seen outside of its class.<br />default: It is visible to subclasses as well as to other classes in the same package.<br />4) What is interface? What is use of interface?<br />Ans : It is similar to class which may contain method’s signature only but not bodies. <br />Methods declared in interface are abstract methods. We can implement many interfaces on a class which support the multiple inheritance.<br />5) Is it is necessary to implement all methods in an interface?<br />Ans : Yes. All the methods have to be implemented.<br />6) Which is the default access modifier for an interface method?<br />Ans : public.<br />7) Can we define a variable in an interface ?and what type it should be ?<br />Ans : Yes we can define a variable in an interface. They are implicitly final and static.<br />8) What is difference between interface and an abstract class?<br />Ans : All the methods declared inside an Interface are abstract. Where as abstract class must have at least one abstract method and others may be concrete or abstract. <br />In Interface we need not use the keyword abstract for the methods.<br />9) By default, all program import the java.lang package.<br />True/False<br />Ans : True<br />10) Java compiler stores the .class files in the path specified in CLASSPATH <br />environmental variable.<br />True/False<br />Ans : False<br /> <br />11) User-defined package can also be imported just like the standard packages.<br />True/False<br />Ans : True<br />12) When a program does not want to handle exception, the ______class is used.<br />Ans : Throws<br />13) The main subclass of the Exception class is _______ class.<br />Ans : RuntimeException<br />14) Only subclasses of ______class may be caught or thrown.<br />Ans : Throwable<br />15) Any user-defined exception class is a subclass of the _____ class.<br />Ans : Exception<br />16) The catch clause of the user-defined exception class should ______ its<br />Base class catch clause.<br />Ans : Exception<br />17) A _______ is used to separate the hierarchy of the class while declaring an<br />Import statement.<br />Ans : Package<br /> <br />18) All standard classes of Java are included within a package called _____.<br />Ans : java.lang<br />19) All the classes in a package can be simultaneously imported using ____.<br />Ans : *<br />20) Can you define a variable inside an Interface. If no, why? If yes, how?<br />Ans.: YES. final and static<br />21) How many concrete classes can you have inside an interface?<br />Ans.: None<br />22) Can you extend an interface?<br />Ans.: Yes<br />23) Is it necessary to implement all the methods of an interface while implementing the interface? <br />Ans.: No<br />24) If you do not implement all the methods of an interface while implementing , what specifier should you use for the class ?<br />Ans.: abstract<br />25) How do you achieve multiple inheritance in Java?<br />Ans: Using interfaces.<br />26) How to declare an interface example?<br />Ans : access class classname implements interface.<br />27) Can you achieve multiple interface through interface?<br />a)True <br />b) false<br />Ans : a.<br />28) Can variables be declared in an interface ? If so, what are the modifiers?<br />Ans : Yes. final and static are the modifiers can be declared in an interface.<br />29) What are the possible access modifiers when implementing interface methods?<br />Ans : public.<br />30) Can anonymous classes be implemented an interface?<br />Ans : Yes.<br />31) Interfaces can’t be extended.<br />a)True<br />b)False<br />Ans : b.<br />32) Name interfaces without a method?<br />Ans : Serializable, Cloneble & Remote.<br />33) Is it possible to use few methods of an interface in a class ? If so, how?<br />Ans : Yes. Declare the class as abstract. <br /> <br /><br /><br />Exception Handling<br />1) What is the difference between ‘throw’ and ‘throws’ ?And it’s application?<br />Ans : Exceptions that are thrown by java runtime systems can be handled by Try and catch blocks. With throw exception we can handle the exceptions thrown by the program itself. If a method is capable of causing an exception that it does not <br />handle, it must specify this behavior so the callers of the method can guard <br />against that exception.<br />2) What is the difference between ‘Exception’ and ‘error’ in java?<br />Ans : Exception and Error are the subclasses of the Throwable class. Exception class is used for exceptional conditions that user program should catch. With exception class we can subclass to create our own custom exception.<br />Error defines exceptions that are not excepted to be caught by you program. Example is Stack Overflow.<br />3) What is ‘Resource leak’?<br />Ans : Freeing up other resources that might have been allocated at the beginning of a method.<br />4)What is the ‘finally’ block?<br />Ans : Finally block will execute whether or not an exception is thrown. If an exception is thrown, the finally block will execute even if no catch statement match the exception. Any time a method is about to return to the caller from inside try/catch block, via an uncaught exception or an explicit return statement, the finally clause is also execute.<br />5) Can we have catch block with out try block? If so when?<br />Ans : No. Try/Catch or Try/finally form a unit.<br />6) What is the difference between the following statements?<br />Catch (Exception e),<br />Catch (Error err),<br />Catch (Throwable t)<br />Ans :<br /> <br /> <br /> <br />7) What will happen to the Exception object after exception handling?<br />Ans : It will go for Garbage Collector. And frees the memory.<br />8) How many Exceptions we can define in ‘throws’ clause?<br />Ans : We can define multiple exceptions in throws clause.<br />Signature is..<br />type method-name (parameter-list) throws exception-list<br /> <br />9) The finally block is executed when an exception is thrown, even if no catch matches it.<br />True/False<br />Ans : True<br />10) The subclass exception should precede the base class exception when used within the catch clause.<br />True/False<br />Ans : True<br />11) Exceptions can be caught or rethrown to a calling method.<br />True/False<br />Ans : True <br />12) The statements following the throw keyword in a program are not executed.<br />True/False<br />Ans : True<br />13) The toString ( ) method in the user-defined exception class is overridden.<br />True/False<br />Ans : True<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />MULTI THREADING<br />1) What are the two types of multitasking?<br />Ans : 1.process-based<br />2.Thread-based<br />2) What are the two ways to create the thread?<br />Ans : 1.by implementing Runnable<br />2.by extending Thread<br />3) What is the signature of the constructor of a thread class?<br />Ans : Thread(Runnable threadob,String threadName)<br />4) What are all the methods available in the Runnable Interface?<br />Ans : run()<br />5) What is the data type for the method isAlive() and this method is <br />available in which class?<br />Ans : boolean, Thread <br />6) What are all the methods available in the Thread class?<br />Ans : 1.isAlive()<br />2.join()<br />3.resume()<br />4.suspend()<br />5.stop()<br />6.start()<br />7.sleep()<br />8.destroy()<br />7) What are all the methods used for Inter Thread communication and what is the class in which these methods are defined?<br />Ans :1. wait(),notify() & notifyall()<br />2. Object class<br />8) What is the mechanisam defind by java for the Resources to be used by only one Thread at a time?<br />Ans : Synchronisation<br />9) What is the procedure to own the moniter by many threads?<br />Ans : not possible<br />10) What is the unit for 1000 in the below statement?<br />ob.sleep(1000)<br />Ans : long milliseconds<br />11) What is the data type for the parameter of the sleep() method?<br />Ans : long<br />12) What are all the values for the following level?<br />max-priority <br />min-priority<br />normal-priority<br />Ans : 10,1,5<br />13) What is the method available for setting the priority?<br />Ans : setPriority()<br />14) What is the default thread at the time of starting the program?<br />Ans : main thread<br />15) The word synchronized can be used with only a method.<br />True/ False<br />Ans : False<br />16) Which priority Thread can prompt the lower primary Thread?<br />Ans : Higher Priority<br />17) How many threads at a time can access a monitor?<br />Ans : one<br />18) What are all the four states associated in the thread?<br />Ans : 1. new 2. runnable 3. blocked 4. dead<br />19) The suspend()method is used to teriminate a thread?<br />True /False<br />Ans : False<br />20) The run() method should necessary exists in clases created as subclass of thread?<br />True /False<br />Ans : True<br />21) When two threads are waiting on each other and can't proceed the programe is said to be in a deadlock?<br />True/False <br />Ans : True<br />22) Which method waits for the thread to die ?<br />Ans : join() method<br /> <br />23) Which of the following is true?<br />1) wait(),notify(),notifyall() are defined as final & can be called only from with in a synchronized method<br />2) Among wait(),notify(),notifyall() the wait() method only throws IOException<br />3) wait(),notify(),notifyall() & sleep() are methods of object class <br />1 <br />2 <br />3 <br />1 & 2 <br />1,2 & 3<br />Ans : D<br />24) Garbage collector thread belongs to which priority?<br />Ans : low-priority<br />25) What is meant by timeslicing or time sharing?<br />Ans : Timeslicing is the method of allocating CPU time to individual threads in a priority schedule.<br />26) What is meant by daemon thread? In java runtime, what is it's role?<br />Ans : Daemon thread is a low priority thread which runs intermittently in the background doing the garbage collection operation for the java runtime system.<br /> <br /> <br /> <br /> <br />Inheritance<br />1) What is the difference between superclass & subclass?<br />Ans : A super class is a class that is inherited whereas subclass is a class that does the inheriting. <br />2) Which keyword is used to inherit a class?<br />Ans : extends<br />3) Subclasses methods can access superclass members/ attributes at all times?<br />True/False<br />Ans : False<br /> <br />4) When can subclasses not access superclass members?<br />Ans : When superclass is declared as private.<br />5) Which class does begin Java class hierarchy?<br />Ans : Object class<br />6) Object class is a superclass of all other classes?<br />True/False<br />Ans : True<br />7) Java supports multiple inheritance?<br />True/False<br />Ans : False<br />8) What is inheritance?<br />Ans : Deriving an object from an existing class. In the other words, Inheritance is the process of inheriting all the features from a class<br />9) What are the advantages of inheritance?<br />Ans : Reusability of code and accessibility of variables and methods of the superclass by subclasses.<br />10) Which method is used to call the constructors of the superclass from the subclass?<br />Ans : super(argument)<br />11) Which is used to execute any method of the superclass from the subclass?<br />Ans : super.method-name(arguments)<br />12) Which methods are used to destroy the objects created by the constructor methods?<br />Ans : finalize()<br />13) What are abstract classes?<br />Ans : Abstract classes are those for which instances can’t be created.<br />14) What must a class do to implement an interface?<br />Ans: It must provide all of the methods in the interface and identify the interface in its implements clause.<br />15) Which methods in the Object class are declared as final?<br />Ans : getClass(), notify(), notifyAll(), and wait()<br />16) Final methods can be overridden.<br />True/False<br />Ans : False<br />17) Declaration of methods as final results in faster execution of the program?<br />True/False<br />Ans: True<br />18) Final variables should be declared in the beginning?<br />True/False<br />Ans : True<br />19) Can we declare variable inside a method as final variables? Why?<br />Ans : Cannot because, local variable cannot be declared as final variables.<br />20) Can an abstract class may be final?<br />Ans : An abstract class may not be declared as final.<br />21) Does a class inherit the constructors of it's super class?<br />Ans: A class does not inherit constructors from any of it's super classes.<br />22) What restrictions are placed on method overloading?<br />Ans: Two methods may not have the same name and argument list but different return types.<br />23) What restrictions are placed on method overriding?<br />Ans : Overridden methods must have the same name , argument list , and return type. The overriding method may not limit the access of the method it overridees.The overriding method may not throw any exceptions that may not be thrown by the overridden method.<br />24) What modifiers may be used with an inner class that is a member of an outer class?<br />Ans : a (non-local) inner class may be declared as public, protected, private, static, final or abstract.<br />25) How this() is used with constructors?<br />Ans: this() is used to invoke a constructor of the same class<br />26) How super() used with constructors?<br />Ans : super() is used to invoke a super class constructor<br />27) Which of the following statements correctly describes an interface?<br />a)It's a concrete class<br />b)It's a superclass<br />c)It's a type of abstract class<br />Ans: c<br />28) An interface contains __ methods<br />a)Non-abstract<br />b)Implemented<br />c)unimplemented<br />Ans:c<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />STRING HANDLING<br />Which package does define String and StringBuffer classes? <br />Ans : java.lang package.<br />Which method can be used to obtain the length of the String? <br />Ans : length( ) method.<br />How do you concatenate Strings? <br />Ans : By using " + " operator.<br />Which method can be used to compare two strings for equality? <br />Ans : equals( ) method.<br />Which method can be used to perform a comparison between strings that ignores case differences? <br />Ans : equalsIgnoreCase( ) method.<br />What is the use of valueOf( ) method? <br />Ans : valueOf( ) method converts data from its internal format into a human-readable form.<br />What are the uses of toLowerCase( ) and toUpperCase( ) methods? <br />Ans : The method toLowerCase( ) converts all the characters in a string from uppercase to <br />lowercase. <br />The method toUpperCase( ) converts all the characters in a string from lowercase to <br />uppercase. <br />Which method can be used to find out the total allocated capacity of a StrinBuffer? <br />Ans : capacity( ) method.<br />Which method can be used to set the length of the buffer within a StringBuffer object? <br />Ans : setLength( ).<br />What is the difference between String and StringBuffer? <br />Ans : String objects are constants, whereas StringBuffer objects are not.<br />String class supports constant strings, whereas StringBuffer class supports growable, modifiable strings.<br />What are wrapper classes? <br />Ans : Wrapper classes are classes that allow primitive types to be accessed as objects. <br />Which of the following is not a wrapper class?<br />String <br />Integer <br />Boolean <br />Character<br />Ans : a.<br />What is the output of the following program?<br />public class Question {<br />public static void main(String args[]) {<br />String s1 = "abc";<br />String s2 = "def";<br />String s3 = s1.concat(s2.toUpperCase( ) );<br />System.out.println(s1+s2+s3);<br />}<br />}<br />abcdefabcdef <br />abcabcDEFDEF <br />abcdefabcDEF <br />None of the above<br />ANS : c.<br />Which of the following methods are methods of the String class?<br />delete( ) <br />append( ) <br />reverse( ) <br />replace( )<br />Ans : d.<br />Which of the following methods cause the String object referenced by s to be changed?<br />s.concat( ) <br />s.toUpperCase( ) <br />s.replace( ) <br />s.valueOf( )<br />Ans : a and b.<br />String is a wrapper class?<br />True <br />False<br />Ans : b.<br />17) If you run the code below, what gets printed out? <br />String s=new String("Bicycle"); <br /><br />int iBegin=1; <br /><br />char iEnd=3; <br /><br />System.out.println(s.substring(iBegin,iEnd));<br />Bic <br />ic <br />c) icy <br />d) error: no method matching substring(int,char)<br />Ans : b.<br />18) Given the following declarations <br />String s1=new String("Hello") <br /><br />String s2=new String("there"); <br /><br />String s3=new String();<br />Which of the following are legal operations? <br />s3=s1 + s2; <br />s3=s1 - s2; <br />c) s3=s1 & s2 <br />d) s3=s1 && s2 <br />Ans : a.<br />19) Which of the following statements are true? <br />The String class is implemented as a char array, elements are addressed using the stringname[] convention <br />b) Strings are a primitive type in Java that overloads the + operator for concatenation <br />c) Strings are a primitive type in Java and the StringBuffer is used as the matching wrapper type <br />d) The size of a string can be retrieved using the length property.<br />Ans : b.<br /> <br /> <br /> <br />EXPLORING JAVA.LANG <br />java.lang package is automatically imported into all programs.<br />True <br />False<br />Ans : a<br />What are the interfaces defined by java.lang? <br />Ans : Cloneable, Comparable and Runnable.<br />What are the constants defined by both Flaot and Double classes? <br />Ans : MAX_VALUE,<br />MIN_VALUE,<br />NaN,<br />POSITIVE_INFINITY,<br />NEGATIVE_INFINITY and<br />TYPE.<br />What are the constants defined by Byte, Short, Integer and Long? <br />Ans : MAX_VALUE,<br />MIN_VALUE and <br />TYPE.<br />What are the constants defined by both Float and Double classes? <br />Ans : MAX_RADIX,<br />MIN_RADIX,<br />MAX_VALUE,<br />MIN_VALUE and <br />TYPE.<br />What is the purpose of the Runtime class? <br />Ans : The purpose of the Runtime class is to provide access to the Java runtime system.<br />What is the purpose of the System class? <br />Ans : The purpose of the System class is to provide access to system resources.<br />Which class is extended by all other classes? <br />Ans : Object class is extended by all other classes.<br />Which class can be used to obtain design information about an object? <br />Ans : The Class class can be used to obtain information about an object’s design.<br />Which method is used to calculate the absolute value of a number? <br />Ans : abs( ) method.<br />What are E and PI? <br />Ans : E is the base of the natural logarithm and PI is the mathematical value pi.<br />Which of the following classes is used to perform basic console I/O?<br />System <br />SecurityManager <br />Math <br />Runtime<br />Ans : a.<br />Which of the following are true?<br />The Class class is the superclass of the Object class. <br />The Object class is final. <br />The Class class can be used to load other classes. <br />The ClassLoader class can be used to load other classes.<br />Ans : c and d.<br />Which of the following methods are methods of the Math class?<br />absolute( ) <br />log( ) <br />cosine( ) <br />sine( )<br />Ans : b.<br />Which of the following are true about the Error and Exception classes?<br />Both classes extend Throwable. <br />The Error class is final and the Exception class is not. <br />The Exception class is final and the Error is not. <br />Both classes implement Throwable.<br />Ans : a.<br />Which of the following are true?<br />The Void class extends the Class class. <br />The Float class extends the Double class. <br />The System class extends the Runtime class. <br />The Integer class extends the Number class. <br />Ans : d.<br /> <br /> <br /> <br />17) Which of the following will output -4.0 <br />System.out.println(Math.floor(-4.7)); <br />System.out.println(Math.round(-4.7)); <br />System.out.println(Math.ceil(-4.7)); <br />d) System.out.println(Math.Min(-4.7)); <br />Ans : c.<br />18) Which of the following are valid statements <br />a) public class MyCalc extends Math <br />b) Math.max(s); <br />c) Math.round(9.99,1); <br />d) Math.mod(4,10); <br />e) None of the above.<br />Ans : e.<br />19) What will happen if you attempt to compile and run the following code? <br />Integer ten=new Integer(10); <br /><br />Long nine=new Long (9);<br /><br />System.out.println(ten + nine); <br /><br />int i=1;<br /><br />System.out.println(i + ten);<br />19 followed by 20 <br />19 followed by 11 <br />Error: Can't convert java lang Integer <br />d) 10 followed by 1<br />Ans : c.<br /> <br />INPUT / OUTPUT : EXPLORING JAVA.IO<br />What is meant by Stream and what are the types of Streams and classes of the Streams? <br />Ans : A Stream is an abstraction that either produces or consumes information.<br />There are two types of Streams. They are:<br />Byte Streams : Byte Streams provide a convenient means for handling input and output of bytes. <br />Character Streams : Character Streams provide a convenient means for handling input and output of characters.<br />Byte Stream classes : Byte Streams are defined by using two abstract classes. They are:InputStream and OutputStream.<br />Character Stream classes : Character Streams are defined by using two abstract classes. They are : Reader and Writer. <br />Which of the following statements are true?<br />UTF characters are all 8-bits. <br />UTF characters are all 16-bits. <br />UTF characters are all 24-bits. <br />Unicode characters are all 16-bits. <br />Bytecode characters are all 16-bits.<br />Ans : d.<br />Which of the following statements are true?<br />When you construct an instance of File, if you do not use the filenaming semantics of the local machine, the constructor will throw an IOException. <br />When you construct an instance of File, if the corresponding file does not exist on the local file system, one will be created. <br />When an instance of File is garbage collected, the corresponding file on the local file system is deleted. <br />None of the above.<br />Ans : a,b and c.<br />The File class contains a method that changes the current working directory.<br />True <br />False<br />Ans : b.<br />It is possible to use the File class to list the contents of the current working directory.<br />True <br />False<br />Ans : a.<br />Readers have methods that can read and return floats and doubles.<br />True <br />False<br />Ans : b.<br />You execute the code below in an empty directory. What is the result?<br />File f1 = new File("dirname");<br />File f2 = new File(f1, "filename");<br />A new directory called dirname is created in the current working directory. <br />A new directory called dirname is created in the current working directory. A new file called filename is created in directory dirname. <br />A new directory called dirname and a new file called filename are created, both in the current working directory. <br />A new file called filename is created in the current working directory. <br />No directory is created, and no file is created.<br />Ans : e. <br />What is the difference between the Reader/Writer class hierarchy and the <br />InputStream/OutputStream class hierarchy?<br />Ans : The Reader/Writer class hierarchy is character-oriented and the InputStream/OutputStream class hierarchy is byte-oriented.<br />What is an I/O filter? <br />Ans : An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.<br />What is the purpose of the File class? <br />Ans : The File class is used to create objects that provide access to the files and directories of a local file system.<br />What interface must an object implement before it can be written to a stream as an object? <br />Ans : An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object.<br />What is the difference between the File and RandomAccessFile classes? <br />Ans : The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.<br />What class allows you to read objects directly from a stream? <br />Ans : The ObjectInputStream class supports the reading of objects from input streams.<br />What value does read( ) return when it has reached the end of a file? <br />Ans : The read( ) method returns – 1 when it has reached the end of a file.<br />What value does readLine( ) return when it has reached the end of a file? <br />Ans : The readLine( ) method returns null when it has reached the end of a file.<br />How many bits are used to represent Unicode, ASCII, UTF-16 and UTF-8 characters? <br />Ans : Unicode requires 16-bits and ASCII requires 8-bits. Although the ASCII character set uses only 1-bits, it is usually represented as 8-bits. UTF-8 represents characters using 8, 16 and 18-bit patterns. UTF-16 uses 16-bit and larger bit patterns.<br />Which of the following are true?<br />The InputStream and OutputStream classes are byte-oriented. <br />The ObjectInputStream and ObjectOutputStream do not support serialized object input and output. <br />The Reader and Writer classes are character-oriented. <br />The Reader and Writer classes are the preferred solution to serialized object output.<br />Ans : a and c.<br />Which of the following are true about I/O filters?<br />Filters are supported on input, but not on output. <br />Filters are supported by the InputStream/OutputStream class hierarchy, but not by the Reader/Writer class hierarchy. <br />Filters read from one stream and write to another. <br />A filter may alter data that is read from one stream and written to another.<br />Ans : c and d.<br />Which of the following are true?<br />Any Unicode character is represented using 16-bits. <br />7-bits are needed to represent any ASCII character. <br />UTF-8 characters are represented using only 8-bits. <br />UTF-16 characters are represented using only 16-bits.<br />Ans : a and b.<br />Which of the following are true?<br />The Serializable interface is used to identify objects that may be written to an output stream. <br />The Externalizable interface is implemented by classes that control the way in which their objects are serialized. <br />The Serializable interface extends the Externalizable interface. <br />The Externalizable interface extends the Serializable interface.<br />Ans : a, b and d.<br />Which of the following are true about the File class?<br />A File object can be used to change the current working directory. <br />A File object can be used to access the files in the current directory. <br />When a File object is created, a corresponding directory or file is created in the local file system. <br />File objects are used to access files and directories on the local file system. <br />File objects can be garbage collected. <br />When a File object is garbage collected, the corresponding file or directory is deleted.<br />Ans : b, d and e. <br />How do you create a Reader object from an InputStream object?<br />Use the static createReader( ) method of InputStream class. <br />Use the static createReader( ) method of Reader class. <br />Create an InputStreamReader object, passing the InputStream object as an argument to the InputStreamReader constructor. <br />Create an OutputStreamReader object, passing the InputStream object as an argument to the OutputStreamReader constructor.<br />Ans : c.<br />Which of the following are true?<br />Writer classes can be used to write characters to output streams using different character encodings. <br />Writer classes can be used to write Unicode characters to output streams. <br />Writer classes have methods that support the writing of the values of any Java primitive type to output streams. <br />Writer classes have methods that support the writing of objects to output streams.<br />Ans : a and b.<br />The isFile( ) method returns a boolean value depending on whether the file object is a file or a directory.<br />True. <br />False.<br />Ans : a.<br />Reading or writing can be done even after closing the input/output source.<br />True. <br />False.<br />Ans : b.<br /> <br />The ________ method helps in clearing the buffer. <br />Ans : flush( ).<br />The System.err method is used to print error message.<br />True. <br />False.<br />Ans : a.<br />What is meant by StreamTokenizer? <br />Ans : StreamTokenizer breaks up InputStream into tokens that are delimited by sets of characters. <br />It has the constructor : StreamTokenizer(Reader inStream).<br />Here inStream must be some form of Reader.<br />What is Serialization and deserialization?<br />Ans : Serialization is the process of writing the state of an object to a byte stream.<br />Deserialization is the process of restoring these objects. <br />30) Which of the following can you perform using the File class? <br />a) Change the current directory <br />b) Return the name of the parent directory <br />c) Delete a file <br />d) Find if a file contains text or binary information<br />Ans : b and c.<br />31)How can you change the current working directory using an instance of the File class called FileName?<br />FileName.chdir("DirName"). <br />FileName.cd("DirName"). <br />FileName.cwd("DirName"). <br />The File class does not support directly changing the current directory.<br />Ans : d.<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br />EVENT HANDLING<br />The event delegation model, introduced in release 1.1 of the JDK, is fully compatible with the <br />event model.<br />True <br />False<br />Ans : b.<br />A component subclass that has executed enableEvents( ) to enable processing of a certain kind of event cannot also use an adapter as a listener for the same kind of event.<br />True <br />False<br />Ans : b.<br />What is the highest-level event class of the event-delegation model? <br />Ans : The java.util.eventObject class is the highest-level class in the event-delegation hierarchy.<br />What interface is extended by AWT event listeners? <br />Ans : All AWT event listeners extend the java.util.EventListener interface.<br />What class is the top of the AWT event hierarchy? <br />Ans : The java.awt.AWTEvent class is the highest-level class in the AWT event class hierarchy.<br />What event results from the clicking of a button? <br />Ans : The ActionEvent event is generated as the result of the clicking of a button.<br />What is the relationship between an event-listener interface and an event-adapter class? <br />Ans : An event-listener interface defines the methods that must be implemented by an event <br />handler for a particular kind of event.<br />An event adapter provides a default implementation of an event-listener interface.<br />In which package are most of the AWT events that support the event-delegation model defined? <br />Ans : Most of the AWT–related events of the event-delegation model are defined in the <br />java.awt.event package. The AWTEvent class is defined in the java.awt package.<br />What is the advantage of the event-delegation model over the earlier event-inheritance model?<br />Ans : The event-delegation has two advantages over the event-inheritance model. They are : <br />It enables event handling by objects other than the ones that generate the events. This <br />allows a clean separation between a component’s design and its use.<br />It performs much better in applications where many events are generated. This <br />performance improvement is due to the fact that the event-delegation model does not <br />have to repeatedly process unhandled events, as is the case of the event-inheritance <br />model.<br />What is the purpose of the enableEvents( ) method? <br />Ans :The enableEvents( ) method is used to enable an event for a particular object.<br />Which of the following are true?<br />The event-inheritance model has replaced the event-delegation model. <br />The event-inheritance model is more efficient than the event-delegation model. <br />The event-delegation model uses event listeners to define the methods of event-handling classes. <br />The event-delegation model uses the handleEvent( ) method to support event handling.<br />Ans : c.<br />Which of the following is the highest class in the event-delegation model?<br />java.util.EventListener <br />java.util.EventObject <br />java.awt.AWTEvent <br />java.awt.event.AWTEvent<br />Ans : b.<br />When two or more objects are added as listeners for the same event, which listener is first invoked to handle the event?<br />The first object that was added as listener. <br />The last object that was added as listener. <br />There is no way to determine which listener will be invoked first. <br />It is impossible to have more than one listener for a given event.<br />Ans : c.<br />Which of the following components generate action events?<br />Buttons <br />Labels <br />Check boxes <br />Windows<br />Ans : a.<br />Which of the following are true?<br />A TextField object may generate an ActionEvent. <br />A TextArea object may generate an ActionEvent. <br />A Button object may generate an ActionEvent. <br />A MenuItem object may generate an ActionEvent.<br />Ans : a,c and d.<br />Which of the following are true?<br />The MouseListener interface defines methods for handling mouse clicks. <br />The MouseMotionListener interface defines methods for handling mouse clicks. <br />The MouseClickListener interface defines methods for handling mouse clicks. <br />The ActionListener interface defines methods for handling the clicking of a button.<br />Ans : a and d.<br />Suppose that you want to have an object eh handle the TextEvent of a TextArea object t. How should you add eh as the event handler for t?<br />t.addTextListener(eh); <br />eh.addTextListener(t); <br />addTextListener(eh.t); <br />addTextListener(t,eh);<br />Ans : a.<br />What is the preferred way to handle an object’s events in Java 2?<br />Override the object’s handleEvent( ) method. <br />Add one or more event listeners to handle the events. <br />Have the object override its processEvent( ) methods. <br />Have the object override its dispatchEvent( ) methods.<br />Ans : b.<br />Which of the following are true?<br />A component may handle its own events by adding itself as an event listener. <br />A component may handle its own events by overriding its event-dispatching method. <br />A component may not handle oits own events. <br />A component may handle its own events only if it implements the handleEvent( ) method.<br />Ans : a and b.<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />APPLETS<br />What is an Applet? Should applets have constructors? <br />Ans : Applet is a dynamic and interactive program that runs inside a Web page <br />displayed by a Java capable browser. We don’t have the concept of Constructors in Applets. <br />How do we read number information from my applet’s parameters, given that Applet’s getParameter() method returns a string? <br />Ans : Use the parseInt() method in the Integer Class, the Float(String) constructor in the <br />Class Float, or the Double(String) constructor in the class Double.<br />How can I arrange for different applets on a web page to communicate with each other? <br />Ans : Name your applets inside the Applet tag and invoke AppletContext’s getApplet() <br />method in your applet code to obtain references to the other applets on the page.<br />How do I select a URL from my Applet and send the browser to that page? <br />Ans : Ask the applet for its applet context and invoke showDocument() on that context object.<br />Eg. URL targetURL;<br />String URLString<br />AppletContext context = getAppletContext();<br />try{<br />targetUR L = new URL(URLString);<br />} catch (Malformed URLException e){<br />// Code for recover from the exception <br />}<br />context. showDocument (targetURL);<br />Can applets on different pages communicate with each other? <br />Ans : No. Not Directly. The applets will exchange the information at one meeting place <br />either on the local file system or at remote system.<br />How do Applets differ from Applications? <br />Ans : Appln: Stand Alone<br />Applet: Needs no explicit installation on local m/c.<br />Appln: Execution starts with main() method.<br />Applet: Execution starts with init() method.<br />Appln: May or may not be a GUI<br />Applet: Must run within a GUI (Using AWT)<br />How do I determine the width and height of my application? <br />Ans : Use the getSize() method, which the Applet class inherits from the Component <br />class in the Java.awt package. The getSize() method returns the size of the applet as <br />a Dimension object, from which you extract separate width, height fields.<br />Eg. Dimension dim = getSize ();<br />int appletwidth = dim.width ();<br />8) What is AppletStub Interface?<br />Ans : The applet stub interface provides the means by which an applet and the browser communicate. Your code will not typically implement this interface.<br />It is essential to have both the .java file and the .html file of an applet in the same <br />directory.<br />True. <br />False.<br />Ans : b.<br />The <PARAM> tag contains two attributes namely _________ and _______. <br />Ans : Name , value.<br /> <br />Passing values to parameters is done in the _________ file of an applet.<br />Ans : .html.<br />12) What tags are mandatory when creating HTML to display an applet <br />name, height, width <br />code, name <br />codebase, height, width <br />d) code, height, width <br />Ans : d.<br />Applet’s getParameter( ) method can be used to get parameter values.<br />True. <br />False.<br />Ans : a.<br />What are the Applet’s Life Cycle methods? Explain them? <br />Ans : init( ) method - Can be called when an applet is first loaded.<br />start( ) method - Can be called each time an applet is started.<br />paint( ) method - Can be called when the applet is minimized or refreshed.<br />stop( ) method - Can be called when the browser moves off the applet’s page.<br />destroy( ) method - Can be called when the browser is finished with the applet.<br />What are the Applet’s information methods? <br />Ans : getAppletInfo( ) method : Returns a string describing the applet, its author ,copy <br />right information, etc.<br />getParameterInfo( ) method : Returns an array of string describing the applet’s parameters. <br />All Applets are subclasses of Applet.<br />True. <br />False.<br />Ans : a.<br />All Applets must import java.applet and java.awt.<br />True. <br />False.<br />Ans : a.<br />What are the steps involved in Applet development? <br />Ans : a) Edit a Java source file,<br />b) Compile your program and<br />c) Execute the appletviewer, specifying the name of your applet’s source file.<br />Applets are executed by the console based Java run-time interpreter.<br />True. <br />False.<br />Ans : b.<br />Which classes and interfaces does Applet class consist? <br />Ans : Applet class consists of a single class, the Applet class and three interfaces: AppletContext, <br />AppletStub and AudioClip.<br />What is the sequence for calling the methods by AWT for applets?<br />Ans : When an applet begins, the AWT calls the following methods, in this sequence.<br />init( ) <br />start( ) <br />paint( ) <br />When an applet is terminated, the following sequence of method cals takes place :<br />stop( ) <br />destroy( )<br />Which method is used to output a string to an applet? <br />Ans : drawString ( ) method.<br />Every color is created from an RGB value.<br />True. <br />False<br />Ans : a.<br /><br /><br />AWT : WINDOWS, GRAPHICS AND FONTS<br />How would you set the color of a graphics context called g to cyan?<br />g.setColor(Color.cyan); <br />g.setCurrentColor(cyan); <br />g.setColor("Color.cyan"); <br />g.setColor("cyan’); <br />g.setColor(new Color(cyan));<br />Ans : a.<br />The code below draws a line. What color is the line?<br />g.setColor(Color.red.green.yellow.red.cyan);<br />g.drawLine(0, 0, 100,100);<br />Red <br />Green <br />Yellow <br />Cyan <br />Black<br />Ans : d.<br />What does the following code draw?<br />g.setColor(Color.black);<br />g.drawLine(10, 10, 10, 50);<br />g.setColor(Color.RED);<br />g.drawRect(100, 100, 150, 150);<br />A red vertical line that is 40 pixels long and a red square with sides of 150 pixels <br />A black vertical line that is 40 pixels long and a red square with sides of 150 pixels <br />A black vertical line that is 50 pixels long and a red square with sides of 150 pixels <br />A red vertical line that is 50 pixels long and a red square with sides of 150 pixels <br />A black vertical line that is 40 pixels long and a red square with sides of 100 pixel<br />Ans : b.<br />Which of the statements below are true?<br />A polyline is always filled.<br />b) A polyline can not be filled.<br />c) A polygon is always filled.<br />d) A polygon is always closed<br />e) A polygon may be filled or not filled<br />Ans : b, d and e.<br />What code would you use to construct a 24-point bold serif font?<br />new Font(Font.SERIF, 24,Font.BOLD); <br />new Font("SERIF", 24, BOLD"); <br />new Font("BOLD ", 24,Font.SERIF); <br />new Font("SERIF", Font.BOLD,24); <br />new Font(Font.SERIF, "BOLD", 24);<br />Ans : d.<br />What does the following paint( ) method draw?<br />Public void paint(Graphics g) {<br />g.drawString("question #6",10,0);<br />}<br />The string "question #6", with its top-left corner at 10,0 <br />A little squiggle coming down from the top of the component, a little way in from the left edge<br />Ans : b.<br /> <br /> <br />What does the following paint( ) method draw?<br />Public void paint(Graphics g) {<br />g.drawString("question #6",10,0);<br />}<br />A circle at (100, 100) with radius of 44 <br />A circle at (100, 44) with radius of 100 <br />A circle at (100, 44) with radius of 44 <br />The code does not compile<br />Ans : d.<br />8)What is relationship between the Canvas class and the Graphics class?<br />Ans : A Canvas object provides access to a Graphics object via its paint( ) method.<br />What are the Component subclasses that support painting. <br />Ans : The Canvas, Frame, Panel and Applet classes support painting.<br />What is the difference between the paint( ) and repaint( ) method? <br />Ans : The paint( ) method supports painting via a Graphics object. The repaint( ) method is used <br />to cause paint( ) to be invoked by the AWT painting method. <br />What is the difference between the Font and FontMetrics classes? <br />Ans : The FontMetrics class is used to define implementation-specific properties, such as ascent <br />and descent, of a Font object.<br />Which of the following are passed as an argument to the paint( ) method?<br />A Canvas object <br />A Graphics object <br />An Image object <br />A paint object<br />Ans : b.<br />Which of the following methods are invoked by the AWT to support paint and repaint operations?<br />paint( ) <br />repaint( ) <br />draw( ) <br />redraw( )<br />Ans : a.<br />Which of the following classes have a paint( ) method?<br />Canvas <br />Image <br />Frame <br />Graphics <br />Ans : a and c.<br />Which of the following are methods of the Graphics class?<br />drawRect( ) <br />drawImage( ) <br />drawPoint( ) <br />drawString( )<br />Ans : a, b and d.<br />Which Font attributes are available through the FontMetrics class?<br />ascent <br />leading <br />case <br />height<br />Ans : a, b and d.<br />Which of the following are true?<br />The AWT automatically causes a window to be repainted when a portion of a window has been minimized and then maximized. <br />The AWT automatically causes a window to be repainted when a portion of a window has been covered and then uncovered. <br />The AWT automatically causes a window to be repainted when application data is changed. <br />The AWT does not support repainting operations. <br />Ans : a and b.<br />Which method is used to size a graphics object to fit the current size of the window? <br />Ans : getSize( ) method.<br />What are the methods to be used to set foreground and background colors?<br />Ans : setForeground( ) and setBackground( ) methods.<br />19) You have created a simple Frame and overridden the paint method as follows <br />public void paint(Graphics g){<br /><br /> g.drawString("Dolly",50,10);<br /><br />}<br />What will be the result when you attempt to compile and run the program? <br />The string "Dolly" will be displayed at the centre of the frame<br />b) An error at compilation complaining at the signature of the paint method <br />c) The lower part of the word Dolly will be seen at the top of the form, with the top hidden. <br />d) The string "Dolly" will be shown at the bottom of the form <br />Ans : c.<br />20) Where g is a graphics instance what will the following code draw on the screen. <br />g.fillArc(45,90,50,50,90,180);<br />a) An arc bounded by a box of height 45, width 90 with a centre point of 50,50, starting <br />at an angle of 90 degrees traversing through 180 degrees counter clockwise.<br />b) An arc bounded by a box of height 50, width 50, with a centre point of 45,90 starting <br />at an angle of 90 degrees traversing through 180 degrees clockwise.<br />c) An arc bounded by a box of height 50, width 50, with a top left at coordinates of 45, <br />90, starting at 90 degrees and traversing through 180 degrees counter clockwise.<br />d) An arc starting at 45 degrees, traversing through 90 degrees clockwise bounded by a <br />box of height 50, width 50 with a centre point of 90, 180.<br />Ans : c.<br />21) Given the following code <br />import java.awt.*;<br />public class SetF extends Frame{<br />public static void main(String argv[]){<br />SetF s = new SetF();<br />s.setSize(300,200);<br />s.setVisible(true);<br />}<br />} <br />How could you set the frame surface color to pink<br />a)s.setBackground(Color.pink);<br />b)s.setColor(PINK);<br />c)s.Background(pink);<br />d)s.color=Color.pink<br />Ans : a.<br /> <br /> <br /> <br /> <br />AWT: CONTROLS, LAYOUT MANAGERS AND MENUS<br />What is meant by Controls and what are different types of controls?<br />Ans : Controls are componenets that allow a user to interact with your application.<br />The AWT supports the following types of controls:<br />Labels <br />Push buttons <br />Check boxes <br />Choice lists <br />Lists <br />Scroll bars <br />Text components<br />These controls are subclasses of Component.<br />You want to construct a text area that is 80 character-widths wide and 10 character-heights tall. What code do you use?<br />new TextArea(80, 10) <br />new TextArea(10, 80)<br />Ans: b.<br />A text field has a variable-width font. It is constructed by calling new <br />TextField("iiiii"). What happens if you change the contents of the text field to <br />"wwwww"? (Bear in mind that is one of the narrowest characters, and w is one of the widest.)<br />The text field becomes wider. <br />The text field becomes narrower. <br />The text field stays the same width; to see the entire contents you will have to scroll by using the ß and à keys. <br />The text field stays the same width; to see the entire contents you will have to scroll by using the text field’s horizontal scroll bar.<br />Ans : c. <br />The CheckboxGroup class is a subclass of the Component class.<br />True <br />False<br />Ans : b.<br />5) What are the immediate super classes of the following classes?<br />a) Container class <br />b) MenuComponent class <br />c) Dialog class <br />d) Applet class <br />e) Menu class<br />Ans : a) Container - Component <br />b) MenuComponent - Object <br />c) Dialog - Window <br />d) Applet - Panel<br />e) Menu - MenuItem<br />6) What are the SubClass of Textcomponent Class?<br />Ans : TextField and TextArea<br />7) Which method of the component class is used to set the position and the size of a component?<br />Ans : setBounds()<br />8) Which TextComponent method is used to set a TextComponent to the read-only state?<br />Ans : setEditable()<br />9) How can the Checkbox class be used to create a radio button?<br />Ans : By associating Checkbox objects with a CheckboxGroup.<br />10) What Checkbox method allows you to tell if a Checkbox is checked?<br />Ans : getState()<br />11) Which Component method is used to access a component's immediate Container?<br />getVisible() <br />getImmediate <br />getParent() <br />getContainer<br />Ans : c.<br />12) What methods are used to get and set the text label displayed by a Button object?<br />Ans : getLabel( ) and setLabel( )<br />13) What is the difference between a Choice and a List?<br />Ans : A Choice is displayed in a compact form that requires you to pull it down to see the list of available choices. Only one item may be selected from a Choice.<br />A List may be displayed in such a way that several List items are visible. A List supports the selection of one or more List items.<br />14) Which Container method is used to cause a container to be laid out and redisplayed?<br />Ans : validate( )<br />15) What is the difference between a Scollbar and a Scrollpane?<br />Ans : A Scrollbar is a Component, but not a Container.<br />A Scrollpane is a Container and handles its own events and performs its own <br />scrolling.<br />16) Which Component subclass is used for drawing and painting?<br />Ans : Canvas.<br />17) Which of the following are direct or indirect subclasses of Component?<br />Button <br />Label <br />CheckboxMenuItem <br />Toolbar <br />Frame<br />Ans : a, b and e.<br />18) Which of the following are direct or indirect subclasses of Container?<br />Frame <br />TextArea <br />MenuBar <br />FileDialog <br />Applet<br />Ans : a,d and e.<br />19) Which method is used to set the text of a Label object?<br />setText( ) <br />setLabel( ) <br />setTextLabel( ) <br />setLabelText( )<br />Ans : a.<br />20) Which constructor creates a TextArea with 10 rows and 20 columns?<br />new TextArea(10, 20) <br />new TextArea(20, 10) <br />new TextArea(new Rows(10), new columns(20)) <br />new TextArea(200)<br />Ans : a.<br />(Usage is TextArea(rows, columns)<br />21) Which of the following creates a List with 5 visible items and multiple selection enabled?<br />new List(5, true) <br />new List(true, 5) <br />new List(5, false) <br />new List(false,5)<br />Ans : a.<br />[Usage is List(rows, multipleMode)]<br />22) Which are true about the Container class?<br />The validate( ) method is used to cause a Container to be laid out and redisplayed. <br />The add( ) method is used to add a Component to a Container. <br />The getBorder( ) method returns information about a Container’s insets. <br />The getComponent( ) method is used to access a Component that is contained in a Container.<br />Ans : a, b and d.<br />23) Suppose a Panel is added to a Frame and a Button is added to the Panel. If the Frame’s font is set to 12-point TimesRoman, the Panel’s font is set to 10-point TimesRoman, and the Button’s font is not set, what font will be used to dispaly the Button’s label?<br />12-point TimesRoman <br />11-point TimesRoman <br />10-point TimesRoman <br />9-point TimesRoman<br />Ans : c.<br />A Frame’s background color is set to Color.Yellow, and a Button’s background color is to Color.Blue. Suppose the Button is added to a Panel, which is added to the Frame. What background color will be used with the Panel?<br />Colr.Yellow <br />Color.Blue <br />Color.Green <br />Color.White <br />Ans : a.<br />25) Which method will cause a Frame to be displayed?<br />show( ) <br />setVisible( ) <br />display( ) <br />displayFrame( )<br />Ans : a and b.<br />26) All the componenet classes and container classes are derived from _________ class.<br />Ans : Object.<br />27) Which method of the container class can be used to add components to a Panel.<br />Ans : add ( ) method.<br />28) What are the subclasses of the Container class?<br />Ans : The Container class has three major subclasses. They are :<br />Window <br />Panel <br />ScrollPane <br />29) The Choice component allows multiple selection.<br />True. <br />False. <br />Ans : b.<br />30) The List component does not generate any events.<br />True. <br />False. <br />Ans : b.<br />31) Which components are used to get text input from the user.<br />Ans : TextField and TextArea.<br />32) Which object is needed to group Checkboxes to make them exclusive?<br />Ans : CheckboxGroup.<br />33) Which of the following components allow multiple selections?<br />Non-exclusive Checkboxes. <br />Radio buttons. <br />Choice. <br />List. <br />Ans : a and d.<br />34) What are the types of Checkboxes and what is the difference between them?<br />Ans : Java supports two types of Checkboxes. They are : Exclusive and Non-exclusive.<br />In case of exclusive Checkboxes, only one among a group of items can be selected at a time. I f an item from the group is selected, the checkbox currently checked is deselected and the new selection is highlighted. The exclusive Checkboxes are also called as Radio buttons.<br />The non-exclusive checkboxes are not grouped together and each one can be selected independent of the other. <br />35) What is a Layout Manager and what are the different Layout Managers available in java.awt and what is the default Layout manager for the panal and the panal subclasses?<br />Ans: A layout Manager is an object that is used to organize components in a container.<br />The different layouts available in java.awt are : <br />FlowLayout, BorderLayout, CardLayout, GridLayout and GridBag Layout.<br />The default Layout Manager of Panal and Panal sub classes is FlowLayout".<br />36) Can I exert control over the size and placement of components in my interface?<br />Ans : Yes. <br />myPanal.setLayout(null);<br />myPanal.setbounds(20,20,200,200);<br />37) Can I add the same component to more than one container?<br />Ans : No. Adding a component to a container automatically removes it from any previous parent(container).<br />38) How do I specify where a window is to be placed?<br />Ans : Use setBounds, setSize, or setLocation methods to implement this.<br />setBounds(int x, int y, int width, int height)<br />setBounds(Rectangle r)<br />setSize(int width, int height)<br />setSize(Dimension d)<br />setLocation(int x, int y)<br />setLocation(Point p)<br /> <br />39) How can we create a borderless window?<br />Ans : Create an instance of the Window class, give it a size, and show it on the screen.<br />eg. Frame aFrame = ......<br />Window aWindow = new Window(aFrame);<br />aWindow.setLayout(new FlowLayout());<br />aWindow.add(new Button("Press Me"));<br />aWindow.getBounds(50,50,200,200);<br />aWindow.show();<br /> <br />40) Can I create a non-resizable windows? If so, how?<br />Ans: Yes. By using setResizable() method in class Frame.<br />41) What is the default Layout Manager for the Window and Window subclasses (Frame,Dialog)? <br />Ans : BorderLayout().<br />42) How are the elements of different layouts organized?<br />Ans : FlowLayout : The elements of a FlowLayout are organized in a top to bottom, left to right fashion.<br />BorderLayout : The elements of a BorderLayout are organized at the <br />borders (North, South, East and West) and the center of a <br />container.<br />CardLayout : The elements of a CardLayout are stacked, one on top of the other, like a deck of cards.<br />GridLayout : The elements of a GridLayout are of equal size and are laid out using the square of a grid. <br />GridBagLayout : The elements of a GridBagLayout are organized according to a grid.However, the elements are of different sizes and may occupy <br />more than one row or column of the grid. In addition, the rows and columns may have different sizes. <br />43) Which containers use a BorderLayout as their default layout?<br />Ans : The Window, Frame and Dialog classes use a BorderLayout as their default layout.<br /> <br />44) Which containers use a FlowLayout as their default layout?<br />Ans : The Panel and the Applet classes use the FlowLayout as their default layout.<br />45) What is the preferred size of a component?<br />Ans : The preferred size of a component size that will allow the component to display normally.<br />46) Which method is method to set the layout of a container?<br />startLayout( ) <br />initLayout( ) <br />layoutContainer( ) <br />setLayout( ) <br />Ans : d.<br />47) Which method returns the preferred size of a component?<br />getPreferredSize( ) <br />getPreferred( ) <br />getRequiredSize( ) <br />getLayout( ) <br />Ans : a.<br /> <br /> <br /> <br /> <br /> <br />48) Which layout should you use to organize the components of a container in a <br />tabular form?<br />CardLayout <br />BorederLayout <br />FlowLayout <br />GridLayout <br />Ans : d.<br />An application has a frame that uses a Border layout manager. Why is it probably not a good idea to put a vertical scroll bar at North in the frame? <br />The scroll bar’s height would be its preferred height, which is not likely to be enough. <br />The scroll bar’s width would be the entire width of the frame, which would be much wider than necessary. <br />Both a and b. <br />Neither a nor b. There is no problem with the layout as described.<br />Ans : c.<br />What is the default layouts for a applet, a frame and a panel? <br />Ans : For an applet and a panel, Flow layout is the default layout, whereas Border layout is default layout for a frame.<br />If a frame uses a Grid layout manager and does not contain any panels, then all the components within the frame are the same width and height.<br />True <br />False.<br />Ans : a.<br />If a frame uses its default layout manager and does not contain any panels, then all the components within the frame are the same width and height.<br />True <br />False.<br />Ans : b.<br />With a Border layout manager, the component at Center gets all the space that is left over, after the components at North and South have been considered.<br />True <br />False<br />Ans : b.<br />An Applet has its Layout Manager set to the default of FlowLayout. What code would be the correct to change to another Layout Manager? <br />setLayoutManager(new GridLayout()); <br />setLayout(new GridLayout(2,2)); <br />c) setGridLayout(2,2,)) <br />d setBorderLayout(); <br />Ans : b.<br />55) How do you indicate where a component will be positioned using Flowlayout?<br />a) North, South,East,West<br />b) Assign a row/column grid reference<br />c) Pass a X/Y percentage parameter to the add method<br />d) Do nothing, the FlowLayout will position the component<br />Ans :d.<br /> <br /> <br /> <br />56) How do you change the current layout manager for a container?<br />a) Use the setLayout method<br />b) Once created you cannot change the current layout manager of a component<br />c) Use the setLayoutManager method<br />d) Use the updateLayout method<br />Ans :a.<br />57)When using the GridBagLayout manager, each new component requires a new instance of the GridBagConstraints class. Is this statement true or false?<br />a) true<br />b) false<br />Ans : b.<br />58) Which of the following statements are true? <br />a)The default layout manager for an Applet is FlowLayout <br />b) The default layout manager for an application is FlowLayout <br />c) A layout manager must be assigned to an Applet before the setSize method is called <br />d) The FlowLayout manager attempts to honor the preferred size of any components<br />Ans : a and d.<br />59) Which method does display the messages whenever there is an item selection or deselection of the CheckboxMenuItem menu?<br />Ans : itemStateChanged method.<br />60) Which is a dual state menu item?<br />Ans : CheckboxMenuItem.<br />61) Which method can be used to enable/diable a checkbox menu item?<br />Ans : setState(boolean).<br />Which of the following may a menu contain?<br />A separator <br />A check box <br />A menu <br />A button <br />A panel<br />Ans : a and c.<br />Which of the following may contain a menu bar?<br />A panel <br />A frame <br />An applet <br />A menu bar <br />A menu<br />Ans : b<br />64) What is the difference between a MenuItem and a CheckboxMenuItem?<br />Ans : The CheckboxMenuItem class extends the MenuItem class to support a menu item <br />that may be checked or unchecked.<br /><br />65) Which of the following are true?<br />A Dialog can have a MenuBar. <br />MenuItem extends Menu. <br />A MenuItem can be added to a Menu. <br />A Menu can be added to a Menu.<br />Ans : c and d.<br /> <br /> <br /> Which colour is used to indicate instance methods in the standard "javadoc" format documentation: <br />1) blue<br />2) red<br />3) purple<br />4) orange<br />Answer : 2<br />explain<br />In JDK 1.1 the variabels, methods and constructors are colour coded to simplifytheir identification.<br />endExplain<br />What is the correct ordering for the import, class and package declarations when found in a single file? <br />1) package, import, class<br />2) class, import, package<br />3) import, package, class<br />4) package, class, import<br />Answer : 1<br />explain<br />This is my explanation for question 2<br />endExplain<br />Which methods can be legally applied to a string object? <br />(Multiple)<br />1) equals(String)<br />2) equals(Object)<br />3) trim()<br />4) round()<br />5) toString()<br />Answer : 1,2,3,5<br />What is the parameter specification for the public static void main method? <br />(multiple)<br />1) String args []<br />2) String [] args<br />3) Strings args []<br />4) String args<br />Answer : 1,2<br />What does the zeroth element of the string array passed to the public static void main method contain? <br />(multiple)<br />1) The name of the program<br />2) The number of arguments<br />3) The first argument if one is present<br />Answer : 3<br />Which of the following are Java keywords? <br />(multiple)<br />1) goto<br />2) malloc<br />3) extends<br />4) FALSE<br />Answer : 3<br />What will be the result of compiling the following code: <br />public class Test {<br />public static void main (String args []) {<br />int age;<br />age = age + 1;<br />System.out.println("The age is " + age);<br />}<br />}<br />1) Compiles and runs with no output<br />2) Compiles and runs printing out The age is 1<br />3) Compiles but generates a runtime error<br />4) Does not compile<br />5) Compiles but generates a compile time error<br />Answer : 4<br />Which of these is the correct format to use to create the literal char value a? <br />(multiple)<br />1) 'a'<br />2) "a"<br />3) new Character(a)<br />4) \000a<br />Answer : 1<br />What is the legal range of a byte integral type? <br />1) 0 - 65, 535<br />2) (-128) - 127<br />3) (-32,768) - 32,767<br />4) (-256) - 255<br />Answer : 2<br />Which of the following is illegal: <br />1) int i = 32;<br />2) float f = 45.0;<br />3) double d = 45.0;<br />Answer 2<br />What will be the result of compiling the following code: <br />public class Test {<br />static int age;<br />public static void main (String args []) {<br />age = age + 1;<br />System.out.println("The age is " + age);<br />}<br />}<br />1) Compiles and runs with no output<br />2) Compiles and runs printing out The age is 1<br />3) Compiles but generates a runtime error<br />4) Does not compile<br />5) Compiles but generates a compile time error<br />Answer : 2<br />Which of the following are correct? <br />(multiple)<br />1) 128 >> 1 gives 64<br />2) 128 >>> 1 gives 64<br />3) 128 >> 1 gives -64<br />4) 128 >>> 1 gives -64<br />Answer : 1<br />Which of the following return true? <br />(multiple)<br />1) "john" == new String("john")<br />2) "john".equals("john")<br />3) "john" = "john"<br />4) "john".equals(new Button("john"))<br />Answer : 2<br />Which of the following do not lead to a runtime error? <br />(multiple)<br />1) "john" + " was " + " here"<br />2) "john" + 3<br />3) 3 + 5<br />4) 5 + 5.5<br />answer 1,2,3,4<br />Which of the following are so called "short circuit" logical operators? <br />(multiple)<br />1) &<br />2) ||<br />3) &&<br />4) |<br />Answer : 2,3<br />Which of the following are acceptable? <br />(multiple)<br />1) Object o = new Button("A");<br />2) Boolean flag = true;<br />3) Panel p = new Frame();<br />4) Frame f = new Panel();<br />5) Panel p = new Applet();<br />Answer : 1,5<br />What is the result of compiling and running the following code: <br />public class Test {<br />static int total = 10;<br />public static void main (String args []) {<br />new Test();<br />}<br />public Test () {<br />System.out.println("In test");<br />System.out.println(this);<br />int temp = this.total;<br />if (temp > 5) {<br />System.out.println(temp);<br />}<br />}<br />}<br />(multiple)<br />1) The class will not compile<br />2) The compiler reports and error at line 2<br />3) The compiler reports an error at line 9<br />4) The value 10 is one of the elements printed to the standard output<br />5) The class compiles but generates a runtime error<br />Answer : 4<br />Which of the following is correct: <br />1) String temp [] = new String {"j" "a" "z"};<br />2) String temp [] = { "j " " b" "c"};<br />3) String temp = {"a", "b", "c"};<br />4) String temp [] = {"a", "b", "c"};<br />Answer 4<br />What is the correct declaration of an abstract method that is intended to be public: <br />1) public abstract void add();<br />2) public abstract void add() {}<br />3) public abstract add();<br />4) public virtual add();<br />Answer : 1<br />Under what situations do you obtain a default constructor? <br />1) When you define any class<br />2) When the class has no other constructors<br />3) When you define at least one constructor<br />Answer : 2<br />Which of the following can be used to define a constructor for this class, given the following code: <br />public class Test {<br />...<br />}<br />1) public void Test() {...}<br />2) public Test() {...}<br />3) public static Test() {...}<br />4) public static void Test() {...}<br />Answer : 2<br />Which of the following are acceptable to the Java compiler: <br />(multiple)<br />1) if (2 == 3) System.out.println("Hi");<br />2) if (2 = 3) System.out.println("Hi");<br />3) if (true) System.out.println("Hi");<br />4) if (2 != 3) System.out.println("Hi");<br />5) if (aString.equals("hello")) System.out.println("Hi");<br />Answer : 1,3,4,5<br />Assuming a method contains code which may raise an Exception (but not a RuntimeException), what is the correct way for a method to indicate that it expects the caller to handle that exception: <br />1) throw Exception<br />2) throws Exception<br />3) new Exception<br />4) Don't need to specify anything<br />Answer : 2<br />What is the result of executing the following code, using the parameters 4 and 0: <br />public void divide(int a, int b) {<br />try {<br />int c = a / b;<br />} catch (Exception e) {<br />System.out.print("Exception ");<br />} finally {<br />System.out.println("Finally");<br />}<br />1) Prints out: Exception Finally<br />2) Prints out: Finally<br />3) Prints out: Exception<br />4) No output<br />Answer : 1<br />Which of the following is a legal return type of a method overloading the following method: <br />public void add(int a) {...}<br />1) void<br />2) int<br />3) Can be anything<br />Answer : 3<br />Which of the following statements is correct for a method which is overriding the following method: <br />public void add(int a) {...}<br />1) the overriding method must return void<br />2) the overriding method must return int<br />3) the overriding method can return whatever it likes<br />Answer : 1<br />Given the following classes defined in separate files, what will be the effect of compiling and running this class Test? <br />class Vehicle {<br />public void drive() {<br />System.out.println("Vehicle: drive");<br />}<br />}<br />class Car extends Vehicle {<br />public void drive() {<br />System.out.println("Car: drive");<br />}<br />}<br />public class Test {<br />public static void main (String args []) {<br />Vehicle v;<br />Car c;<br />v = new Vehicle();<br />c = new Car();<br />v.drive();<br />c.drive();<br />v = c;<br />v.drive();<br />}<br />}<br />1) Generates a Compiler error on the statement v= c;<br />2) Generates runtime error on the statement v= c;<br />3) Prints out:<br />Vehicle: drive<br />Car: drive<br />Car: drive<br />4) Prints out: <br />Vehicle: drive<br />Car: drive<br />Vehicle: drive<br />Answer : 3<br />Where in a constructor, can you place a call to a constructor defined in the super class? <br />1) Anywhere<br />2) The first statement in the constructor<br />3) The last statement in the constructor<br />4) You can't call super in a constructor<br />Answer : 2<br />Which variables can an inner class access from the class which encapsulates it? <br />(multiple)<br />1) All static variables<br />2) All final variables<br />3) All instance variables<br />4) Only final instance variables<br />5) Only final static variables<br />Answer : 1,2,3<br />What class must an inner class extend: <br />1) The top level class<br />2) The Object class<br />3) Any class or interface<br />4) It must extend an interface<br />Answer 3<br />In the following code, which is the earliest statement, where the object originally held in e, may be garbage collected: <br />1. public class Test {<br />2. public static void main (String args []) {<br />3. Employee e = new Employee("Bob", 48);<br />4. e.calculatePay();<br />5. System.out.println(e.printDetails());<br />6. e = null;<br />7. e = new Employee("Denise", 36);<br />8. e.calculatePay();<br />9. System.out.println(e.printDetails());<br />10. }<br />11. }<br />1) Line 10<br />2) Line 11<br />3) Line 7<br />4) Line 8<br />5) Never<br />Answer : 3<br />What is the name of the interface that can be used to define a class that can execute within its own thread? <br />1) Runnable<br />2) Run<br />3) Threadable<br />4) Thread<br />5) Executable<br />Answer : 1<br />What is the name of the method used to schedule a thread for execution? <br />1) init();<br />2) start();<br />3) run();<br />4) resume();<br />5) sleep();<br />Answer : 2<br />Which methods may cause a thread to stop executing? <br />(multiple)<br />1) sleep();<br />2) stop();<br />3) yield();<br />4) wait();<br />5) notify();<br />6) notifyAll()<br />7) synchronized()<br />Answer : 1,2,3,4<br />Which of the following would create a text field able to display 10 characters (assuming a fixed size font) displaying the initial string "hello": <br />1) new TextField("hello", 10);<br />2) new TextField("hello");<br />3) new textField(10);<br />4) new TextField();<br />Answer : 1<br />Which of the following methods are defined on the Graphics class: <br />(multiple)<br />1) drawLine(int, int, int, int)<br />2) drawImage(Image, int, int, ImageObserver)<br />3) drawString(String, int, int)<br />4) add(Component);<br />5) setVisible(boolean);<br />6) setLayout(Object);<br />Answer : 1,2,3<br />Which of the following layout managers honours the preferred size of a component: <br />(multiple)<br />1) CardLayout<br />2) FlowLayout<br />3) BorderLayout<br />4) GridLayout<br />Answer : 2<br />Given the following code what is the effect of a being 5: <br />public class Test {<br />public void add(int a) {<br />loop: for (int i = 1; i < 3; i++){<br />for (int j = 1; j < 3; j++) {<br />if (a == 5) {<br />break loop;<br />}<br />System.out.println(i * j);<br />}<br />}<br />}<br />}<br />1) Generate a runtime error<br />2) Throw an ArrayIndexOutOfBoundsException<br />3) Print the values: 1, 2, 2, 4<br />4) Produces no output<br />Answer : 4<br />What is the effect of issuing a wait() method on an object <br />1) If a notify() method has already been sent to that object then it has no effect<br />2) The object issuing the call to wait() will halt until another object sends a notify() or notifyAll() method<br />3) An exception will be raised<br />4) The object issuing the call to wait() will be automatically synchronized with any other objects using the receiving object.<br />Answer : 2<br />The layout of a container can be altered using which of the following methods: <br />(multiple)<br />1) setLayout(aLayoutManager);<br />2) addLayout(aLayoutManager);<br />3) layout(aLayoutManager);<br />4) setLayoutManager(aLayoutManager);<br />Answer : 1<br />Using a FlowLayout manager, which is the correct way to add elements to a container: <br />1) add(component);<br />2) add("Center", component);<br />3) add(x, y, component);<br />4) set(component);<br />Answer : 1<br />Given that a Button can generate an ActionEvent which listener would you expect to have to implement, in a class which would handle this event? <br />1) FocusListener<br />2) ComponentListener<br />3) WindowListener<br />4) ActionListener<br />5) ItemListener<br />Answer : 4<br />Which of the following, are valid return types, for listener methods: <br />1) boolean<br />2) the type of event handled<br />3) void<br />4) Component<br />Answer : 3<br />Assuming we have a class which implements the ActionListener interface, which method should be used to register this with a Button? <br />1) addListener(*);<br />2) addActionListener(*);<br />3) addButtonListener(*);<br />4) setListener(*);<br />Answer : 2<br />In order to cause the paint(Graphics) method to execute, which of the following is the most appropriate method to call: <br />1) paint()<br />2) repaint()<br />3) paint(Graphics)<br />4) update(Graphics)<br />5) None - you should never cause paint(Graphics) to execute<br />Answer : 2<br />Which of the following illustrates the correct way to pass a parameter into an applet: <br />1) <applet code=Test.class age=33 width=100 height=100><br />2) <param name=age value=33><br />3) <applet code=Test.class name=age value=33 width=100 height=100><br />4) <applet Test 33><br />Answer : 2<br />Which of the following correctly illustrate how an InputStreamReader can be created: <br />(multiple)<br />1) new InputStreamReader(new FileInputStream("data"));<br />2) new InputStreamReader(new FileReader("data"));<br />3) new InputStreamReader(new BufferedReader("data"));<br />4) new InputStreamReader("data");<br />5) new InputStreamReader(System.in);<br />Answer : 1,5<br />What is the permanent effect on the file system of writing data to a new FileWriter("report"), given the file report already exists? <br />1) The data is appended to the file<br />2) The file is replaced with a new file<br />3) An exception is raised as the file already exists<br />4) The data is written to random locations within the file<br />Answer : 2<br />What is the effect of adding the sixth element to a vector created in the following manner: <br />new Vector(5, 10);<br />1) An IndexOutOfBounds exception is raised.<br />2) The vector grows in size to a capacity of 10 elements<br />3) The vector grows in size to a capacity of 15 elements<br />4) Nothing, the vector will have grown when the fifth element was added<br />Answer : 3<br />What is the result of executing the following code when the value of x is 2: <br />switch (x) {<br />case 1:<br />System.out.println(1);<br />case 2:<br />case 3:<br />System.out.println(3);<br />case 4:<br />System.out.println(4);<br />}<br />1) Nothing is printed out<br />2) The value 3 is printed out<br />3) The values 3 and 4 are printed out<br />4) The values 1, 3 and 4 are printed out<br />Answer : 3<br />What is the result of compiling and running the Second class? <br />Consider the following example:<br />class First {<br />public First (String s) {<br />System.out.println(s);<br />}<br />}<br />public class Second extends First {<br />public static void main(String args []) {<br />new Second();<br />}<br />}<br />1) Nothing happens<br />2) A string is printed to the standard out<br />3) An instance of the class First is generated<br />4) An instance of the class Second is created<br />5) An exception is raised at runtime stating that there is no null parameter constructor in class First.<br />6) The class second will not compile as there is no null parameter constructor in the class First<br />Answer : 6<br />What is the result of executing the following fragment of code: <br />boolean flag = false;<br />if (flag = true) {<br />System.out.println("true");<br />} else {<br />System.out.println("false");<br />}<br />1) true is printed to standard out<br />2) false is printed to standard out<br />3) An exception is raised<br />4) Nothing happens<br />Answer : 1<br />Consider the following classes. What is the result of compiling and running this class? <br />public class Test {<br />public static void test() {<br />this.print();<br />}<br />public static void print() {<br />System.out.println("Test");<br />}<br />public static void main(String args []) {<br />test();<br />}<br />}<br />(multiple)<br />1) The string Test is printed to the standard out.<br />2) A runtime exception is raised stating that an object has not been created.<br />3) Nothing is printed to the standard output.<br />4) An exception is raised stating that the method test cannot be found.<br />5) An exception is raised stating that the variable this can only be used within an instance.<br />6) The class fails to compile stating that the variable this is undefined.<br />Answer : 6<br />Examine the following class definition: <br />public class Test {<br />public static void test() {<br />print();<br />}<br />public static void print() {<br />System.out.println("Test");<br />}<br />public void print() {<br />System.out.println("Another Test");<br />}<br />}<br />What is the result of compiling this class:<br />1) A successful compilation.<br />2) A warning stating that the class has no main method.<br />3) An error stating that there is a duplicated method.<br />4) An error stating that the method test() will call one or other of the print() methods.<br />Answer : 3<br />What is the result of compiling and executing the following Java class: <br />public class ThreadTest extends Thread {<br />public void run() {<br />System.out.println("In run");<br />suspend();<br />resume();<br />System.out.println("Leaving run");<br />}<br />public static void main(String args []) {<br />(new ThreadTest()).start();<br />}<br />}<br />1) Compilation will fail in the method main.<br />2) Compilation will fail in the method run.<br />3) A warning will be generated for method run.<br />4) The string "In run" will be printed to standard out.<br />5) Both strings will be printed to standard out.<br />6) Nothing will happen.<br />Answer : 4<br />Given the following sequence of Java statements, Which of the following options are true: <br />1. StringBuffer sb = new StringBuffer("abc");<br />2. String s = new String("abc");<br />3. sb.append("def");<br />4. s.append("def");<br />5. sb.insert(1, "zzz");<br />6. s.concat(sb);<br />7. s.trim();<br />(multiple)<br />1) The compiler would generate an error for line 1.<br />2) The compiler would generate an error for line 2.<br />3) The compiler would generate an error for line 3.<br />4) The compiler would generate an error for line 4.<br />5) The compiler would generate an error for line 5.<br />6) The compiler would generate an error for line 6.<br />7) The compiler would generate an error for line 7.<br />Answer : 4,6<br />What is the result of executing the following Java class: <br />import java.awt.*;<br />public class FrameTest extends Frame {<br />public FrameTest() {<br />add (new Button("First"));<br />add (new Button("Second"));<br />add (new Button("Third"));<br />pack();<br />setVisible(true);<br />}<br />public static void main(String args []) {<br />new FrameTest();<br />}<br />}<br />1) Nothing happens.<br />2) Three buttons are displayed across a window.<br />3) A runtime exception is generated (no layout manager specified).<br />4) Only the "first" button is displayed.<br />5) Only the "second" button is displayed.<br />6) Only the "third" button is displayed.<br />Answer : 6<br />Consider the following tags and attributes of tags, which can be used with the <AAPLET> and </APPLET> tags? <br />1. CODEBASE<br />2. ALT<br />3. NAME<br />4. CLASS<br />5. JAVAC<br />6. HORIZONTALSPACE<br />7. VERTICALSPACE<br />8. WIDTH<br />9. PARAM<br />10. JAR<br />(multiple)<br />1) line 1, 2, 3<br />2) line 2, 5, 6, 7<br />3) line 3, 4, 5<br />4) line 8, 9, 10<br />5) line 8, 9<br />Answer : 1,5<br />Which of the following is a legal way to construct a RandomAccessFile: <br />1) RandomAccessFile("data", "r");<br />2) RandomAccessFile("r", "data");<br />3) RandomAccessFile("data", "read");<br />4) RandomAccessFile("read", "data");<br />Answer : 1<br />Carefully examine the following code, When will the string "Hi there" be printed? <br />public class StaticTest {<br />static {<br />System.out.println("Hi there");<br />}<br />public void print() {<br />System.out.println("Hello");<br />}<br />public static void main(String args []) {<br />StaticTest st1 = new StaticTest();<br />st1.print();<br />StaticTest st2 = new StaticTest();<br />st2.print();<br />}<br />}<br />1) Never.<br />2) Each time a new instance is created.<br />3) Once when the class is first loaded into the Java virtual machine.<br />4) Only when the static method is called explicitly.<br />Answer : 3<br />What is the result of the following program: <br />public class Test {<br />public static void main (String args []) {<br />boolean a = false;<br />if (a = true)<br />System.out.println("Hello");<br />else<br />System.out.println("Goodbye");<br />}<br />}<br />1) Program produces no output but terminates correctly.<br />2) Program does not terminate.<br />3) Prints out "Hello"<br />4) Prints out "Goodbye"<br />Answer : 3<br />Examine the following code, it includes an inner class, what is the result: <br />public final class Test4 {<br />class Inner {<br />void test() {<br />if (Test4.this.flag); {<br />sample();<br />}<br />} <br />}<br />private boolean flag = true;<br />public void sample() {<br />System.out.println("Sample");<br />}<br />public Test4() {<br />(new Inner()).test();<br />}<br />public static void main(String args []) {<br />new Test4();<br />} <br />}<br />1) Prints out "Sample"<br />2) Program produces no output but terminates correctly.<br />3) Program does not terminate.<br />4) The program will not compile<br />Answer : 1<br />Carefully examine the following class: <br />public class Test5 {<br />public static void main (String args []) {<br />/* This is the start of a comment<br />if (true) {<br />Test5 = new test5();<br />System.out.println("Done the test");<br />}<br />/* This is another comment */<br />System.out.println ("The end");<br />}<br />}<br />1) Prints out "Done the test" and nothing else.<br />2) Program produces no output but terminates correctly.<br />3) Program does not terminate.<br />4) The program will not compile.<br />5) The program generates a runtime exception.<br />6) The program prints out "The end" and nothing else.<br />7) The program prints out "Done the test" and "The end"<br />Answer : 6<br />What is the result of compiling and running the following applet: <br />import java.applet.Applet;<br />import java.awt.*;<br />public class Sample extends Applet {<br />private String text = "Hello World";<br />public void init() {<br />add(new Label(text));<br />}<br />public Sample (String string) {<br />text = string;<br />}<br />}<br />It is accessed form the following HTML page:<br /><html><br /><title>Sample Applet</title><br /><body><br /><applet code="Sample.class" width=200 height=200></applet><br /></body><br /></html><br />1) Prints "Hello World".<br />2) Generates a runtime error.<br />3) Does nothing.<br />4) Generates a compile time error.<br />Answer : 2<br />What is the effect of compiling and (if possible) running this class:<br />public class Calc {<br />public static void main (String args []) {<br />int total = 0;<br />for (int i = 0, j = 10; total > 30; ++i, --j) {<br />System.out.println(" i = " + i + " : j = " + j);<br />total += (i + j);<br />}<br />System.out.println("Total " + total);<br />}<br />}<br />1) Produce a runtime error<br />2) Produce a compile time error<br />3) Print out "Total 0"<br />4) Generate the following as output:<br />i = 0 : j = 10<br />i = 1 : j = 9<br />i = 2 : j = 8<br />Total 30<br />Answer : 3<br /> <br /><br /><br /><br /><br /> Utility Package<br />1) What is the Vector class?<br />ANSWER : The Vector class provides the capability to implement a growable array of objects.<br />2) What is the Set interface?<br />ANSWER : The Set interface provides methods for accessing the elements of a finite mathematical set.Sets do not allow duplicate elements.<br />3) What is Dictionary class?<br />ANSWER : The Dictionary class is the abstarct super class of Hashtable and Properties class.Dictionary provides the abstarct functions used to store and retrieve objects by key-value.This class allows any object to be used as a key or value.<br />4) What is the Hashtable class?<br />ANSWER : The Hashtable class implements a hash table data structure. A hash table indexes and stores objects in a dictionary using hash codes as the objects' keys. Hash codes are integer values that identify objects.<br />5) What is the Properties class?<br />Answer : The properties class is a subclass of Hashtable that can be read from or written to a stream.It also provides the capability to specify a set of default values to be used if a specified key is not found in the table. We have two methods load() and save().<br />6) What changes are needed to make the following prg to compile?<br />import java.util.*;<br />class Ques{<br />public static void main (String args[]) {<br />String s1 = "abc";<br />String s2 = "def";<br />Vector v = new Vector();<br />v.add(s1);<br />v.add(s2);<br />String s3 = v.elementAt(0) + v.elementAt(1);<br />System.out.println(s3);<br />}<br />}<br />ANSWER : Declare Ques as public B) Cast v.elementAt(0) to a String<br />C) Cast v.elementAt(1) to an Object. D) Import java.lang<br />ANSWER : B) Cast v.elementAt(0) to a String<br /> <br /> <br /> <br /> <br /> <br />8) What is the output of the prg.<br />import java.util.*;<br />class Ques{<br />public static void main (String args[]) {<br />String s1 = "abc";<br />String s2 = "def";<br />Stack stack = new Stack(); <br />stack.push(s1);<br />stack.push(s2);<br />try{<br />String s3 = (String) stack.pop() + (String) stack.pop() ;<br />System.out.println(s3);<br />}catch (EmptyStackException ex){}<br />}<br />}<br />ANSWER : abcdef B) defabc C) abcabc D) defdef<br />ANSWER : B) defabc<br />9) Which of the following may have duplicate elements?<br />ANSWER : Collection B) List C) Map D) Set<br />ANSWER : A and B Neither a Map nor a Set may have duplicate elements.<br />10) Can null value be added to a List?<br />ANSWER : Yes.A Null value may be added to any List.<br />11) What is the output of the following prg.<br />import java.util.*;<br />class Ques{<br />public static void main (String args[]) {<br />HashSet set = new HashSet();<br />String s1 = "abc";<br />String s2 = "def";<br />String s3 = "";<br />set.add(s1);<br />set.add(s2);<br />set.add(s1);<br />set.add(s2);<br />Iterator i = set.iterator();<br />while(i.hasNext())<br />{<br />s3 += (String) i.next();<br />}<br />System.out.println(s3);<br />}<br />}<br />A) abcdefabcdef B) defabcdefabc C) fedcbafedcba D) defabc<br />ANSWER : D) defabc. Sets may not have duplicate elements.<br />12) Which of the following java.util classes support internationalization?<br />A) Locale B) ResourceBundle C) Country D) Language<br />ANSWER : A and B . Country and Language are not java.util classes.<br />13) What is the ResourceBundle?<br />The ResourceBundle class also supports internationalization.<br />ResourceBundle subclasses are used to store locale-specific resources that can be loaded by a program to tailor the program's appearence to the paticular locale in which it is being run. Resource Bundles provide the capability to isolate a program's locale-specific resources in a standard and modular manner.<br />14) How are Observer Interface and Observable class, in java.util package, used?<br />ANSWER : Objects that subclass the Observable class maintain a list of Observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.<br />15) Which java.util classes and interfaces support event handling?<br />ANSWER : The EventObject class and the EventListener interface support event processing.<br />16) Does java provide standard iterator functions for inspecting a collection of objects?<br />ANSWER : The Enumeration interface in the java.util package provides a framework for stepping once through a collection of objects. We have two methods in that interface.<br />public interface Enumeration {<br />boolean hasMoreElements();<br />Object nextElement();<br />}<br />17) The Math.random method is too limited for my needs- How can I generate random numbers more flexibly?<br />ANSWER : The random method in Math class provide quick, convienient access to random numbers, but more power and flexibility use the Random class in the java.util package.<br />double doubleval = Math.random();<br />The Random class provide methods returning float, int, double, and long values.<br />nextFloat() // type float; 0.0 <= value < 1.0<br />nextDouble() // type double; 0.0 <= value < 1.0<br />nextInt() // type int; Integer.MIN_VALUE <= value <= Integer.MAX_VALUE<br />nextLong() // type long; Long.MIN_VALUE <= value <= Long.MAX_VALUE<br />nextGaussian() // type double; has Gaussian("normal") distribution with mean 0.0 and standard deviation 1.0)<br />Eg. Random r = new Random();<br />float floatval = r.nextFloat();<br /> <br /> <br /> <br />18) How can we get all public methods of an object dynamically?<br />ANSWER : By using getMethods(). It return an array of method objects corresponding to the public methods of this class. <br />getFields() returns an array of Filed objects corresponding to the public Fields(variables) of this class.<br />getConstructors() returns an array of constructor objects corresponding to the public constructors of this class.<br /> <br /> <br />JDBC<br />1) What are the steps involved in establishing a connection?<br />ANSWER : This involves two steps: (1) loading the driver and (2) making the connection. <br />2) How can you load the drivers?<br />ANSWER : Loading the driver or drivers you want to use is very simple and involves just one line of code. If, for example, you want to use the JDBC-ODBC Bridge driver, the following code will load it:<br />Eg.<br />Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");<br />Your driver documentation will give you the class name to use. For instance, if the class name is jdbc.DriverXYZ , you would load the driver with the following line of code:<br />Eg.<br />Class.forName("jdbc.DriverXYZ");<br />3) What Class.forName will do while loading drivers?<br />ANSWER : It is used to create an instance of a driver and register it with the DriverManager.<br />When you have loaded a driver, it is available for making a connection with a DBMS. <br />4) How can you make the connection?<br />ANSWER : In establishing a connection is to have the appropriate driver connect to the DBMS. The following line of code illustrates the general idea:<br />Eg.<br />String url = "jdbc:odbc:Fred";<br />Connection con = DriverManager.getConnection(url, "Fernanda", "J8");<br />5) How can you create JDBC statements?<br />ANSWER : A Statement object is what sends your SQL statement to the DBMS. You simply create a Statement object and then execute it, supplying the appropriate execute method with the SQL statement you want to send. For a SELECT statement, the method to use is executeQuery. For statements that create or modify tables, the method to use is executeUpdate.<br />Eg.<br />It takes an instance of an active connection to create a Statement object. In the following example, we use our Connection object con to create the Statement object stmt :<br />Statement stmt = con.createStatement();<br />6) How can you retrieve data from the ResultSet?<br />ANSWER : Step 1.<br />JDBC returns results in a ResultSet object, so we need to declare an instance of the class ResultSet to hold our results. The following code demonstrates declaring the ResultSet object rs.<br />Eg.<br />ResultSet rs = stmt.executeQuery("SELECT COF_NAME, PRICE FROM COFFEES");<br />Step2.<br />String s = rs.getString("COF_NAME");<br />The method getString is invoked on the ResultSet object rs , so getString will retrieve (get) the value stored in the column COF_NAME in the current row of rs <br />7) What are the different types of Statements?<br />ANSWER : 1.Statement (use createStatement method) 2. Prepared Statement (Use prepareStatement method) and 3. Callable Statement (Use prepareCall)<br />8) How can you use PreparedStatement?<br />ANSWER : This special type of statement is derived from the more general class, Statement.If you want to execute a Statement object many times, it will normally reduce execution time to use a PreparedStatement object instead.<br />The advantage to this is that in most cases, this SQL statement will be sent to the DBMS right away, where it will be compiled. As a result, the PreparedStatement object contains not just an SQL statement, but an SQL statement that has been precompiled. This means that when the PreparedStatement is executed, the DBMS can just run the PreparedStatement 's SQL statement without having to compile it first. <br />Eg.<br />PreparedStatement updateSales = con.prepareStatement("UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");<br />9) What setAutoCommit does?<br />ANSWER : When a connection is created, it is in auto-commit mode. This means that each individual SQL statement is treated as a transaction and will be automatically committed right after it is executed. The way to allow two or more statements to be grouped into a transaction is to disable auto-commit mode<br />Eg.<br />con.setAutoCommit(false);<br />Once auto-commit mode is disabled, no SQL statements will be committed until you call the method commit explicitly. <br />Eg.<br />con.setAutoCommit(false);<br />PreparedStatement updateSales = con.prepareStatement(<br />"UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");<br />updateSales.setInt(1, 50);<br />updateSales.setString(2, "Colombian");<br />updateSales.executeUpdate();<br />PreparedStatement updateTotal = con.prepareStatement("UPDATE COFFEES SET TOTAL = TOTAL + ? WHERE COF_NAME LIKE ?");<br />updateTotal.setInt(1, 50);<br />updateTotal.setString(2, "Colombian");<br />updateTotal.executeUpdate();<br />con.commit();<br />con.setAutoCommit(true);<br />10) How to call a Strored Procedure from JDBC?<br />ANSWER : The first step is to create a CallableStatement object. As with Statement an and PreparedStatement objects, this is done with an open Connection <br />object. A CallableStatement object contains a call to a stored procedure;<br />Eg.<br />CallableStatement cs = con.prepareCall("{call SHOW_SUPPLIERS}");<br />ResultSet rs = cs.executeQuery();<br />11) How to Retrieve Warnings?<br />ANSWER : SQLWarning objects are a subclass of SQLException that deal with database access warnings. Warnings do not stop the execution of an application, as exceptions do; they simply alert the user that something did not happen as planned. <br />A warning can be reported on a Connection object, a Statement object (including PreparedStatement and CallableStatement objects), or a ResultSet object. Each of these classes has a getWarnings method, which you must invoke in order to see the first warning reported on the calling object<br />Eg.<br />SQLWarning warning = stmt.getWarnings();<br />if (warning != null) {<br />System.out.println("\n---Warning---\n");<br />while (warning != null) {<br />System.out.println("Message: " + warning.getMessage());<br />System.out.println("SQLState: " + warning.getSQLState());<br />System.out.print("Vendor error code: ");<br />System.out.println(warning.getErrorCode());<br />System.out.println("");<br />warning = warning.getNextWarning();<br />}<br />}<br />12) How can you Move the Cursor in Scrollable Result Sets ?<br />ANSWER : One of the new features in the JDBC 2.0 API is the ability to move a result set's cursor backward as well as forward. There are also methods that let you move the cursor to a particular row and check the position of the cursor. <br />Eg.<br />Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,<br />ResultSet.CONCUR_READ_ONLY);<br />ResultSet srs = stmt.executeQuery("SELECT COF_NAME, PRICE FROM COFFEES");<br />The first argument is one of three constants added to the ResultSet API to indicate the type of a ResultSet object: TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE , and TYPE_SCROLL_SENSITIVE . <br />The second argument is one of two ResultSet constants for specifying whether a result set is read-only or updatable: CONCUR_READ_ONLY and CONCUR_UPDATABLE . The point to remember here is that if you specify a type, you must also specify whether it is read-only or updatable. Also, you must specify the type first, and because both parameters are of type int , the compiler will not complain if you switch the order. <br />Specifying the constant TYPE_FORWARD_ONLY creates a nonscrollable result set, that is, one in which the cursor moves only forward. If you do not specify any constants for the type and updatability of a ResultSet object, you will automatically get one that is TYPE_FORWARD_ONLY and CONCUR_READ_ONLY <br />13) What’s the difference between TYPE_SCROLL_INSENSITIVE , and TYPE_SCROLL_SENSITIVE?<br />ANSWER : You will get a scrollable ResultSet object if you specify one of these ResultSet constants.The difference between the two has to do with whether a result set reflects changes that are made to it while it is open and whether certain methods can be called to detect these changes. Generally speaking, a result set that is TYPE_SCROLL_INSENSITIVE does not reflect changes made while it is still open and one that is TYPE_SCROLL_SENSITIVE does. All three types of result sets will make changes visible if they are closed and then reopened<br />Eg.<br />Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);<br />ResultSet srs = stmt.executeQuery("SELECT COF_NAME, PRICE FROM COFFEES");<br />srs.afterLast();<br />while (srs.previous()) {<br />String name = srs.getString("COF_NAME");<br />float price = srs.getFloat("PRICE");<br />System.out.println(name + " " + price);<br />}<br />14) How to Make Updates to Updatable Result Sets?<br />ANSWER : Another new feature in the JDBC 2.0 API is the ability to update rows in a result set using methods in the Java programming language rather than having to send an SQL command. But before you can take advantage of this capability, you need to create a ResultSet object that is updatable. In order to do this, you supply the ResultSet constant CONCUR_UPDATABLE to the createStatement method.<br />Eg.<br />Connection con = DriverManager.getConnection("jdbc:mySubprotocol:mySubName");<br />Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, <br />ResultSet.CONCUR_UPDATABLE);<br />ResultSet uprs = stmt.executeQuery("SELECT COF_NAME, PRICE FROM COFFEES");<br /> <br />Networking Concepts<br />1) The API doesn't list any constructors for InetAddress- How do I create an InetAddress instance?<br />ANSWER : In case of InetAddress the three methods getLocalHost, getByName, getByAllName can be used to create instances.<br />E.g.<br />InetAddress add1;<br />InetAddress add2;<br />try{<br />add1 = InetAddress.getByName("java.sun.com");<br />add2 = InetAddress.getByName("199.22.22.22");<br />}catch(UnknownHostException e){}<br />2) Is it possible to get the Local host IP?<br />ANSWER : Yes. Use InetAddress's getLocalHost method.<br />3) What's the Factory Method?<br />ANSWER : Factory methods are merely a convention whereby static methods in a class return an instance of that class. The InetAddress class has no visible constructors. To create an InetAddress object, you have to use one of the available factory methods. In InetAddress the three methods getLocalHost, getByName, getByAllName can be used to create instances of InetAddress.<br />4) What’s the difference between TCP and UDP?<br />ANSWER : These two protocols differ in the way they carry out the action of communicating. A TCP protocol establishes a two way connection between a pair of computers, while the UDP protocol is a one-way message sender. The common analogy is that TCP is like making a phone call and carrying on a two-way communication, while UDP is like mailing a letter.<br />5) What is the Proxy Server?<br />ANSWER : A proxy server speaks the client side of a protocol to another server. This is often required when clients have certain restrictions on which servers they can connect to. And when several users are hitting a popular web site, a proxy server can get the contents of the web server's popular pages once, saving expensive internetwork transfers while providing faster access to those pages to the clients.<br />Also, we can get multiple connections for a single server.<br />6) What are the seven layers of OSI model?<br />ANSWER : Application, Presentation, Session, Transport, Network, DataLink, Physical Layer.<br />What Transport Layer does?<br />ANSWER : It ensures that the mail gets to its destination. If a packet fails to get its destination, it handles the process of notifying the sender and requesting that another packet be sent.<br />8) What is DHCP?<br />ANSWER : Dynamic Host Configuration Protocol, a piece of the TCP/IP protocol suite that handles the automatic assignment of IP addresses to clients.<br />9) What is SMTP?<br />ANSWER : Simple Mail Transmission Protocol, the TCP/IP Standard for Internet mails. SMTP exchanges mail between servers; contrast this with POP, which transmits mail between a server and a client.<br />10) In OSI N/w architecture, the dialogue control and token management are responsibilities of...<br />Answer : Network b) Session c) Application d) DataLink<br />ANSWER : b) Session Layer.<br />11) In OSI N/W Architecture, the routing is performed by ______<br />Answer : Network b) Session c) Application d) DataLink<br />ANSWER : Answer : Network Layer.<br />Networking<br /> <br />What is the difference between URL instance and URLConnection instance?<br />ANSWER : A URL instance represents the location of a resource, and a URLConnection instance represents a link for accessing or communicating with the resource at the location.<br />2) How do I make a connection to URL?<br />ANSWER : You obtain a URL instance and then invoke openConnection on it.<br />URLConnection is an abstract class, which means you can't directly create instances of it using a constructor. We have to invoke openConnection method on a URL instance, to get the right kind of connection for your URL.<br />Eg. URL url;<br />URLConnection connection;<br />try{ url = new URL("...");<br />conection = url.openConnection();<br />}catch (MalFormedURLException e) { }<br /> <br />3) What Is a Socket?<br />A socket is one end-point of a two-way communication link between two programs running on the network. A socket is bound to a port number so that the TCP layer can identify the application that data is destined to be sent.Socket classes are used to represent the connection between a client program and a server program. The java.net package provides two classes--Socket and ServerSocket--which implement the client side of the connection and the server side of the connection, respectively. <br />What information is needed to create a TCP Socket? <br />ANSWER : The Local System’s IP Address and Port Number.<br />And the Remote System's IPAddress and Port Number.<br />5) What are the two important TCP Socket classes?<br />ANSWER : Socket and ServerSocket.<br />ServerSocket is used for normal two-way socket communication. Socket class allows us to read and write through the sockets.<br />getInputStream() and getOutputStream() are the two methods available in Socket class.<br />When MalformedURLException and UnknownHostException throws?<br />ANSWER : When the specified URL is not connected then the URL throw MalformedURLException and If InetAddress’ methods getByName and getLocalHost are unabletoresolve the host name they throwan UnknownHostException.<br />Servlets<br /> <br />1) What is the servlet?<br />ANSWER : Servlets are modules that extend request/response-oriented servers, such as Java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to update a company's order database.<br />Servlets are to servers what applets are to browsers. Unlike applets, however, servlets have no graphical user interface. <br />2) Whats the advantages using servlets than using CGI?<br />ANSWER : Servlets provide a way to generate dynamic documents that is both easier to write and faster to run. Servlets also address the problem of doing server-side programming with platform-specific APIs: they are developed with the Java Servlet API, a standard Java extension. <br />3) What are the uses of Servlets?<br />ANSWER : A servlet can handle multiple requests concurrently, and can synchronize requests. This allows servlets to support systems such as on-line conferencing. <br />Servlets can forward requests to other servers and servlets.Thus servlets can be used to balance load among several servers that mirror the same content, and to partition a single logical service over several servers, according to task type or organizational boundaries. <br />4) Which pakage provides interfaces and classes for writing servlets?<br />ANSWER : javax<br />5) Whats the Servlet Interfcae?<br />ANSWER : The central abstraction in the Servlet API is the Servlet interface. All servlets implement this interface, either directly or, more commonly, by extending a class that implements it such as HttpServlet.<br />Servlets-->Generic Servlet-->HttpServlet-->MyServlet.<br />The Servlet interface declares, but does not implement, methods that manage the servlet and its communications with clients. Servlet writers provide some or all of these methods when developing a servlet. <br />6) When a servlet accepts a call from a client, it receives two objects- What are they?<br />ANSWER : ServeltRequest: Which encapsulates the communication from the client to the server.<br />ServletResponse: Whcih encapsulates the communication from the servlet back to the client.<br />ServletRequest and ServletResponse are interfaces defined by the javax.servlet package. <br />7) What information that the ServletRequest interface allows the servlet access to?<br />ANSWER : Information such as the names of the parameters passed in by the client, the protocol (scheme) being used by the client, and the names of the remote host that made the request and the server that received it. <br />The input stream, ServletInputStream.Servlets use the input stream to get data from clients that use application protocols such as the HTTP POST and PUT methods.<br />8) What information that the ServletResponse interface gives the servlet methods for replying to the client? <br />ANSWER : It Allows the servlet to set the content length and MIME type of the reply. <br />Provides an output stream, ServletOutputStream and a Writer through which the servlet can send the reply data. <br />9) What is the servlet Lifecycle?<br />ANSWER : Each servlet has the same life cycle: <br />A server loads and initializes the servlet (init())<br />The servlet handles zero or more client requests (service())<br />The server removes the servlet (destroy())<br />(some servers do this step only when they shut down) <br />10) How HTTP Servlet handles client requests?<br />ANSWER : An HTTP Servlet handles client requests through its service method. The service method supports standard HTTP client requests by dispatching each request to a method designed to handle that request. 1<br /><br /> <br />Encapsulation : <br />Encapsulation is the mechanism that binds together code and the data it manipulates and keeps both safe from outside interference and misuse.<br />Inheritance: <br />Inheritance is the process by which one object acquires the properties of another object.<br />Polymorphism: <br />Polymorphism is a feature that allows one interface to be used for a general class of actions. The specific action is determined by the exact nature of actions.<br />Code Blocks: <br />Two or more statements which is allowed to be grouped into blocks of code is otherwise called as Code Blocks.This is done by enclosing the statements between opening and closing curly braces.<br />Floating-point numbers: <br />Floating-point numbers which is also known as real numbers, are used when evaluating expressions that require fractional precision.<br />Unicode: <br />Unicode defines a fully international character set that can represent all of the characters found in all human languages. It is a unification of dozens of character sets, such as Latin, Greek, Arabic and many more.<br />Booleans: <br />Java has a simple type called boolean, for logical values. It can have only on of two possible values, true or false.<br />Casting: <br />A cast is simply an explicit type conversion. To create a conversion between two incompatible types, you must use a cast.<br />Arrays: <br />An array is a group of like-typed variables that are referred to by a common name. Arrays offer a convenient means of grouping related information. Arrays of any type can be created and may have one or more dimension.<br />Relational Operators:<br />The relational operators determine the relationship that one operand has to the other. They determine the equality and ordering.<br />11.Short-Circuit Logical Operators:<br />The secondary versions of the Boolean AND and OR operators are known as short- <br />circuit logical operators. It is represented by || and &&..<br />12. Switch:<br />The switch statement is Java’s multiway branch statement. It provides an easy way to <br />dispatch execution to different parts of your code based on the value of an <br />experession.<br />13. Jump Statements:<br />Jump statements are the statements which transfer control to another part of your <br />program. Java Supports three jump statements: break, continue, and return.<br />14. Instance Variables:<br />The data, or variable, defined within a class are called instance variable.pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-4066243113287351292007-12-15T18:12:00.000-08:002007-12-15T18:14:28.225-08:00C QUESTIONSPredict the output or error(s) for the following:<br /><br />1.void main()<br />{<br /> int const * p=5;<br /> printf("%d",++(*p));<br />}<br /><br />a .compiler error b.5 c.6 d.none<br /><br /><br />2.main()<br />{<br /> float me = 1.1;<br /> double you = 1.1;<br /> if(me==you)<br /> printf("sita");<br />else<br /> printf("geetha");<br />}<br />a.sita b.geetha c.error d.none <br /><br /><br />3. main()<br /> {<br /> static int var = 5;<br /> printf("%d ",var--);<br /> if(var)<br /> main();<br /> }<br /> a.5 4 3 2 1 b.4 3 2 1 c. 4 d.none<br /><br /><br />4. main()<br />{<br /> extern int i;<br /> i=20;<br />printf("%d",i);<br />}<br /> a.compiler error b.runtime error c.linker error d.20<br /><br /><br /><br /><br /><br /><br /><br />5. main()<br />{<br /> char *p;<br /> printf("%d %d ",sizeof(*p),sizeof(p));<br />}<br />a.1 2 b.2 1 c.1 1 d.2 2 <br /><br /><br /><br />6. main()<br />{<br /> int i=3;<br /> switch(i)<br /> {<br /> default:printf("zero");<br /> case 1: printf("one");<br /> break;<br /> case 2:printf("two");<br /> break;<br /> case 3: printf("three");<br /> break;<br /> } <br />}<br />a.1 b.2 c.3 d.0<br /><br /><br />7. main()<br />{<br /> int c= --2;<br /> printf("c=%d",c);<br />}<br />a.2 b.1 c.error d, n<br /><br /><br />8.main()<br />{<br />printf("%p",main);<br />}<br />a. b. c. d.<br /><br /><br /><br /><br /><br /><br /><br />9. main()<br />{<br /> int i=400,j=300;<br /> printf("%d..%d");<br />}<br />a.400 300 b. 300 400 c. 400..300 d.none<br /><br /><br />10. void main()<br />{<br /> int i=5;<br /> printf("%d",i+++++i);<br />}<br />a.linker error b.compiler error c.6 d.10<br /><br /><br />11. #include<stdio.h><br />main()<br />{<br />int i=1,j=2;<br />switch(i)<br /> {<br /> case 1: printf("GOOD");<br /> break;<br /> case j: printf("BAD");<br /> break;<br /> }<br />}<br />a. GOOD b. BAD c.compiler error d.linker error<br /><br />12. main()<br /> {<br /> int i=-1;<br /> +i;<br /> printf("i = %d, +i = %d \n",i,+i);<br /> }<br />a. –1,1 b. –1,0 c. –1,-1 d.1,-1<br /><br /><br /><br />13. main()<br /> {<br /> main();<br /> }<br />a. runtime error b. stack overflow c.both a&b d.none <br />14. main()<br /> {<br /> int i=-1;<br /> -i;<br /> printf("i = %d, -i = %d \n",i,-i);<br /> }<br />a. –1,-1 b.-1,1 c.1,-1 d.-1,0<br /><br /><br /><br /><br /><br /><br /><br /><br />15. main()<br />{<br /> int i=5,j=6,z;<br /> printf("%d",i+++j);<br /> }<br />a.12 b.11 c. error d.none<br /><br /><br />16. main()<br />{<br /> int i =0;j=0;<br /> if(i && j++)<br /> printf("%d..%d",i++,j);<br />printf("%d..%d,i,j);<br /> }<br />a.1 0 b.0 0 c.0..0 d.none<br /><br /><br />17. main()<br />{<br />char *p;<br />p="%d\n";<br /> p++;<br /> p++;<br /> printf(p-2,300);<br />}<br />a. <br /><br /><br /><br /><br /><br />18. void main()<br />{<br /> char a[]="12345\0";<br /> int i=strlen(a);<br /> printf("here in 3 %d\n",++i);<br />}<br />a.<br /><br /><br />19. void main()<br />{<br /> void *v;<br /> int integer=2;<br /> int *i=&integer;<br /> v=i;<br /> printf("%d",(int*)*v);<br />}<br />a.<br /><br /><br />20. void main()<br />{<br /> int i=i++,j=j++,k=k++;<br />printf(“%d%d%d”,i,j,k);<br />}<br />a.<br /><br /><br />21. void main()<br />{<br /> static int i=i++, j=j++, k=k++;<br />printf(“i = %d j = %d k = %d”, i, j, k);<br />}<br />a.<br /><br /><br />22. main()<br />{<br /> unsigned int i=65000;<br /> while(i++!=0);<br /> printf("%d",i);<br />}<br />a b c d<br /><br /><br /><br />23. main()<br />{<br /> int i=0;<br /> while(+(+i--)!=0)<br /> i-=i++;<br /> printf("%d",i);<br />}<br />a b c d.<br /><br /><br /><br /><br />24. main()<br /> {<br /> signed char i=0;<br /> for(;i>=0;i++) ;<br /> printf("%d\n",i);<br /> }<br /><br /><br />a. 128 b.127 c. -128 d.0<br /><br /><br /><br />25. main()<br /> { <br /> unsigned char i=0;<br /> for(;i>=0;i++) ;<br /> printf("%d\n",i);<br /> }<br /><br />a. 128 b.127 c.infinite loop d.none<br /><br /><br />26. <br />main()<br />{<br />int i=5;<br />printf(“%d”,i=++i ==6);<br />}<br /><br />a. 5 b. 6 c. 1 d.<br /><br /><br /><br /><br /><br />27. Is the following code legal?<br />struct a<br /> { <br />int x;<br /> struct a *b;<br /> }<br /> <br />a. yes b.no c.cant say d.none<br /><br /><br /><br />28. What does the following statement mean?<br />int (*a)[4]<br />(a)'a' is a pointer to an array of 4 integers<br />(b)'a' is an array of pointers to integer<br />(c)'a' is a pointer to function returning an integer<br />(d).none<br /><br />29)what is the difference between 123 and 0123 in c?<br />(a)120<br />(b)40<br />(c)0<br />(d)...<br /><br />30. The use of qualifier signed on integers is ..?<br /> (a)Compulsory<br /> (b)Optional<br /> (c)Not required<br /> (d)None of these<br /><br />31. if (m%5 == 0 && n%5 == 0) is same as...<br /> (a)if (!(m%5) && !(n%5))<br /> (b)if (!(m%5 != 0) && !(n%5 != 0))<br /> (c)if ((m%5 == 0) && (n%5 == m%5))<br /> (d)All of the above<br /> (e)None of thesepamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-87233658744720569542007-12-12T00:44:00.000-08:002007-12-12T00:47:06.432-08:00Group DiscussionSatyam GD Probables:<br />----------------------<br />1. US war on iraq-justified or not.<br />2. Role of UN in peacekeeping.<br />3. Position of Women in India compared to other nations.<br />4. Environment MAnagement.<br />5. Is China better than India in software.<br />6.Should SONIA gandhi be made the PM<br />7. BPOs in INDIA<br />8. Govt contribution to IT<br />9. will punch lines rule the Advt<br />10. prematial sex <br />11. is china a threat to indian industry<br />12. india or west , which is the land of opportunities<br />13. water resources should be nationalised<br />14."BALANCE BETWEEN PROFESSIONALISM AND FAMILY"<br />15. Effect of cinema on Youth<br />16. Education in India compared to Foreign nations<br />17. Is it necessary to ban COCOCOLA in India.<br />18. What is the effect of movies on youth.(is it good or bad)<br />19. Are studies more benifitial in India or in Abroad.<br />20."UN's peace activities" and "America's war on Iraq".<br />21."Environment-Whose Responisibility".<br />22.Is China a threat to the indian software industry.<br />23.Role of UN in Peace keeping <br />24.War on Iraq<br />25.About Hockey being the primary game in India.<br />26.Can america occupy iraq<br />27.Cricket shud be banned or not.<br />28.IS CHINA A THREAT TO INDIA<br />29.Present state of Indian Cricket team.<br />30.Love marriage/Arranged marriage.<br />31.Advantages of Co-education.<br /><br />IMS Study:<br />-----------<br />The topics of GD can be varied :<br /><br />Hot Topics:<br />-----------<br />1.How to deal with international terrorism.<br />2.Should we pursue our policy of dialogue with Pakistan?<br />3.Is peace and non-violence outdated concepts?<br /><br />Current Topics:<br />---------------<br />1.A Unipolar World spells disaster for underdeveloped countries like India.<br />2.Is Globalisation Really Necessary?<br />3.What shall we do about our ever-increasing Population?<br />4.Corruption is the price we pay for Democracy.<br />5.Foreign Television Channels are destroying our culture.<br />6.What India needs is a Dictatorship.<br />7.With media publishing and telecasting trivia, censorship is the need of the hour.<br />8.Kaun Banega Krorepati is less about knowledge but more about money and personality.<br />9.Beauty contests degrade womanhood<br />10.The rise of regional blocs threatens independent nations like India<br />11.Six billion and one bronze!<br />12.Is dependence on computers a good thing?<br />13.Should the public sector be privatised?<br />14.China and India are similar nations with contrasting ways<br />15.Is India a Soft Nation?<br />16.Value based politics is the need of the hour<br />17.Religion should not be mixed with politics<br />18.How to deal with high oil prices<br />19.Our cricketers are not to blame for match fixing<br />20.Why cant we be world players in industry as we are in software?<br />21.Multinational corporations: Are they devils in disguise?<br />22.Should there be limits on artistic freedom (the controversy on Fire).<br />23.Should there be private universities?<br />24.Does banning fashion shows and New Year parties save our culture?<br /><br />Social Topics:<br />--------------<br />1.Are Big Dams Necessary?<br />2.Films are corrupting the Indian Youth<br />3.A Gandhian State selling liquor is an anomaly<br />4.Bride burning and dowry may look bad, but are an integral part of India.<br />5.Our Culture is Decaying<br />6.We are not serious about saving Wildlife/Environment<br />7.The education system needs serious reforms<br />8.The impact of MTV on our psyche<br />9.Showing Violence and Crimes should not be allowed in films and on television.<br />10.Let us legalise gambling<br /><br />Management Topics:<br />------------------<br />1.Is management an art or a science?<br />2.The Rush for MBA is really a rush for big money<br />3.Ethics in Business are just a passing fashion<br />4.The objective of Management is to maximise profits<br />5.Do professional managers have a chance in our family run businesses?<br />6.The Internet is an exercise in hype<br />7.Is an MBA necessary to succeed in life?<br />8.Family owned business vs professionally run businesses<br />9.Smaller businesses and start-ups have more scope for professional growth.<br />10.Dot com or doubt com?<br /><br />Creative Topics:<br />----------------<br />1.The Wheel is Turning Round and Round<br />2.If I was the Finance Minister/Prime Minister<br />3.There is no right way to do a wrong thing<br />4.Group Task: How can we have Mount Everest in India?<br />5.Do Beauty and Brains Go Together?<br />6.When I woke up in the morning I saw…<br />7.A ship docked in harbour cannot face the storms<br />8.Up the Down Staircase<br />9.Just as we have smoke free zones, we should have child free zones<br />10.Marriage is a social trap<br /><br />SOCIAL TOPICS:<br />-------------<br />1. The Internet chains have come on the wings of science and technology but are no less restrictive for all that. <br />2. Secularism has become a tool to justify the wrongs done by the minorities. <br />3. Media is a mixed blessing/How ethical is media?<br />4. To fight AIDs, stop being coy about sex education.<br />5. What should India strive for- Westernization or modernization? <br /> <br />ECONOMIC TOPICS:<br />---------------<br />1. Developing countries need trade, not aid. <br />2. Why do we lag behind China?<br />3. Capitalism is a very flawed system but the others are so much worse. <br />4. Flexibility of labour laws is the key to attracting more Foreign Direct Investment. <br />5. Is the business of business only business? <br /> <br />POLITICAL TOPICS: <br />----------------<br />1. Reserving seats for women in Panchayat has not only been a farce but has distracted from developing a more genuine voice of women. <br />2. Have the nuclear tests of 1998 benefited or harmed India? <br />3. Voters, not, political parties are responsible for the criminalisation of politics. <br />4. The voters are required to be well informed and educated about their candidates so that they can elect the right aspirant by their own assessment.<br />5. India should go for the presidential form of democracy.<br /><br />ECONOMIC TOPICS:<br />---------------<br />1. In our economic matters, there is an excessive tendency towards the thinking rather than doing. <br />2. Every cloud has a silver lining <br />3. Can the economy achieve an 8 percent growth rate?. <br />4. Is disinvestment really that good for India or is a rethink in order ? <br />5. Are co-operatives relevant in today's globalised environment?.<br />6. Foreign aid is a dangerous drug that can stimulate in small doses but become fatally addictive in larger doses.<br />7. Modern day sport in industrialised society is an industry, as anything else.<br />8. Government should clean its own hands before pointing finger at the private sector for corruption.<br />9. Is the NPA ordinance too harsh?<br />10. Reforms have to grow up.<br />11. The future lies with glocalisation . <br />12. Is the consumer really the king in India?.<br />13. Globalisation versus nationalism<br />14. Conditional access system for cable TV watchers: boon or bane?<br />15. If India is poorly governed, the reason is that we have designed our system of governance for protecting, if not encouraging, corruption?<br />16. Commercialisation of health care : Good or Bad ?<br />17. For globalisation to succeed in India people must be able to see what is in it for them<br />18. Is the US economy headed the Japanese economy way?<br />19. Economic freedom not old fashioned theories of development will lead to growth and prosperity<br />20. Markets left to themselves encourage greed.<br />21. For globalisation to succeed in India people must be able to see what is in it for them<br />22. Should businessmen run the finance ministry <br />23. Should important services like transport be left to market forces?.<br />24. Is there any point in having a business strategy when the world changes from month to month?<br />25. Is the patents bill good for India? .<br />26. Is the business of business only business?.<br />27. Globalisation is good for developing countries<br />28. Public sector being a guarantor of job security is a myth.<br />29. Is industryless growth here to stay ?<br />30. Capitalism is a very flawed system but the others are so much worse ?<br />31. How can business get rid of the bad name that it has earned? <br />32. Government pumping money into the economy is not the solution for our economic problems <br />33. Business ethics are no longer a luxury for corporates but a necessity?<br />34. How should privatisation proceeds be utilised ?<br />35. Is the budgeting exercise of any use? <br />36. Should agricultural subsidies be stopped ? <br />37. Will Mumbai's film industry ever evolve into a truly modern corporatised one? <br />38. Will market reforms enrich rich states further, while poorer ones lag further?. <br />39. Why do we lag behind China ?<br />40. Who says MNCs are superior to Indian companies ?.pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-11262680673876885142007-12-10T21:35:00.000-08:002007-12-10T21:36:00.594-08:00VERBAL1. Depreciation: deflation, depression, devaluation, fall, slump<br />2. Deprecate : feel and express disapproval, <br />3. Incentive : thing one encourages one to do (stimulus)<br />4. Echelon : level of authority or responsibility<br />5. Innovation : make changes or introduce new things<br />6. Intermittent : externally stopping and then starting<br />7. Detrimental: harmful<br />8. Conciliation : make less angry or more friendly<br /><br />9. Orthodox: conventional or traditional, superstitious<br /><br />10. Fallible : liable to error<br /><br />11. Volatile : ever changing<br /><br />12. Manifest: clear and obvious<br /><br />13. Connotation : suggest or implied meaning of expression<br /><br />14. Reciprocal: reverse or opposite<br /><br />15. Agrarian : related to agriculture<br /><br />16. Vacillate : undecided or dilemma<br /><br />17. Expedient : fitting proper, desirable<br /><br />18. Simulate : produce artificially resembling an existing one.<br /><br />19. Access : to approach<br /><br />20. Compensation: salary<br /><br />21. Truncate : shorten by cutting<br /><br />22. Adherence : stick<br /><br />23. Heterogeneous: non similar things<br /><br />24. Surplus : excessive<br /><br />25. Assess : determine the amount or value<br /><br />26. Cognizance : knowledge<br /><br />27. Retrospective : review<br /><br />28. Naive : innocent, rustic<br /><br />29. Equivocate : tallying on both sides, lie, mislead<br /><br />30. Postulate : frame a theory<br /><br />31. Latent : dormant, secret<br /><br />32. Fluctuation : wavering,<br /><br />33. Eliminate : to reduce<br /><br />34. Affinity : strong liking<br /><br />35. Expedite : hasten<br /><br />36. Console : to show sympathy<br /><br />37. Adversary : opposition<br /><br />38. Affable : lovable or approachable<br /><br />39. Decomposition : rotten<br /><br />40. Agregious : apart from the crowd, especially bad<br /><br />41. Conglomeration: group, collection<br /><br />42. Aberration: deviation<br /><br />43. Augury : prediction<br /><br />44. Creditability : ability to common belief, quality of being credible<br /><br />45. Coincident: incidentally<br /><br />46. Constituent : accompanying<br /><br />47. Differential : having or showing or making use of<br /><br />48. Litigation : engaging in a law suit<br /><br />49. Moratorium: legally or officially determined period of delay before<br />fulfillment of the agreement of paying of debts.<br /><br />50. Negotiate : discuss or bargain<br /><br />51. Preparation : act of preparing<br /><br />52. Preponderant : superiority of power or quality<br /><br />53. Relevance : quality of being relevant<br /><br />54. Apparatus : appliances<br /><br />55. Ignorance : blindness, in experience<br /><br />56. Obsession: complex enthusiasm<br /><br />57. precipitate : speed, active<br />58. corroborative: refutable<br />59. obnoxious : harmless<br />60. sanction: hinder<br />61. empirical: experimental<br />62. aborigine: emigrant<br /> 63. corpulent : emaciated <br />64. officious: pragmate <br />65. Agitator : Firebrand :: Renegade : Turncoat<br /><br />66. Burst : Sound :: Tinder : Fire<br /><br />67. Star : cluster :: Tree : clump<br /><br />68. Piston : Cylinder :: elevator : shaft<br /><br />69. Mitigate : punishment :: commute : sentence<br /><br />70. Erudite : scholar :: illiterate : ignorant<br /><br />71. Fire : Ashes :: explosion : debris <br /><br />72. mason : wall :: Author : Book <br /><br />73. Fire : Ashes :: Event : memories<br /> 74. (a) cheerleaders : pompoms<br />(b) audience:seats<br />(c) team:goalposts<br />(d) conductor:podium<br />(e) referee:decision<br /><br />Ans. (a)<br /><br />75. archipelago:islands::<br /><br />(a) arbor:bower<br />(b) garden:flower<br />(c) mountain:valley<br />(d) sand:dune<br />(e) constellation:star<br /><br />Ans. (a)<br /><br /><br />76. crow:boastful ::<br /><br />(a) smirk:witty<br />(b) conceal:s;y<br />(c) pout:sulky<br />(d) blush:coarse<br />(e) bluster:unhappy<br /><br />Ans. (a)<br /><br /><br />77. bracket:shelf ::<br /><br />(a) hammer:anvil<br />(b) girder:rivet<br />(c) strut:rafter<br />(d) valve:pipe<br />(e) bucket:well<br /><br />Ans. (a)<br /><br /><br />78. taxonomy:classification ::<br /><br />(a) etymology:derivation<br />(b) autonomy:authorization<br />(c) economy:rationalization<br />(d) tautology:justification<br />(e) ecology:urbanisation<br /><br />Ans. (a)<br /><br /><br />79. moderator:debate ::<br /><br />(a) legislator:election<br />(b) chef:banquet<br />(c) auditor:lecture<br />(d) conspirator:plot<br />(e) umpire:game<br /><br />Ans. (a)<br /><br /><br />80. glossary:words ::<br /><br />(a) catalogue:dates<br />(b) atlas:maps<br />(c) almanac:synonyms<br />(d) thesaurus:rhymes<br />(e) lexicon:numbers<br /><br />Ans. (a)<br /><br /><br />81. lumber: bear ::<br /><br />(a) roost:hen<br />(b) bray:donkey<br />(c) waddle:goose<br />(d) swoop:hawk<br />(e) chirp:sparrow<br /><br />Ans. (a)<br /><br /><br />82. celerity:snail ::<br /><br />(a) indolence:sloth<br />(b) cunning:weasel<br />(c) curiosity:cat<br />(d) humility:peacock<br />(e) obstinacy:mule<br /><br />Ans. (a)<br /><br /><br />83. wood:sand ::<br /><br />(a) coal:burn<br />(b) brick:lay<br />(c) oil:polish<br />(d) metal:burnish<br />(e) stone:quarry<br /><br />Ans. (a)<br /><br /><br />84. carpenter:saw :: <br /><br />(a) stenographer:typist<br />(b) painter:brush<br />(c) lawyer:brief<br />(d) runner:sneakers<br />(e) seamstress:scissors<br /><br />Ans. (a)<br /><br /><br />85. horns:bull :: <br /><br />(a) mane:lion<br />(b) wattles:turkey<br />(c) antlers:stag<br />(d) hooves:horse<br />(e) wings:eagle<br /><br />Ans. (a)<br /><br /><br />86. gullible:duped :: <br /><br />(a) credible:cheated<br />(b) careful:cautioned<br />(c) malleable:moulded<br />(d) myopic:mislead<br />(e) articulate:silenced<br /><br />Ans. (a)<br /><br /><br />87. marathon:stamina :: <br /><br />(a) relay:independence<br />(b) hurdle:perseverance<br />(c) sprint:celerity<br />(d) job:weariness<br />(e) ramble:directness<br /><br />Ans. (a)<br /><br /><br />88. Skin:man ::<br /><br />(a) hide:animal<br />(b) jump:start<br />(c) peel:potato<br />(d) eat:food<br />(e) wool:cloth<br /><br />Ans. (a)<br /><br /><br />89. Bamboo:Shoot :: <br /><br />(a) Bean:Sprout<br />(b) Peas:Pod<br />(c) Potato:Eye<br />(d) Carrot:Root<br />(e) Leaf:Stem<br /><br />Ans. (a)<br /><br /><br />90. Deflect:Missile :: <br /><br />(a) Siege:Castle<br />(b) Distract:Attraction<br />(c) Protect:Honour<br />(d) Drop:Catch<br />(e) Score:Goal<br /><br />Ans. (a)<br /><br /><br />91. Editor:magazine :: <br /><br />(a) captain:ship<br />(b) actor:movie<br />(c) director:film<br />(d) player:team<br />(e) jockey:horse<br /><br />Ans. (a)<br /><br /><br />92. Volcano : Lava :: <br /><br />(a) Fault:earthquate<br />(b) crack:wall<br />(c) tunnel:dig<br />(d) water:swim<br />(e) floor:polish<br /><br />Ans. (a)<br /><br />93. Disregarded <br />(a) heed <br />(b) hopeful<br />(c) evade<br />(d) dense<br />Ans. (a)<br />94. Obviate<br />(a) becloud<br />(b) necessitate<br />(c) rationalize<br />(d) execute<br />Ans. (b)<br /><br />95. Superficial<br />(a) profound<br />(b) exaggerated<br />(c) subjective<br />(d) spirited<br />Ans. (a)<br />96. chief : tribe :: governer : state<br /><br />97. epaulette : shoulder :: tiara : head <br /><br />98. guttural : throat :: gastric : stomach<br /><br />99. inept : clever :: languid : active<br /><br />100. Erudite : scholar :: illiterate : ignorantpamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-16871644405105678072007-12-10T21:34:00.001-08:002007-12-10T21:34:43.923-08:00Aptitude Questions1.One of the following is my secret word:AIM DUE MOD OAT TIE.With the list in front of you, if I were to tell you any one of my secret word, then you would be able to tell me the number of vowels in my secret word.Which is my secret word?<br />Ans.TIE<br /><br />2.In the following figure:A B C<br /> D<br /> E F G<br /> H<br /> I<br />Each of the digits 1, 2, 3, 4, 5, 6, 7, 8, and 9 is:<br />a)Represented by a different letter in the figure above.<br />b)Positioned in the figure above so that each of A + B + C,C + D +E,E + F + G, and G + H + I is equal to 13.<br />Which digit does E represent?<br /><br />Ans.E is 4<br />3.One of Mr. Horton,his wife,their son,and Mr. Horton's mother is a doctor and another is a lawyer.<br />a)If the doctor is younger than the lawyer, then the doctor and the lawyer are not blood relatives.<br />b)If the doctor is a woman, then the doctor and the lawyer are blood relatives.<br />c)If the lawyer is a man, then the doctor is a man.<br />Whose occupation you know?<br /><br />Ans.Mr. Horton:he is the doctor.<br />4.Here is a picture of two cubes:<br /> <br /> <br /> <br /> a)The two cubes are exactly alike.<br /> b)The hidden faces indicated by the dots have the same alphabet on them.<br />Which alphabet-q, r, w, or k is on the faces indicated by the dots?<br /><br />Ans.q<br /><br /><br />5.In the following figure:<br /> A D<br /> B G E<br /> C F<br />Each of the seven digits from 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 is:<br /> a)Represented by a different letter in the figure above.<br /> b)Positioned in the figure above so that A*B*C,B*G*E, and D*E*F are equal.<br />Which digit does G represent?<br /><br />Ans.G represents the digit 2.<br />6.Mr. and Mrs. Aye and Mr. and Mrs. Bee competed in a chess tournament.Of the three games played:<br /> a)In only the first game werethe two players married to each other.<br /> b)The men won two games and the women won one game.<br /> c)The Ayes won more games than the Bees.<br /> d)Anyone who lost game did not play the subsequent game.<br />Who did not lose a game?<br /><br />Ans.Mrs.Bee did not lose a game.<br />7.Three piles of chips--pile I consists one chip, pile II consists of chips, and pile III consists of three chips--are to be used in game played by Anita and Brinda.The game requires:<br /> a)That each player in turn take only one chip or all chips from just one pile.<br /> b)That the player who has to take the last chip loses.<br /> c)That Anita now have her turn.<br />From which pile should Anita draw in order to win?<br /><br />Ans.Pile II<br />8.Of Abdul, Binoy, and Chandini:<br /> a)Each member belongs to the Tee family whose members always tell the truth or to the El family whose members always lie.<br /> b)Abdul says ''Either I belong or Binoy belongs to a different family from the other two."<br /> Whose family do you name of?<br /><br />Ans.Binoy's family--El.<br />9.In a class composed of x girls and y boys what part of the class is composed of girls<br /><br />A.y/(x + y)<br />B.x/xy<br />C.x/(x + y)<br />D.y/xy<br /><br />Ans.C<br /><br /><br />10.What is the maximum number of half-pint bottles of cream that can be filled with a 4-gallon can of cream(2 pt.=1 qt. and 4 qt.=1 gal)<br /><br />A.16<br />B.24<br />C.30<br />D.64<br /><br />Ans.D<br /><br /><br />11.If the operation,^ is defined by the equation x ^ y = 2x + y,what is the value of a in 2 ^ a = a ^ 3<br /><br />A.0<br />B.1<br />C.-1<br />D.4<br /><br />Ans.B<br /><br /><br />12.A coffee shop blends 2 kinds of coffee,putting in 2 parts of a 33p. a gm. grade to 1 part of a 24p. a gm.If the mixture is changed to 1 part of the 33p. a gm. to 2 parts of the less expensive grade,how much will the shop save in blending 100 gms.<br /><br />A.Rs.90<br />B.Rs.1.00<br />C.Rs.3.00<br />D.Rs.8.00<br /><br />Ans.C<br /><br /><br />13.There are 200 questions on a 3 hr examination.Among these questions are 50 mathematics problems.It is suggested that twice as much time be spent on each maths problem as for each other question.How many minutes should be spent on mathematics problems<br /><br />A.36<br />B.72<br />C.60<br />D.100<br /><br />Ans.B<br /><br /><br /><br /><br /><br />14.In a group of 15,7 have studied Latin, 8 have studied Greek, and 3 have not studied either.How many of these studied both Latin and Greek<br /><br />A.0<br />B.3<br />C.4<br />D.5<br /><br />Ans.B<br /><br /><br />15.If 13 = 13w/(1-w) ,then (2w)2 =<br /><br />A.1/4<br />B.1/2<br />C.1<br />D.2<br /><br />Ans.C<br /><br /><br />16. If a and b are positive integers and (a-b)/3.5 = 4/7, then <br />(A) b < a<br />(B) b > a<br />(C) b = a<br />(D) b >= a<br />Ans. A<br /><br /><br />17. In june a baseball team that played 60 games had won 30% of its game played. After a phenomenal winning streak this team raised its average to 50% .How many games must the team have won in a row to attain this average?<br />A. 12<br />B. 20<br />C. 24<br />D. 30<br />Ans. C<br /><br /><br />18. M men agree to purchase a gift for Rs. D. If three men drop out how much more will each have to contribute towards the purchase of the gift/<br />A. D/(M-3)<br />B. MD/3<br />C. M/(D-3)<br />D. 3D/(M2-3M) <br />Ans. D<br /><br /><br />19. A company contracts to paint 3 houses. Mr.Brown can paint a house in 6 days while Mr.Black would take 8 days and Mr.Blue 12 days. After 8 days Mr.Brown goes on vacation and Mr. Black begins to work for a period of 6 days. How many days will it take Mr.Blue to complete the contract?<br />A. 7<br />B. 8<br />C. 11<br />D. 12<br /><br />Ans.C<br /><br />20. 2 hours after a freight train leaves Delhi a passenger train leaves the same station travelling in the same direction at an average speed of 16 km/hr. After travelling 4 hrs the passenger train overtakes the freight train. The average speed of the freight train was?<br />A. 30<br />B. 40<br />C.58<br />D. 60<br />Ans. B<br /><br />21. If 9x-3y=12 and 3x-5y=7 then 6x-2y = ?<br />A.-5<br />B. 4<br />C. 2<br />D. 8<br />Ans. D<br />22. There are 5 red shoes, 4 green shoes. If one draw randomly a shoe what is the probability of getting a red shoe <br /><br />Ans 5c1/ 9c1<br /><br /><br />23. What is the selling price of a car? If the cost of the car is Rs.60 and a profit of 10% over selling price is earned<br /><br />Ans: Rs 66/-<br /><br /><br /><br />24. 1/3 of girls , 1/2 of boys go to canteen .What factor and total number of classmates go to canteen. <br /><br />Ans: Cannot be determined.<br /><br /><br />25. The price of a product is reduced by 30% . By what percentage should it be increased to make it 100% <br /><br />Ans: 42.857%<br /><br /><br />26. There is a square of side 6cm . A circle is inscribed inside the square. Find the ratio of the area of circle to square. <br />Ans. 11/14 <br />27. There are two candles of equal lengths and of different thickness. The thicker one lasts of six hours. The thinner 2 hours less than the thicker one. Ramesh lights the two candles at the same time. When he went to bed he saw the thicker one is twice the length of the thinner one. How long ago did Ramesh light the two candles .<br /><br />Ans: 3 hours. <br />28. If M/N = 6/5,then 3M+2N = ? <br />29. If p/q = 5/4 , then 2p+q= ? <br />30. If PQRST is a parallelogram what it the ratio of triangle PQS & parallelogram PQRST .<br />Ans: 1:2 <br />31. The cost of an item is Rs 12.60. If the profit is 10% over selling price what is the selling price ?<br />Ans: Rs 13.86/- <br />32. There are 6 red shoes & 4 green shoes . If two of red shoes are drawn what is the probability of getting red shoes <br />Ans: 6c2/10c2<br />33. To 15 lts of water containing 20% alcohol, we add 5 lts of pure water. What is % alcohol. <br />Ans : 15% <br />34. A worker is paid Rs.20/- for a full days work. He works 1,1/3,2/3,1/8.3/4 days in a week. What is the total amount paid for that worker ?<br />Ans : 57.50 <br />35. If the value of x lies between 0 & 1 which of the following is the largest? <br />(a) x <br />(b) x2<br />(c) -x<br />(d) 1/x<br /><br />Ans : (d) <br /> 36. If the total distance of a journey is 120 km .If one goes by 60 kmph and comes back at 40kmph what is the average speed during the journey? <br />Ans: 48kmph<br />37. A school has 30% students from Maharashtra .Out of these 20% are Bombey students. Find the total percentage of Bombay?<br />Ans: 6%<br />38. An equilateral triangle of sides 3 inch each is given. How many equilateral triangles of side 1 inch can be formed from it?<br />Ans: 9<br />39. If A/B = 3/5,then 15A = ?<br />Ans : 9B<br />40. Each side of a rectangle is increased by 100% .By what percentage does the area increase?<br />Ans : 300%<br />41. Perimeter of the back wheel = 9 feet, front wheel = 7 feet on a certain distance, the front wheel gets 10 revolutions more than the back wheel .What is the distance?<br />Ans : 315 feet.<br />42. Perimeter of front wheel =30, back wheel = 20. If front wheel revolves 240 times. How many revolutions will the back wheel take?<br />Ans: 360 times<br />43. 20% of a 6 litre solution and 60% of 4 litre solution are mixed. What percentage of the mixture of solution<br />Ans: 36%<br />44City A's population is 68000, decreasing at a rate of 80 people per year. City B having population 42000 is increasing at a rate of 120 people per year. In how many years both the cities will have same population?<br />Ans: 130 years<br />45Two cars are 15 kms apart. One is turning at a speed of 50kmph and the other at 40kmph . How much time will it take for the two cars to meet?<br />Ans: 3/2 hours<br />46A person wants to buy 3 paise and 5 paise stamps costing exactly one rupee. If he buys which of the following number of stamps he won't able to buy 3 paise stamps.<br />Ans: 9<br />47There are 12 boys and 15 girls, How many different dancing groups can be formed with 2 boys and 3 girls.<br />48Which of the following fractions is less than 1/3<br />(a) 22/62 <br />(b) 15/46<br />(c) 2/3<br />(d) 1<br />Ans: (b)<br />49There are two circles, one circle is inscribed and another circle is circumscribed over a square. What is the ratio of area of inner to outer circle?<br />Ans: 1 : 2<br />50Three types of tea the a,b,c costs Rs. 95/kg,100/kg and70/kg respectively.<br /> How many kgs of each should be blended to produce 100 kg of mixture worth Rs.90/kg,<br /> given that the quntities of band c are equal<br />a)70,15,15 <br />b)50,25,25 <br />c)60,20,20 <br />d)40,30,30 <br />Ans. (b)<br />51. in a class, except 18 all are above 50 years.<br /> 15 are below 50 years of age. How many people are there<br />(a) 30 <br />(b) 33 <br />(c) 36 <br />(d) none of these.<br />Ans. (d)<br />52. If a boat is moving in upstream with velocity of 14 km/hr and goes downstream with a velocity of 40 km/hr, then what is the speed of the stream ?<br /><br />(a) 13 km/hr<br />(b) 26 km/hr<br />(c) 34 km/hr<br />(d) none of these<br />Ans. A<br />53. Find the value of ( 0.75 * 0.75 * 0.75 - 0.001 ) / ( 0.75 * 0.75 - 0.075 + 0.01)<br /><br />(a) 0.845<br />(b) 1.908<br />(c) 2.312<br />(d) 0.001<br />Ans. A<br />54. A can have a piece of work done in 8 days, B can work three times faster than the A, C can work five times faster than A. How many days will they take to do the work together ?<br /><br />(a) 3 days<br />(b) 8/9 days<br />(c) 4 days<br />(d) can't say<br />Ans. B<br />55. A car travels a certain distance taking 7 hrs in forward journey, during the return journey increased speed 12km/hr takes the times 5 hrs.What is the distance travelled<br /><br />(a) 210 kms<br />(b) 30 kms<br />(c) 20 kms<br />(c) none of these<br />Ans. B<br />56. Instead of multiplying a number by 7, the number is divided by 7. What is the percentage of error obtained ?<br />57. Find (7x + 4y ) / (x-2y) if x/2y = 3/2 ?<br /><br />(a) 6<br />(b) 8<br />(c) 7<br />(d) data insufficient<br />Ans. C<br />58. A man buys 12 lts of liquid which contains 20% of the liquid and the rest is water. He then mixes it with 10 lts of another mixture with 30% of liquid.What is the % of water in the new mixture?<br />59. If a man buys 1 lt of milk for Rs.12 and mixes it with 20% water and sells it for Rs.15, then what is the percentage of gain?<br />60. Pipe A can fill a tank in 30 mins and Pipe B can fill it in 28 mins.If 3/4th of the tank is filled by Pipe B alone and both are opened, how much time is required by both the pipes to fill the tank completely ?<br />61. If on an item a company gives 25% discount, they earn 25% profit. If they now give 10% discount then what is the profit percentage.<br />(a) 40%<br />(b) 55%<br />(c) 35%<br />(d) 30%<br />Ans. D<br />62. A certain number of men can finish a piece of work in 10 days. If however there were 10 men less it will take 10 days more for the work to be finished. How many men were there originally?<br /><br />(a) 110 men<br />(b) 130 men<br />(c) 100 men<br />(d) none of these<br />Ans. A<br />63. In simple interest what sum amounts of Rs.1120/- in 4 years and Rs.1200/- in 5 years ?<br />(a) Rs. 500<br />(b) Rs. 600<br />(c) Rs. 800<br />(d) Rs. 900<br />Ans. C<br />64. If a sum of money compound annually amounts of thrice itself in 3 years. In how many years <br />will it become 9 times itself.<br /><br />(a) 6<br />(b) 8<br />(c) 10<br />(d) 12<br />Ans A<br />65. Two trains move in the same direction at 50 kmph and 32 kmph respectively. A man in the slower train <br />observes the 15 seconds elapse before the faster train completely passes by him.<br />What is the length of faster train ?<br /><br />(a) 100m<br />(b) 75m<br />(c) 120m<br />(d) 50m<br />Ans B<br />66. How many mashes are there in 1 squrare meter of wire gauge if each mesh<br />is 8mm long and 5mm wide ?<br /><br />(a) 2500<br />(b) 25000<br />(c) 250<br />(d) 250000<br />Ans B<br />67. x% of y is y% of ?<br />(a) x/y<br />(b) 2y<br />(c) x<br />(d) can't be determined<br />Ans. C<br />68. The price of sugar increases by 20%, by what % should a housewife reduce the consumption of sugar so that expenditure on sugar can be same as before ?<br />(a) 15%<br />(b) 16.66%<br />(c) 12%<br />(d) 9%<br />Ans B<br />69. A man spends half of his salary on household expenses, 1/4th for rent, 1/5th for travel expenses, the man deposits the rest in a bank. If his monthly deposits in the bank amount 50, what is his monthly salary ?<br />(a) Rs.500<br />(b) Rs.1500<br />(c) Rs.1000<br />(d) Rs. 900<br />Ans C<br />70. The population of a city increases @ 4% p.a. There is an additional annual increase of 4% of the population due to the influx of job seekers, find the % increase in population after 2 years ? <br />71. The ratio of the number of boys and girls in a school is 3:2 Out of these 10% the boys and 25% of girls are scholarship holders. % of students who are not scholarship holders.?<br />72. 15 men take 21 days of 8 hrs. each to do a piece of work. How many days of 6 hrs. each would it take for 21 women if 3 women do as much work as 2 men?<br />(a) 30<br />(b) 20<br />(c) 19<br />(d) 29<br />Ans. A<br />73. A cylinder is 6 cms in diameter and 6 cms in height. If spheres of the same size are made from the material obtained, what is the diameter of each sphere?<br />(a) 5 cms<br />(b) 2 cms<br />(c) 3 cms<br />(d) 4 cms<br />Ans C<br />74. A rectangular plank (2)1/2 meters wide can be placed so that it is on either side of the diagonal of a square shown below.(Figure is not available)What is the area of the plank?<br />Ans :7*(2)1/2<br />75. The difference b/w the compound interest payble half yearly and the simple interest on a <br />certain sum lent out at 10% p.a for 1 year is Rs 25. What is the sum?<br />(a) Rs. 15000<br />(b) Rs. 12000<br />(c) Rs. 10000<br />(d) none of these<br />Ans C<br />76. What is the smallest number by which 2880 must be divided in order to make it into a <br />perfect square ?<br /><br />(a) 3<br />(b) 4<br />(c) 5 <br />(d) 6 <br />Ans. C<br />77. A father is 30 years older than his son however he will be only thrice as old as the son after 5 years<br />what is father's present age ?<br /><br />(a) 40 yrs<br />(b) 30 yrs<br />(c) 50 yrs<br />(d) none of these<br />Ans. A<br />78. An article sold at a profit of 20% if both the cost price and selling price would be Rs.20/- the profit would be 10% more. What is the cost price of that article?<br />29. If an item costs Rs.3 in '99 and Rs.203 in '00.What is the % increase in price?<br /><br />(a) 200/3 %<br />(b) 200/6 %<br />(c) 100%<br />(d) none of these<br />Ans. A<br />80. 5 men or 8 women do equal amount of work in a day. a job requires 3 men and 5 women to finish the job in 10 days how many woman are required to finish the job in 14 days.<br /><br />a) 10<br />b) 7 <br />c) 6 <br />d) 12<br />Ans 7<br />81. A simple interest amount of rs 5000 for six month is rs 200. what is the anual rate of interest?<br /><br />a) 10%<br />b) 6% <br />c) 8%<br />d) 9% <br />Ans 8%<br />82. In objective test a correct ans score 4 marks and on a wrong ans 2 marks are ---. a student score 480 marks from 150 question. how many ans were correct?<br />a) 120<br />b) 130<br />c) 110<br />d) 150<br />Ans130.<br />83. An artical sold at amount of 50% the net sale price is rs 425 .what is the list price of the artical?<br /><br />a) 500<br />b) 488<br />c) 480 <br />d) 510 <br />Ans 500<br />84. A man leaves office daily at 7pm A driver with car comes from his home to pick him from office and bring back home <br /> One day he gets free at 5:30 and instead of waiting for driver he starts walking towards home.<br /> In the way he meets the car and returns home on car He reaches home 20 minutes earlier than usual.<br /> In how much time does the man reach home usually??<br />Ans. 1hr 20min<br />85. A works thrice as much as B. If A takes 60 days less than B to do a work then find the number of days it would take to complete the work if both work together?<br />Ans. 22½days<br />86. How many 1's are there in the binary form of 8*1024 + 3*64 + 3<br />Ans. 4<br />87. In a digital circuit which was to implement (A B) + (A)XOR(B), the designer implements (A B) (A)XOR(B) <br /> What is the probability of error in it ?<br />88. A boy has Rs 2. He wins or loses Re 1 at a time If he wins he gets Re 1 and if he loses the game he loses Re 1.<br /> He can loose only 5 times. He is out of the game if he earns Rs 5.<br /> Find the number of ways in which this is possible?<br />Ans. 16<br />89. If there are 1024*1280 pixels on a screen and each pixel can have around 16 million colors<br /> Find the memory required for this?<br />Ans. 4MB<br />90. On a particular day A and B decide that they would either speak the truth or will lie. <br /> C asks A whether he is speaking truth or lying?<br /> He answers and B listens to what he said. C then asks B what A has said B says "A says that he is a liar" <br /> What is B speaking ?<br />(a) Truth<br />(b) Lie<br />(c) Truth when A lies<br />(d) Cannot be determined<br />Ans. (b)<br />91. What is the angle between the two hands of a clock when time is 8:30<br />Ans. 75(approx)<br />92. A student is ranked 13th from right and 8th from left. How many students are there in totality ?<br />93. A man walks east and turns right and then from there to his left and then 45degrees to<br /> his right.In which direction did he go<br /><br />Ans. North west<br />94. A student gets 70% in one subject, 80% in the other. To get an overall of 75% how much should get in third subject.<br />95. A man shows his friend a woman sitting in a park and says that she the daughter of my grandmother's only son.<br /> What is the relation between the two<br /><br />Ans. Daughter<br /><br />96. How many squares with sides 1/2 inch long are needed to cover a rectangle that is 4 ft long and 6 ft wide<br />(a) 24<br />(b) 96<br />(c) 3456<br />(d) 13824<br />(e) 14266<br />97. If a=2/3b , b=2/3c, and c=2/3d what part of d is b/<br />(a) 8/27<br />(b) 4/9<br />(c) 2/3<br />(d) 75%<br />(e) 4/3<br />Ans. (b)<br />2598Successive discounts of 20% and 15% are equal to a single discount of <br />(a) 30%<br />(b) 32% <br />(c) 34% <br />(d) 35% <br />(e) 36<br />Ans. (b)<br />99. The petrol tank of an automobile can hold g liters.If a liters was removed when the tank was full, what part of the full tank was removed?<br />(a)g-a<br />(b)g/a<br />(c) a/g<br />(d) (g-a)/a<br />(e) (g-a)/g<br />Ans. (c)<br />100. If x/y=4 and y is not '0' what % of x is 2x-y<br /><br />(a)150%<br />(b)175%<br />(c)200%<br />(d)250%<br /><br />Ans. (b)pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-29737489283942196322007-12-10T21:31:00.000-08:002007-12-10T21:32:05.383-08:00UNIX ConceptsSECTION - I <br />FILE MANAGEMENT IN UNIX<br /><br />1. How are devices represented in UNIX?<br />All devices are represented by files called special files that are located in/dev directory. Thus, device files and other files are named and accessed in the same way. A 'regular file' is just an ordinary data file in the disk. A 'block special file' represents a device with characteristics similar to a disk (data transfer in terms of blocks). A 'character special file' represents a device with characteristics similar to a keyboard (data transfer is by stream of bits in sequential order).<br /><br />2. What is 'inode'?<br />All UNIX files have its description stored in a structure called 'inode'. The inode contains info about the file-size, its location, time of last access, time of last modification, permission and so on. Directories are also represented as files and have an associated inode. In addition to descriptions about the file, the inode contains pointers to the data blocks of the file. If the file is large, inode has indirect pointer to a block of pointers to additional data blocks (this further aggregates for larger files). A block is typically 8k.<br />Inode consists of the following fields:<br /> File owner identifier<br /> File type<br /> File access permissions<br /> File access times<br /> Number of links<br /> File size<br /> Location of the file data<br /><br />3. Brief about the directory representation in UNIX<br />A Unix directory is a file containing a correspondence between filenames and inodes. A directory is a special file that the kernel maintains. Only kernel modifies directories, but processes can read directories. The contents of a directory are a list of filename and inode number pairs. When new directories are created, kernel makes two entries named '.' (refers to the directory itself) and '..' (refers to parent directory).<br />System call for creating directory is mkdir (pathname, mode).<br /><br />4. What are the Unix system calls for I/O?<br /> open(pathname,flag,mode) - open file<br /> creat(pathname,mode) - create file<br /> close(filedes) - close an open file<br /> read(filedes,buffer,bytes) - read data from an open file<br /> write(filedes,buffer,bytes) - write data to an open file<br /> lseek(filedes,offset,from) - position an open file<br /> dup(filedes) - duplicate an existing file descriptor<br /> dup2(oldfd,newfd) - duplicate to a desired file descriptor<br /> fcntl(filedes,cmd,arg) - change properties of an open file<br /> ioctl(filedes,request,arg) - change the behaviour of an open file<br />The difference between fcntl anf ioctl is that the former is intended for any open file, while the latter is for device-specific operations.<br /><br />5. How do you change File Access Permissions?<br />Every file has following attributes:<br /> owner's user ID ( 16 bit integer )<br /> owner's group ID ( 16 bit integer )<br /> File access mode word <br />'r w x -r w x- r w x' <br />(user permission-group permission-others permission)<br />r-read, w-write, x-execute<br />To change the access mode, we use chmod(filename,mode). <br />Example 1: <br />To change mode of myfile to 'rw-rw-r--' (ie. read, write permission for user - read,write permission for group - only read permission for others) we give the args as:<br />chmod(myfile,0664) .<br />Each operation is represented by discrete values <br />'r' is 4 <br />'w' is 2 <br />'x' is 1<br />Therefore, for 'rw' the value is 6(4+2).<br />Example 2: <br />To change mode of myfile to 'rwxr--r--' we give the args as:<br />chmod(myfile,0744).<br /><br />6. What are links and symbolic links in UNIX file system?<br />A link is a second name (not a file) for a file. Links can be used to assign more than one name to a file, but cannot be used to assign a directory more than one name or link filenames on different computers.<br />Symbolic link 'is' a file that only contains the name of another file.Operation on the symbolic link is directed to the file pointed by the it.Both the limitations of links are eliminated in symbolic links. <br />Commands for linking files are:<br />Link ln filename1 filename2 <br />Symbolic link ln -s filename1 filename2 <br /><br />7. What is a FIFO?<br />FIFO are otherwise called as 'named pipes'. FIFO (first-in-first-out) is a special file which is said to be data transient. Once data is read from named pipe, it cannot be read again. Also, data can be read only in the order written. It is used in interprocess communication where a process writes to one end of the pipe (producer) and the other reads from the other end (consumer).<br /><br />8. How do you create special files like named pipes and device files?<br />The system call mknod creates special files in the following sequence.<br />1. kernel assigns new inode, <br />2. sets the file type to indicate that the file is a pipe, directory or special file,<br />3. If it is a device file, it makes the other entries like major, minor device numbers.<br />For example: <br />If the device is a disk, major device number refers to the disk controller and minor device number is the disk.<br /> <br />9. Discuss the mount and unmount system calls<br />The privileged mount system call is used to attach a file system to a directory of another file system; the unmount system call detaches a file system. When you mount another file system on to your directory, you are essentially splicing one directory tree onto a branch in another directory tree. The first argument to mount call is the mount point, that is , a directory in the current file naming system. The second argument is the file system to mount to that point. When you insert a cdrom to your unix system's drive, the file system in the cdrom automatically mounts to /dev/cdrom in your system.<br /><br />10. How does the inode map to data block of a file?<br />Inode has 13 block addresses. The first 10 are direct block addresses of the first 10 data blocks in the file. The 11th address points to a one-level index block. The 12th address points to a two-level (double in-direction) index block. The 13th address points to a three-level(triple in-direction)index block. This provides a very large maximum file size with efficient access to large files, but also small files are accessed directly in one disk read.<br /><br />11. What is a shell?<br />A shell is an interactive user interface to an operating system services that allows an user to enter commands as character strings or through a graphical user interface. The shell converts them to system calls to the OS or forks off a process to execute the command. System call results and other information from the OS are presented to the user through an interactive interface. Commonly used shells are sh,csh,ks etc. <br /><br />SECTION - II <br /> PROCESS MODEL and IPC <br /><br />1. Brief about the initial process sequence while the system boots up. <br />While booting, special process called the 'swapper' or 'scheduler' is created with Process-ID 0. The swapper manages memory allocation for processes and influences CPU allocation. The swapper inturn creates 3 children: <br /> the process dispatcher,<br /> vhand and <br /> dbflush <br />with IDs 1,2 and 3 respectively. <br />This is done by executing the file /etc/init. Process dispatcher gives birth to the shell. Unix keeps track of all the processes in an internal data structure called the Process Table (listing command is ps -el).<br /><br />2. What are various IDs associated with a process?<br />Unix identifies each process with a unique integer called ProcessID. The process that executes the request for creation of a process is called the 'parent process' whose PID is 'Parent Process ID'. Every process is associated with a particular user called the 'owner' who has privileges over the process. The identification for the user is 'UserID'. Owner is the user who executes the process. Process also has 'Effective User ID' which determines the access privileges for accessing resources like files.<br />getpid() -process id<br />getppid() -parent process id<br />getuid() -user id<br />geteuid() -effective user id<br /><br />3. Explain fork() system call.<br />The `fork()' used to create a new process from an existing process. The new process is called the child process, and the existing process is called the parent. We can tell which is which by checking the return value from `fork()'. The parent gets the child's pid returned to him, but the child gets 0 returned to him.<br /><br />4. Predict the output of the following program code<br />main()<br />{<br /> fork();<br />printf("Hello World!");<br />}<br />Answer: <br />Hello World!Hello World!<br />Explanation:<br />The fork creates a child that is a duplicate of the parent process. The child begins from the fork().All the statements after the call to fork() will be executed twice.(once by the parent process and other by child). The statement before fork() is executed only by the parent process.<br /><br />5. Predict the output of the following program code<br />main()<br />{<br />fork(); fork(); fork();<br />printf("Hello World!");<br />}<br />Answer: <br />"Hello World" will be printed 8 times.<br />Explanation:<br /> 2^n times where n is the number of calls to fork()<br /><br />6. List the system calls used for process management:<br />System calls Description<br />fork() To create a new process<br />exec() To execute a new program in a process<br />wait() To wait until a created process completes its execution<br />exit() To exit from a process execution<br />getpid() To get a process identifier of the current process<br />getppid() To get parent process identifier<br />nice() To bias the existing priority of a process<br />brk() To increase/decrease the data segment size of a process<br /><br />7. How can you get/set an environment variable from a program?<br />Getting the value of an environment variable is done by using `getenv()'.<br />Setting the value of an environment variable is done by using `putenv()'.<br /><br />8. How can a parent and child process communicate?<br />A parent and child can communicate through any of the normal inter-process communication schemes (pipes, sockets, message queues, shared memory), but also have some special ways to communicate that take advantage of their relationship as a parent and child. One of the most obvious is that the parent can get the exit status of the child.<br /><br />9. What is a zombie?<br />When a program forks and the child finishes before the parent, the kernel still keeps some of its information about the child in case the parent might need it - for example, the parent may need to check the child's exit status. To be able to get this information, the parent calls `wait()'; In the interval between the child terminating and the parent calling `wait()', the child is said to be a `zombie' (If you do `ps', the child will have a `Z' in its status field to indicate this.) <br /><br />10. What are the process states in Unix?<br />As a process executes it changes state according to its circumstances. Unix processes have the following states: <br />Running : The process is either running or it is ready to run . <br />Waiting : The process is waiting for an event or for a resource. <br />Stopped : The process has been stopped, usually by receiving a signal. <br />Zombie : The process is dead but have not been removed from the process table.<br /><br />11. What Happens when you execute a program? <br />When you execute a program on your UNIX system, the system creates a special environment for that program. This environment contains everything needed for the system to run the program as if no other program were running on the system. Each process has process context, which is everything that is unique about the state of the program you are currently running. Every time you execute a program the UNIX system does a fork, which performs a series of operations to create a process context and then execute your program in that context. The steps include the following: <br /> Allocate a slot in the process table, a list of currently running programs kept by UNIX. <br /> Assign a unique process identifier (PID) to the process.<br /> iCopy the context of the parent, the process that requested the spawning of the new process. <br /> Return the new PID to the parent process. This enables the parent process to examine or control the process directly. <br />After the fork is complete, UNIX runs your program. <br /><br />12. What Happens when you execute a command? <br />When you enter 'ls' command to look at the contents of your current working directory, UNIX does a series of things to create an environment for ls and the run it: The shell has UNIX perform a fork. This creates a new process that the shell will use to run the ls program. The shell has UNIX perform an exec of the ls program. This replaces the shell program and data with the program and data for ls and then starts running that new program. The ls program is loaded into the new process context, replacing the text and data of the shell. The ls program performs its task, listing the contents of the current directory. <br /><br />13. What is a Daemon?<br />A daemon is a process that detaches itself from the terminal and runs, disconnected, in the background, waiting for requests and responding to them. It can also be defined as the background process that does not belong to a terminal session. Many system functions are commonly performed by daemons, including the sendmail daemon, which handles mail, and the NNTP daemon, which handles USENET news. Many other daemons may exist. Some of the most common daemons are:<br /> init: Takes over the basic running of the system when the kernel has finished the boot process. <br /> inetd: Responsible for starting network services that do not have their own stand-alone daemons. For example, inetd usually takes care of incoming rlogin, telnet, and ftp connections.<br /> cron: Responsible for running repetitive tasks on a regular schedule. <br /><br />14. What is 'ps' command for?<br />The ps command prints the process status for some or all of the running processes. The information given are the process identification number (PID),the amount of time that the process has taken to execute so far etc.<br /><br />15. How would you kill a process?<br />The kill command takes the PID as one argument; this identifies which process to terminate. The PID of a process can be got using 'ps' command.<br /><br />16. What is an advantage of executing a process in background?<br />The most common reason to put a process in the background is to allow you to do something else interactively without waiting for the process to complete. At the end of the command you add the special background symbol, &. This symbol tells your shell to execute the given command in the background.<br />Example: cp *.* ../backup& (cp is for copy) <br /><br />17. How do you execute one program from within another?<br />The system calls used for low-level process creation are execlp() and execvp(). The execlp call overlays the existing program with the new one , runs that and exits. The original program gets back control only when an error occurs.<br />execlp(path,file_name,arguments..); //last argument must be NULL<br />A variant of execlp called execvp is used when the number of arguments is not known in advance.<br />execvp(path,argument_array); //argument array should be terminated by NULL<br /><br />18. What is IPC? What are the various schemes available? <br />The term IPC (Inter-Process Communication) describes various ways by which different process running on some operating system communicate between each other. Various schemes available are as follows:<br />Pipes: <br />One-way communication scheme through which different process can communicate. The problem is that the two processes should have a common ancestor (parent-child relationship). However this problem was fixed with the introduction of named-pipes (FIFO).<br /><br />Message Queues :<br />Message queues can be used between related and unrelated processes running on a machine. <br /><br />Shared Memory:<br />This is the fastest of all IPC schemes. The memory to be shared is mapped into the address space of the processes (that are sharing). The speed achieved is attributed to the fact that there is no kernel involvement. But this scheme needs synchronization. <br /><br /> Various forms of synchronisation are mutexes, condition-variables, read-write locks, record-locks, and semaphores.<br /><br />SECTION - III <br /> MEMORY MANAGEMENT<br /><br />1. What is the difference between Swapping and Paging?<br />Swapping: <br />Whole process is moved from the swap device to the main memory for execution. Process size must be less than or equal to the available main memory. It is easier to implementation and overhead to the system. Swapping systems does not handle the memory more flexibly as compared to the paging systems.<br /> Paging: <br />Only the required memory pages are moved to main memory from the swap device for execution. Process size does not matter. Gives the concept of the virtual memory.<br />It provides greater flexibility in mapping the virtual address space into the physical memory of the machine. Allows more number of processes to fit in the main memory simultaneously. Allows the greater process size than the available physical memory. Demand paging systems handle the memory more flexibly.<br /><br />2. What is major difference between the Historic Unix and the new BSD release of Unix System V in terms of Memory Management?<br />Historic Unix uses Swapping – entire process is transferred to the main memory from the swap device, whereas the Unix System V uses Demand Paging – only the part of the process is moved to the main memory. Historic Unix uses one Swap Device and Unix System V allow multiple Swap Devices.<br /><br />3. What is the main goal of the Memory Management?<br /> It decides which process should reside in the main memory,<br /> Manages the parts of the virtual address space of a process which is non-core resident,<br /> Monitors the available main memory and periodically write the processes into the swap device to provide more processes fit in the main memory simultaneously.<br /><br />4. What is a Map?<br />A Map is an Array, which contains the addresses of the free space in the swap device that are allocatable resources, and the number of the resource units available there. <br /><br /><br /><br /><br /><br />This allows First-Fit allocation of contiguous blocks of a resource. Initially the Map contains one entry – address (block offset from the starting of the swap area) and the total number of resources.<br /> Kernel treats each unit of Map as a group of disk blocks. On the allocation and freeing of the resources Kernel updates the Map for accurate information.<br /><br />5. What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?<br />Kernel follows Round Robin scheme choosing a swap device among the multiple swap devices in Unix System V.<br /><br />6. What is a Region?<br />A Region is a continuous area of a process’s address space (such as text, data and stack). The kernel in a ‘Region Table’ that is local to the process maintains region. Regions are sharable among the process.<br /><br />7. What are the events done by the Kernel after a process is being swapped out from the main memory?<br />When Kernel swaps the process out of the primary memory, it performs the following:<br /> Kernel decrements the Reference Count of each region of the process. If the reference count becomes zero, swaps the region out of the main memory,<br /> Kernel allocates the space for the swapping process in the swap device,<br /> Kernel locks the other swapping process while the current swapping operation is going on,<br /> The Kernel saves the swap address of the region in the region table.<br /><br />8. Is the Process before and after the swap are the same? Give reason.<br />Process before swapping is residing in the primary memory in its original form. The regions (text, data and stack) may not be occupied fully by the process, there may be few empty slots in any of the regions and while swapping Kernel do not bother about the empty slots while swapping the process out.<br /> After swapping the process resides in the swap (secondary memory) device. The regions swapped out will be present but only the occupied region slots but not the empty slots that were present before assigning.<br />While swapping the process once again into the main memory, the Kernel referring to the Process Memory Map, it assigns the main memory accordingly taking care of the empty slots in the regions.<br /><br />9. What do you mean by u-area (user area) or u-block?<br />This contains the private data that is manipulated only by the Kernel. This is local to the Process, i.e. each process is allocated a u-area.<br /><br />10. What are the entities that are swapped out of the main memory while swapping the process out of the main memory?<br />All memory space occupied by the process, process’s u-area, and Kernel stack are swapped out, theoretically.<br />Practically, if the process’s u-area contains the Address Translation Tables for the process then Kernel implementations do not swap the u-area.<br /><br />11. What is Fork swap?<br /> fork() is a system call to create a child process. When the parent process calls fork() system call, the child process is created and if there is short of memory then the child process is sent to the read-to-run state in the swap device, and return to the user state without swapping the parent process. When the memory will be available the child process will be swapped into the main memory.<br /><br />12. What is Expansion swap?<br /> At the time when any process requires more memory than it is currently allocated, the Kernel performs Expansion swap. To do this Kernel reserves enough space in the swap device. Then the address translation mapping is adjusted for the new virtual address space but the physical memory is not allocated. At last Kernel swaps the process into the assigned space in the swap device. Later when the Kernel swaps the process into the main memory this assigns memory according to the new address translation mapping.<br /><br />13. How the Swapper works?<br /> The swapper is the only process that swaps the processes. The Swapper operates only in the Kernel mode and it does not uses System calls instead it uses internal Kernel functions for swapping. It is the archetype of all kernel process.<br /><br />14. What are the processes that are not bothered by the swapper? Give Reason.<br /> Zombie process: They do not take any up physical memory.<br /> Processes locked in memories that are updating the region of the process.<br /> Kernel swaps only the sleeping processes rather than the ‘ready-to-run’ processes, as they have the higher probability of being scheduled than the Sleeping processes.<br /><br />15. What are the requirements for a swapper to work?<br /> The swapper works on the highest scheduling priority. Firstly it will look for any sleeping process, if not found then it will look for the ready-to-run process for swapping. But the major requirement for the swapper to work the ready-to-run process must be core-resident for at least 2 seconds before swapping out. And for swapping in the process must have been resided in the swap device for at least 2 seconds. If the requirement is not satisfied then the swapper will go into the wait state on that event and it is awaken once in a second by the Kernel.<br /><br />16. What are the criteria for choosing a process for swapping into memory from the swap device? <br /> The resident time of the processes in the swap device, the priority of the processes and the amount of time the processes had been swapped out.<br /><br />17. What are the criteria for choosing a process for swapping out of the memory to the swap device?<br /> The process’s memory resident time,<br /> Priority of the process and <br /> The nice value.<br /><br />18. What do you mean by nice value?<br /> Nice value is the value that controls {increments or decrements} the priority of the process. This value that is returned by the nice () system call. The equation for using nice value is: <br />Priority = (“recent CPU usage”/constant) + (base- priority) + (nice value)<br />Only the administrator can supply the nice value. The nice () system call works for the running process only. Nice value of one process cannot affect the nice value of the other process.<br /><br />19. What are conditions on which deadlock can occur while swapping the processes?<br /> All processes in the main memory are asleep.<br /> All ‘ready-to-run’ processes are swapped out.<br /> There is no space in the swap device for the new incoming process that are swapped out of the main memory.<br /> There is no space in the main memory for the new incoming process.<br /><br />20. What are conditions for a machine to support Demand Paging?<br /> Memory architecture must based on Pages, <br /> The machine must support the ‘restartable’ instructions.<br /><br />21. What is ‘the principle of locality’?<br />It’s the nature of the processes that they refer only to the small subset of the total data space of the process. i.e. the process frequently calls the same subroutines or executes the loop instructions.<br /><br />22. What is the working set of a process?<br />The set of pages that are referred by the process in the last ‘n’, references, where ‘n’ is called the window of the working set of the process.<br /><br />23. What is the window of the working set of a process?<br />The window of the working set of a process is the total number in which the process had referred the set of pages in the working set of the process.<br /><br />24. What is called a page fault?<br />Page fault is referred to the situation when the process addresses a page in the working set of the process but the process fails to locate the page in the working set. And on a page fault the kernel updates the working set by reading the page from the secondary device.<br /><br />25. What are data structures that are used for Demand Paging?<br /> Kernel contains 4 data structures for Demand paging. They are,<br /> Page table entries,<br /> Disk block descriptors,<br /> Page frame data table (pfdata),<br /> Swap-use table.<br /> <br />26. What are the bits that support the demand paging?<br />Valid, Reference, Modify, Copy on write, Age. These bits are the part of the page table entry, which includes physical address of the page and protection bits.<br /><br />Page address<br /> Age Copy on write Modify Reference Valid Protection<br /><br />27. How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?<br /> Kernel in traditional Unix, makes the duplicate copy of the parent’s address space and attaches it to the child’s process, while swapping. Kernel in System V Unix, manipulates the region tables, page table, and pfdata table entries, by incrementing the reference count of the region table of shared regions.<br /><br />28. Difference between the fork() and vfork() system call?<br /> During the fork() system call the Kernel makes a copy of the parent process’s address space and attaches it to the child process.<br /> But the vfork() system call do not makes any copy of the parent’s address space, so it is faster than the fork() system call. The child process as a result of the vfork() system call executes exec() system call. The child process from vfork() system call executes in the parent’s address space (this can overwrite the parent’s data and stack ) which suspends the parent process until the child process exits.<br /><br />29. What is BSS(Block Started by Symbol)?<br /> A data representation at the machine level, that has initial values when a program starts and tells about how much space the kernel allocates for the un-initialized data. Kernel initializes it to zero at run-time.<br /><br />30. What is Page-Stealer process?<br /> This is the Kernel process that makes rooms for the incoming pages, by swapping the memory pages that are not the part of the working set of a process. Page-Stealer is created by the Kernel at the system initialization and invokes it throughout the lifetime of the system. Kernel locks a region when a process faults on a page in the region, so that page stealer cannot steal the page, which is being faulted in.<br /><br />31. Name two paging states for a page in memory?<br />The two paging states are:<br /> The page is aging and is not yet eligible for swapping,<br /> The page is eligible for swapping but not yet eligible for reassignment to other virtual address space.<br /><br />32. What are the phases of swapping a page from the memory?<br /> Page stealer finds the page eligible for swapping and places the page number in the list of pages to be swapped.<br /> Kernel copies the page to a swap device when necessary and clears the valid bit in the page table entry, decrements the pfdata reference count, and places the pfdata table entry at the end of the free list if its reference count is 0.<br /><br />33. What is page fault? Its types?<br /> Page fault refers to the situation of not having a page in the main memory when any process references it.<br />There are two types of page fault :<br /> Validity fault, <br /> Protection fault.<br /><br />34. In what way the Fault Handlers and the Interrupt handlers are different?<br /> Fault handlers are also an interrupt handler with an exception that the interrupt handlers cannot sleep. Fault handlers sleep in the context of the process that caused the memory fault. The fault refers to the running process and no arbitrary processes are put to sleep.<br /><br />35. What is validity fault?<br />If a process referring a page in the main memory whose valid bit is not set, it results in validity fault.<br /> The valid bit is not set for those pages:<br /> that are outside the virtual address space of a process,<br /> that are the part of the virtual address space of the process but no physical address is assigned to it.<br /><br />36. What does the swapping system do if it identifies the illegal page for swapping?<br />If the disk block descriptor does not contain any record of the faulted page, then this causes the attempted memory reference is invalid and the kernel sends a “Segmentation violation” signal to the offending process. This happens when the swapping system identifies any invalid memory reference.<br /><br />37. What are states that the page can be in, after causing a page fault?<br /> On a swap device and not in memory,<br /> On the free page list in the main memory,<br /> In an executable file,<br /> Marked “demand zero”,<br /> Marked “demand fill”. <br /><br />38. In what way the validity fault handler concludes?<br /> It sets the valid bit of the page by clearing the modify bit.<br /> It recalculates the process priority.<br /><br />39. At what mode the fault handler executes?<br /> At the Kernel Mode.<br /><br />40. What do you mean by the protection fault?<br /> Protection fault refers to the process accessing the pages, which do not have the access permission. A process also incur the protection fault when it attempts to write a page whose copy on write bit was set during the fork() system call.<br /><br />41. How the Kernel handles the copy on write bit of a page, when the bit is set?<br /> In situations like, where the copy on write bit of a page is set and that page is shared by more than one process, the Kernel allocates new page and copies the content to the new page and the other processes retain their references to the old page. After copying the Kernel updates the page table entry with the new page number. Then Kernel decrements the reference count of the old pfdata table entry.<br /> In cases like, where the copy on write bit is set and no processes are sharing the page, the Kernel allows the physical page to be reused by the processes. By doing so, it clears the copy on write bit and disassociates the page from its disk copy (if one exists), because other process may share the disk copy. Then it removes the pfdata table entry from the page-queue as the new copy of the virtual page is not on the swap device. It decrements the swap-use count for the page and if count drops to 0, frees the swap space.<br /><br />42. For which kind of fault the page is checked first?<br /> The page is first checked for the validity fault, as soon as it is found that the page is invalid (valid bit is clear), the validity fault handler returns immediately, and the process incur the validity page fault. Kernel handles the validity fault and the process will incur the protection fault if any one is present.<br /><br />43. In what way the protection fault handler concludes?<br /> After finishing the execution of the fault handler, it sets the modify and protection bits and clears the copy on write bit. It recalculates the process-priority and checks for signals.<br /><br />44. How the Kernel handles both the page stealer and the fault handler?<br />The page stealer and the fault handler thrash because of the shortage of the memory. If the sum of the working sets of all processes is greater that the physical memory then the fault handler will usually sleep because it cannot allocate pages for a process. This results in the reduction of the system throughput because Kernel spends too much time in overhead, rearranging the memory in the frantic pace.pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-16763467788652888762007-12-10T21:22:00.000-08:002007-12-10T21:30:54.745-08:00CONVERGYS PAPERSCONVERGYS PAPER ON 12th MAY AT LUCKNOW<br />Hi guys!! This is Ashish Chadha from lucknow.I m more than elated to tell u that I have made it to convergys,finally. It came on 12th of may at BBDNITM,lucknow. <br />Firstly there was a sectional written test comprising of following sections: <br />1.WORD USAGE(20Q) This comprised of a long scientific passage with blanks labeled (1-20)and 4 options for each questions. 2.REASONING ,QUANT AND VENN DIAGRAM SECTION(45Q) The questions were moderate ,u just have to manage ur time well enough. <br />3.UNIX(10Q) Just go through the syntax of various commands in unix..like echo meta,etc. <br />4.RDBMS(10Q) This was the easiest section if u hav the basic knowledge of dbms and SQL. <br />5.C++(15Q) Some questions were tough.be well versed with pointers,classes,inheritance <br />Out of around 300 candidates,38 cleared the written. <br />Then they called us for the ppt and the HR guy was very strict. He told us about the organization, its domains, industries served and all other aspects of the company. He said that they only pick the best because they offer the best to their employees. Then he gave us a 30 minutes break to eat something and come back with a presentation prepared of our own for 2-3 minutes..on any topic. <br /><br />When we came back we found that we were going straight for interviews and the presentation will be seen there only.My no.was around the 30th so i had to wait a long time for the interview and now starts the real thing….. <br />When I went to greet them they stood up and shook hands with me. Then he asked me about the presentation. I had barely spoken 30-40 seconds that he said stop!! We got the gist of what you wanted to say. My topic was”Should group discussions and presentations be a part of freshera recruitment” and I was strongly in favour of it. One of the interviewer asked….. was I trying to impress them??to which I gave a flat answer..sir this, is just my view.if you are impressed then I m doing my job right. <br />Then he asked me some HR questions…as to who r chadha’s,what is ur objective and why.Then he asked me technical questions.. Firstly about my project then he came to SQL,DBMS..joins cursors,procedures..how to keep a database secure,a query to join two tables to create a table with a primary key and a null column. Asked me some queries to which I wasn’t right but he was gauging my confidence. Then he asked about c++,object oriented programming. .inheritance. .types of classes. .types of inheritances,malloc,calloc…and he was quite satisfied with my answers. <br />Then the other guy asked me if this was my first interview ..i told him it was my second 1st being infosys..then he asked what went wrong there..i told him that 1 puzzle did the trick . Itold him that I was waiting for satyam’s interview.then he told me that he himself was a x-satyamite.he then explained about the policies of Indian companies and their nature of keeping guys on bench. Then he asked me if I were to choose between satyam and convergys what would I choose and why…..i told him convergys because there is a chance of going abroad….the he explaine about the whole issue of going abroad. Then came his final sentence….. Irrespective of u choosing either of the companies I would like u to be a part of convergys..i said a solid “thank you,sir” and he told me to sharpen skills in unix,dbms,sql,c,c++ before joining. <br /><br />I was more than excited to be selected…….shook hands with both of them It was certainly a euphoric day for me… 2 other guys from my college were selected….a total of 11 in total. GUYS ITS ALL ABOUT BELIEVING IN YOURSELF,IN GOD AND BEING CONFIDANT IN YOUR COMMUNICATION AND THOUGHTS. ITS CERTAINLY A DREAM COMPANY…THE PACKAGE FOR NOW IS 3.3 BUT THIS WOULD INCREASE BY JOINING TIME.<br /><br /><br />2nd<br />CONVERGYS PAPER ON 18th MARCH AT SECUNDRABAD<br /> <br />Dear friends <br />I am Ershad Ahmad from Hyderabad .Today(18/3/07) I attended the written test for CONVERGYS at St. Sebastian school, Secunderabad. I would like to share some experiences and the nature of the test .The test was conducted by Merit-Trac. <br />The test was divided in five sections (100 Q’s 100marks 100 minutes) <br />1. Inferential vocabulary. 20 Q’s 20 Mins. 20 Marks <br />2. Analytical and Logical Reasoning 45 Q’s 45 Mins. 45 Marks <br />3. UNIX Programming. 10 Q’s 10 Mins. 10 Marks <br />4. RDBMS 10 Q’s 10 Mins. 10 Marks <br />5. C++ 15 Q’s 15 Mins. 15 Marks <br />Inferential vocabulary: (Q.No. 1-20) 20 Q.s 20 marks 20 minutes <br />Fill in the blanks with appropriate words. <br /> <br />Analytical & logical Reasoning: (Q.No. 21-65) <br />(Q.No. 21-30) Venn diagram problem <br />(Q.No. 31-38) Venn diagram problem <br /><br />(2 Q’s) Assumption problem Such as India, Srilanka, Australia, England and Pakistan are the top five cricet teams for the last three <br />consecutive years 2001-03. Asutralia and England were never in top 2 positions in 2003 srilanka wasin 4 th position in the first two years Australia and englasnd interchanged thire positons. <br />Q.No 1 Which is the top2 team in 2001 ? <br />QNo’s 40-41 Simple logical Q’s <br />Q.No 40. Boys was standing in row a particular boy was standing in 5th position counted both ways. How many boys were standing in the row? <br />QNo’s 42-52 Data sufficiency <br />QNo’s 52-53 Coding decoding <br />QNo’s 52 In a certain language BLACK is coded as .Then what is the code for BLEACH ? <br />QNo’s 60-65 Cube problem (painting sides) <br /> <br />UNIX programming: Qno’s 65-75 (10 Q’s 10 Min. 10 marks) <br />To find output of programs mostly code snippets involving echo command. <br />QNo. 71 Which is a command interpreter a). Shell b). kernel c).demon d). none of the above <br /> <br />RDBMS: <br />QNo.s 76-85 (10 Q’s 10 Min. 10 marks) <br />Question involving Primary Key Integrity constraint.etc <br /> <br />C++: <br />QNo.s 86-100 (15 Q’s 15 Min. 15 marks) <br />Finding Output from given code snippets<br /> <br />Best of Luck<br /> <br />3rd<br />CONVERGYS PAPER ON 18th AT CHENNAI<br />The Covergys is one of the easiest test to crack!!! Before going to interview!! 2 thing to follow before going to any interview<br /><br />Rule1:Stay COOL<br />Rule2:Stay COOL!!!<br />Becos it will help you to think more.Its from my own exprience i am saying. The question pattern was same as the previous question papers posted by our fnds,<br />There were 4 sections:<br />1:English : (all of same type)<br />It had very easy fill in the blanks... They gave a passage on Colombia space craft and passage had blanks to be filled eg.<br />They next launch is __________ by the end of next month. a) Expected b)Planned c)scheduled<br />2.Logical reasoning:<br />Its one of the easiest part just prepare ur self with logical resoning book.... The Venn diagram occupied 4(4 questions each) parts of the parper,<br />Quantitative Reasoning(10questions approx) : eg: 1-50 how many prime numbers are there....<br />Data sufficiency occupied 10questions. (upto this occupies the 52 questions)<br />acronyms, number series, $ replace by 1,* by 0 question....<br />3.Unix questions<br />Its very basic questions. Just glance the basic functional syntax and concepts from easiest of book available as a guide in market.<br />eg) which acts as a interperter in UNIX 1)Kernel 2)Shell 3... 4..<br /><br />Let x=10,y=20,z=30<br />Let c=x+y+z<br />echo $c A 1)error 2)60 3)10 4)20<br />4) RDBMS:<br />Its was the concept based on normalization,syntax based question, keyword based questions and they gave query and asked us to check the error.<br />5) C++:<br />It was quite easy. I used the C,C++ based question paper present in freshers world and it helped me a lot. Its based on pointers and some sime easy questions. Every question will be within the sample question paper available at this site.<br />so all the very best fnds its a good opportunity to crack the test . hope my expr have atleast 1% benifit to you!! <br />By,<br />Anandram<br /> <br />4th<br />CONVERGYS PAPER ON 10th MARCH AT GHAZIABAD<br />hi friends, I have given the convergys paper today(10/3/2007) at KIET,Ghaziabad.<br />the paper comprised of 5 sections:<br />1.English -20 ques(20min)<br />A paragraph was given with 20 blanks.these had to be filled from options.various options were confusing as maore than 1 fit the blank.But the paper was average <br />2 Aptitude and Logical Reasoning- 45 ques(45 min)<br />arnd 10 ques from venn diag.(not from venn diag of rs(verbal&non-verbal).it was simple and similar to venn diag we have studied in class-11. <br />5 ques on cube colouring<br />5 ques of the type:if 1is represented by$ and 0 by* then answer some mathematical equations.simple and include concepts about binary numbers<br />some questions on data sufficiency(tricky)<br />a question on blood relation(easy)<br />no questions from time-work-distance,mixture allegations,pipes cisterns.<br />a ques on series 1,3,3,9,27,243,?.(ans:243*27)<br />a question on puzzle(verbal,nonverbal -rs agg) <br />3. Unix-10 ques(10 min)<br />finding output. <br />4. RDBMS-10 ques(10 min)<br />normalization,keys.do starting chapters of korth or navathe.<br />one output for sql querry. <br />5. C++ -15 ques (20 min)<br />outputs.<br />prepare classes and pointers in a class well. this section was tough. <br />Separate question paper for each section was provided.the papers were distributed according to above pattern.first 10 min eng,after that 45 min for quant and so on.single answer sheet was given. However ques pqpre for each section was taken back after the stipulated time. <br />This company has very little requirements of trainees. Out of 1700 students,46 students were selected for the interview.Thanx to the almighty,I was 1 0f those 46 students. <br />I hope this pattern will help u in ur preparations. All the best folks. <br />By,<br />Gaurav Kohli<br /> <br />5th<br />CONVERGYS PAPER PATTERN ON 25th NOVEMBER AT DEHRADUN<br />hi friends.<br />I remember only some....<br />ds was abt d convergys paper. <br />ds contains 5 sections.<br />1) English <br /> complete the sentences with proper world(quite easy) <br />2) aptitude <br /> most of the questions r frm venn diagram bt not frm R.S. Aggrawal. <br />3) unix <br />4) rdbms <br />5) c++(pointers mainly) <br />Regards,<br />Praful.<br /><br />6th<br />CONVERGYS PAPER PATTERN ON 08th AUGUST 2006 AT VIJAYAWADA <br />Hello Friens<br /><br />I have attended the Convergys campus interview on Aug 8.<br />The interview was held in our college for about 1411 students from 25 different colleges.<br /><br />The interview procedure consisted 2 phases:<br />1) Writtens test<br />2) Technical & HR interview<br /><br />Coming to the written test:<br />It has 5 sections<br />1) Inferential vocabulary round<br />2) Logical &Aptitude test<br />3) Unix programming concepts<br />4) RDBMS concepts<br />5) C programming<br /><br />The<br />1) inferential vocabulary round has a passage with blanks and 4 options to fill each blank.<br />It had 20 blanks and 22 minutes for that section<br /><br />2)The Logical and Aptitude section has 45 questions for 48 minutes.<br />It had number of problems on sets <br />Example: people studying maths 20,people studying english 30.studying both some number,Find total.....like that.<br />Around 12 questions were there<br />Logical questions on Family relations.<br />some questions on binary numbers.<br />Cube questions.<br /><br />3)The unix programming 10 questions 10 minutes.<br />4)The RDBMS concepts 10 questions 10 minutes<br />5)The c 15 questions 15 minutes....<br />Some output questions....like that.<br /><br />The major ELIMINATION ROUND was the WRITTEN TEST.<br /><br />Out of 1411 students, 98 were shortlisted for the HR&Technical interview.<br /><br />These convergys people have less requirement, that is why they have revised our cut-off, initially they kept some cut-off, then 300 students were there. So they again revised and took 98 students.<br /><br />All this revision of cut-off took place off-screen.<br /><br />I came to know these issues from our faculty members who were present at the time of revision of cut-off.<br /><br />NO negative marking. But a still more CRITICAL way of getting the score is:<br /><br />They will count Correct Answers, Wrong Answers and take %(percentage), Which is your Written test score.<br /><br />So guys/gals you have to really be sound and get through the written test in-order to get into CONVERGYS. But it's really a good company to get into.<br /><br />So ALL THE BEST for Everyone<br /><br />Regards<br />Sandeep <br /><br />7th<br />CONVERGYS PATTERN ON 8th AUGUST 2006 AT VIJAYAVADA<br /> <br /> hi friends this is padma priya trying to help you by sharing my experiences at convergys interview.... <br /> <br /> Getting hall ticket is itself tough because the cutoff % was 70% after getting hallticket you can take the test<br /> <br /> TEST PATTERN : 20 english (they will be giving u a passage and the words u have to choose the word tht matches perfectly)<br /> : 45 aptitude(it's quiet easy if u prepare R.S.AGARWAL<br /> :10 UNIX(this i found quite difficult but if u r inteligent u can...........)<br /> :10 RDBMS(this is the same as unix but i felt it quiet easy)<br /> : 15 CPP(this is the toughest part in the paper but if u r perfect it's quiet easy...)<br /> <br /> PREPARE WELL BCZ STARTING SALARY ITSELF IS 35000<br /> DON'T GIVE UP AS WE GAVE UP<br /> <br /> ALL THE BEST<br /> <br /><br />8th<br />CONVERGYS PAPER PATTERN ON 6th AUGUST 2006 AT HYDERABAD<br /> <br />Hi, I am radha.<br />i have attened the convergys on 06 aug at hyd.<br />The process includes <br />1.Written test<br /> It includes 5 sections<br /> i)General English --20 Q ------22 min----20 marks<br /> ii)Aptitude & logical reasoning----45Q-----48min-----45marks<br /> iii)UNIX----10Q----10min---10marks<br /> iv)RDMS----10Q----10min----10marks<br /> v)CPP----15Q----15min---15marks. <br />2.HR & tech<br /> Writen test was not so much easy. they have asked more Questions on venn diagrams,cube paintng,* $ problems,inequality expressions (<br />like if x>y ? <br />i)x>z; <br />ii)z/x=x+y;<br />a)both are required to ans the question,<br />b)only 1<br />c)only 2<br />d)neither 1 nor 2 )<br />UNIX is also different.<br />RDMS is also like UNIX.<br />where as CPP they asked more questions on programs related to pointer in class.this is also not that much easy.Because they want filter the people.there were around 600 people out that only 52 are short listed.<br />so my advise is that ,do alot of hard work,so u get throug it.<br /><br />9th<br />CONVERGYS PAPER ON 5th AUGUST 2006 AT PUNJAB<br /> <br />The test was conducted for recruiting "junior graduate trainees" for s/w development. <br />eligibility criteria was 60% or above in 10 and +2.<br />65% above in graduation and 70% above in post graduation.<br /> <br />the pattern was as follows:<br /> <br />20 ques- inferential english (22 min)<br />45 ques- general Aptitude (48 min)<br />10 ques- Unix (10min)<br />10 Ques- RDBMS(10 min)<br />15 Ques- C++(15 min)<br /> <br />-------------------- English<br /> <br />It was some paragraph on some astrophysicist hawkings and there were 20 blanks which had to be filled by choosing appropriate word from 4 choices ( for each blank).<br /> <br />------------------ Aptitude<br /> <br />consisted of some block seating problems like six people are sitting facing each other on 2 benches etc.<br />-80 people play football and 20 play hockey and football .total students are 130. how many play only hockey.<br />- 20% watch zee movies and 30% watch star and 50% watch discovery.30% watch both zee and star then how many watch only star... such kind of questinos.<br />- one ques on blod relation.<br />- ques on ages.<br />- changing in binary form and representing symbol 0 by * and 1 by & choose the correct pattern like 4 stands for &**.<br />- dice coloring ques.<br />------------------ Unix<br />- which one is not a defined keyword in unix :do,done ,end,until<br />-there were question on scripts only like script was given and its output was asked .you had to choose correct one.<br /> <br /><br />10th<br />Hi Friends,.................<br /> This Paper was submitted by me, Anurag and my friend Nayan from ICFAI Tech<br />The Convergys paper's are five sections<br />1) Inferential Vocab (20Q) (20 mins) - long passage with blanks numbered 1 – 20 and 4 options for each and every row.<br />2)Set Theory + Venn Diagrams, Data Sufficiency, Mathematical operations, Calender, Blood relation, Cube painting, probability(45Q) (48mins)<br />3)UNIX<br />4)RDBMS<br />5)C++ Programming<br />There was sectional cut off and they choose you based on the ratio of correct answers out of total attempted ones.<br />Out of 695 students who appeared to give the examination only 11 cleared the Aptitude examination to reach the Interview Round.<br /> <br />Section 1<br />This was the paragraph given to us in the paper although the options given were altogether different yet the blanks were at the same place.<br />“NEW YORK -- Some questions even stump Stephen Hawking.<br />The famed British astrophysicist and bestselling author has turned to Yahoo Answers, a new feature in which anyone can pose a question for fellow internet users to try to answer. By Friday afternoon, nearly 17,000 Yahoo users had responded.<br />Hawking's question: "In a world that is in chaos politically, socially and environmentally, how can the human race sustain another 100 years?"<br />Some of the answers were short -- "get rid of nuclear weapons" -- and others vague -- "Somehow we will." Many were doubtful: "I don't think it is possible unless we expand into space," one user wrote.<br />A number of people suggested thinking differently, ending bickering or fostering cooperation.<br />Officials at the University of Cambridge, where Hawking is a mathematics professor, confirmed that Hawking wrote the message but said he would have no further comment.<br />Hawking's groundbreaking research on black holes and the origins of the universe has made him one of the best-known theoretical physicists of his generation. Author of the global best seller A Brief History of Time, Hawking is known for proposing that space and time have no beginning and no end.<br />Lately, he's been pondering about the fate of humans. In a June 13 speech in Hong Kong, Hawking said the survival of the human race depends on its ability to find new homes elsewhere in the universe because there's an increasing risk that a disaster will destroy Earth.<br />He said that if humans can avoid killing themselves in the next 100 years, they should have space settlements that can continue without support from Earth.<br />Hawking is one of 10 celebrity questioners Yahoo solicited as part of its "Ask the Planet" campaign.<br />The Sunnyvale, California, internet company spent weeks trying to track Hawking down but got his participation within a day of reaching the correct assistant, said Patrick Crane, vice president of marketing for Yahoo Search.<br />The question was submitted a few days before the Hong Kong speech and posted this past Wednesday.<br />Over the next week, Yahoo employees are expected to work with Hawking to sift through the answers and select one or several to highlight as best responses.<br />Yahoo Answers, like an offering from Google and one planned by Microsoft, is among the services aimed at tapping the collective intelligence. It's based on the premise that humans as a group can do a better job at finding information than machines or any single person can.<br />Anyone can ask or answer a question, regardless of expertise, although Yahoo will eventually implement a rating system meant to elevate users with better reputations, based on their past questions and answers.”<br /> <br />Section 2<br />1) A site received 419 visits on 3 of its links, there were 145 hits on “Contact us”, 11 visitors hit all the 3 links, while “FAQ” and “Home” links had the same no of hits. 2 visitors hit “Contact” and “Home”; 11 visitors hit “FAQ” and “ Home” and another 11 “FAQ” and “contact”<br /> <br />Then there were 4 questions<br />A) How many visited the FAQ link<br />B) How many visited the FAQ link only<br />C) How many visited the Contact us only<br />D) Don’t remember this 1<br />• There were 3 questions in all from Set theory n Venn Diagram, I don’t exactly remember the other 2 questions but they were similar and quite easy.<br /> <br /> 4) If 1st October is a Sunday then wats the day on 1st November<br /> Ans: Wednesday<br /> 5) Vipul pointing at a photograph said “The girl in the picture is my grandfather’s only sons daughter”<br /> How is Vipul related to her<br /> Ans: Brother <br />6) There were around 12-15 questions on Data Sufficiency.<br />22) There was a Cube coloring Problem with 5 subquestions<br />A painter is asked to cut a wooden cube which is painted in black, then again he cut the top layer in 4 parts, middle layer in 9 and bottom layer in 16 cubes<br />A) How many cubes are painted on 3 sides<br /> Ans: 8<br />B) How many cubes were painted only on 2 sides<br /> Ans: 12<br />C) How many cubes were not painted at all<br /> Ans: 1<br />Then there were 2 more questions like this<br /> 23) If a person has 2 coins, one with both sides as head and the other a normal coin then wats the probability of getting a head.<br /> Ans: 2/3<br />This ends the Apti section<br /> Section 3 Unix:<br /> <br />1) Combine $x=1;[x –ge 10] into a single statement<br /> Don’t remember the options<br />2) cmd line1: prompt1= “Employee Id”<br /> cmd line2:x=1<br /> cmd line3:________________<br /> Ans: eval \$prompt$x<br />3) Wats the output of the code snippet<br /> echo hello<br /> Eval echo Hello<br /> Eval echo eval Hello<br /> Ans: hello<br /> Hello <br /> Hello<br />4) How to use the bourne shell under C shell<br /> There were 4 options beginning with #!/bin/usr (something like this)<br />5) What does $# represent<br />6) What does $* represent<br />Don’t Remember the rest of them<br /> <br />Section 4 DBMS:<br />1) Relation of an entity to itself is known as<br /> A) one to many B) one to one 3) Recursive 4)??<br /> 2) A relation in RDBMS can exist between_______ entities<br /> A) min 2 B) Atleast 1 3)three 4)none of these<br />3) 5th Normal Form depends upon<br />A) Multivalued Dependencies B) Functional Dependencies C) ?? D) ??<br />4) Which of these is not TRUE abt the joint and the union<br />A) Join is always costlier than union<br />B) Union always acts upon columns<br />C) Union always acts upon rows<br />D) Join always acts upon columns<br />(The options were similar to this one not exactly these)<br />5)In a Left outer joint operation what will be returned<br />A) Left table returns all rows<br />B) Right table returns all rows<br />C) Both tables return all rows<br />D) Right table returns NULL<br />6) 1 Question on ODBC<br />And 4 other questions on DBMS which 1 don’t remember<br /> <br />Section 5 C++:<br />1) A function in a Class by default is <br />A) Virtual B) Inline C) Pure Virtual D) None of these<br />There were 2 questions given to find out the output<br />Then there were questions upon fstream and ostream<br />Don’t remember much about this section, most of the questions in this section were under pointers, inheritance and constructors / destructors.<br />Unfortunately we couldn’t get through the written test, Pray for us<br />Regards<br />Anurag n Nayan<br /> <br />11th<br />CONVERGYS PAPER ON 21st JULY AT HYDERABAD<br />This is Radha Krishna . I completed MCA from Nagarjuna University . I attend Convergys Exam on 21st July 2007 in HYDERABAD .<br /><br />Section:1 <br />English --------à20Questions ---à20 M <br /><br />They given a passage regarding the Yahoo Answers. In this Passage An Astrnologist is in New York . He rises some questions in the Internet regarding this world. They gives fill in the balnks . There are four words are given ,they almost similar to each other. Find appropriate word and put the blanks. These are objective type.<br /><br />Section:2 <br />Aptitude ----à45 Questions---à 48 M<br /><br />In this sections they are ask questions on <br />1.Venn Diagrams <br />2.Calender <br />3.Averages <br />4.Cube coloring problems. <br />5. Number Series <br />6.Data Suffiency Questions <br />7.Another easy one is <br />0 is represented as * and 1 is represented as $ .<br />For ex 3 is represented as $$<br />4 is respresented as $**<br /><br />They asked me these questions <br />1. what is the value of $$***/$$* ? <br />2. what is the value of $*** * $$ ? <br />3. what is the H.C.F of 15,20,30 ? <br />4. what is the L.C.M of 15,20,30 ?<br />Hint: Convert the result of H.C.F value into binary form and changes it into $ and * format. <br />For example in the Venn diagrams section <br />1) There are 620 people are attending to the Tennis and Cricket . In that 420 attending to the Tennis another 360 attending to the Cricket .Ho many of them attending to the both the games.(This is an not exactly the same question . Like these there are 5questions are asked .)<br />1.july,june,april,January what is the next one in the sequence.? <br />a)august b)october c)september d)November <br />DataSufficency: <br /> <br />In this part questions like this<br />1.) if A+B>C+D<br />1. if A=2,B=3,C=5 are given. <br />2. If A<br />a) 1 b)2 c)3 d)4. <br />2) is ABC is an Isolises Triangle they given altitude and angle.<br />3)if X is given and Y is given.<br /><br />Section 3: UNIX ------------à10Q ----à10 M <br />1 . i=0<br />While($i –le 10)<br />do<br /> i=’expr$i+1’<br />done>file<br /><br />a)0 b)1 c)2 d)3<br /><br />echo hello<br />eval echo hello<br />eval echo eval echo hello<br /><br />ans: hello<br /> Hello<br /> Hello<br /><br />Test Ur UNIX Skills is enough to answer all these questions. (author:Yaswanth Kanethkar).<br /><br />Section 4: RDBMS, SQL------à10Q-----à10 M <br />Questions on<br />1. Normalisation <br />2. Keys in SQL<br />1. MERGE is a combination of<br />a) INSERT AND DELETE<br />b) UPDATE AND DELETE<br />c) INSERT AND UPDATE<br />Follow the Navathe Book on Data Base programming Concepts.(First Three Chapters Important.)<br /><br />Section 5: XZC++ Programming:------à15Q -------10 M <br />In this Qusetions on <br />1.Pointer Classes in Cpp<br />2.virtual functions in cpp<br />3.overloading<br />4.Constructors.<br /><br />1.Class Base<br />{<br /> Base( )<br /> {<br /> Cout<<”Base”;<br /> }<br />};<br />Class Derived: public Base<br />{<br /> Derived( )<br /> {<br /> Cout<<”Derived”;<br /> }<br />};<br /><br />void main( )<br />{<br /> Derived d;<br />}<br /><br />a)base b)base derived c)derived d)derived base.<br /><br />Here in this section asked on easy questions on c++ basics.<br /> <br />ALL THE BEST<br /> <br />12th<br />Hi Pals, <br />Convergys papers consists of 5 sections<br />1) VERBAL(20Q) (20 mins) - long passage with blanks numbered 1 - 20.4 options for each and every row.<br />2)QUANT,REASONING,VENN DIAGRAMS(45Q) (48mins)<br />3)UNIX<br />4)RDBMS<br />5)C++ Programming<br /><br />1)VERBAL----<br />This is the paragraph which excatly we got.Got this one in google search.<br />NEW YORK -- Some questions even stump Stephen Hawking.<br />The famed British astrophysicist and bestselling author has turned to Yahoo Answers, a new feature in which anyone can pose a question for fellow internet users to try to answer. By Friday afternoon, nearly 17,000 Yahoo users had responded.<br />Hawking's question: "In a world that is in chaos politically, socially and environmentally, how can the human race sustain another 100 years?"<br />Some of the answers were short -- "get rid of nuclear weapons" -- and others vague -- "Somehow we will." Many were doubtful: "I don't think it is possible unless we expand into space," one user wrote.<br />A number of people suggested thinking differently, ending bickering or fostering cooperation.<br />Officials at the University of Cambridge, where Hawking is a mathematics professor, confirmed that Hawking wrote the message but said he would have no further comment.<br />Hawking's groundbreaking research on black holes and the origins of the universe has made him one of the best-known theoretical physicists of his generation. Author of the global best seller A Brief History of Time, Hawking is known for proposing that space and time have no beginning and no end.<br />Lately, he's been pondering about the fate of humans. In a June 13 speech in Hong Kong, Hawking said the survival of the human race depends on its ability to find new homes elsewhere in the universe because there's an increasing risk that a disaster will destroy Earth.<br />He said that if humans can avoid killing themselves in the next 100 years, they should have space settlements that can continue without support from Earth.<br />Hawking is one of 10 celebrity questioners Yahoo solicited as part of its "Ask the Planet" campaign.<br />The Sunnyvale, California, internet company spent weeks trying to track Hawking down but got his participation within a day of reaching the correct assistant, said Patrick Crane, vice president of marketing for Yahoo Search.<br />The question was submitted a few days before the Hong Kong speech and posted this past Wednesday.<br />Over the next week, Yahoo employees are expected to work with Hawking to sift through the answers and select one or several to highlight as best responses.<br />Yahoo Answers, like an offering from Google and one planned by Microsoft, is among the services aimed at tapping the collective intelligence. It's based on the premise that humans as a group can do a better job at finding information than machines or any single person can.<br />Anyone can ask or answer a question, regardless of expertise, although Yahoo will eventually implement a rating system meant to elevate users with better reputations, based on their past questions and answers.<br />2)QUANT,REASONING,VENN DIAGRAM<br />First 10ques are based on venn diagrams lil bit easy .Then next puzzle test question he asked some around 4 on that.<br />Is PQR a isosceles traingle?----he gave some two statements we need to choose that whether 1st stt is euf or 2nd one enuf or both are required to get solution or we cant get solution by using both satements.These kind of questions ge asked some around 8.someof them are....<br />Options:-<br />a)1st Statement alone will give result.<br />b)2nd Statement alone will give result.<br />c)1st n 2nd Statement both will give result.<br />d)Results can not be obtained<br /><br />-->Find the value of b.a n b are non negatiove numbers<br />1)2a-b is divisible by five<br />2)a-b=6<br />-->PQRS is a Quadrilateral.reactagle is drawn(Not excatly but these kind of ques)<br />1)PS n QR having positive slope<br />2)PQ n RS Having positive.<br />-->find value of Y?Y is non negative integer.<br />1)XY+Y^2=0<br />2)XY+Y^2=5<br />-->tank was filled up to 1/3 after that again it was filled with 3 Lts of water now the tank is 1/2 filled.wat is the capacity of Tank?(Gave 4 Options)<br />-->A Person painting on a glass board which is of 3:2 ratio.the smaller side size is of 15 inches.wat is total size of board?<br />-->one question on permutations<br />-->from 1 to 100 how amny numbers are diovisible by 4 and should contain 4 in the divisible number?<br />1)6 2)7 3)9 4)10<br />Ans)4,8,12,16,20,24,28,32, 36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100 - these r the nums divisible by 4 n the number wich contain 4 digit are 4,24,40,44,48,64,84.<br />->>A Prob on Cubes....4*4*4 cubles is there and a smaller cuble of 64 blocks are joined togeather.......(i didnt remember excatly the questions it was very big he said we need to remove the middle 4 blocks and paint it with red some thing lik that it was a lil bit tough)<br />3)UNIX<br />1) ____________ acts as command interpreter<br />2)S# is used for _________?<br />2 r 3 programs he asked.<br />4)RDBMS.<br />-->some query is given which join is used in this query?<br />-->Two or Three questions on NORMAILZATION.<br />-->Modify is union of ______a)INSERT and UPDATE b)UPDATE and DELETE 3)SELECT and DELETE 4)UPDATE and TRUNC<br />-->Some defintion is given and options as??a)Priamry Key b)Candidate key c)Foriegn Key<br />-->some question on ODBC.<br /><br />5)C++<br />-->He gave some around 5 programs<br />-->2 programs are based on inheritance.<br />-->some are based on theory a lil bit easy.<br />Time maintaing is the important.<br /><br />Me just gave exam waiting for my result.They said they will mail short listed candidates.<br />Please pray for me.<br />Regards,<br />KAK.<br /> <br /><br />DOC<br />As the leader in relationship management, Convergys provides solutions that optimize the everyday interactions between customers and employees. Managing these relationships, fostering improvement and adding value to them is how we enable organizations worldwide to improve their business performance.<br /><br /> <br />At Convergys, we're the global leader in relationship management. We deliver a broad range of customer and HR solutions, backed by technology, business analytics and consulting services that help create valuable relationships between our clients, their customers and their employees. <br />Convergys is uniquely and exclusively focused on helping our clients make smarter decisions about enhancing their relationships with customers and employees to improve business performance. We help our clients recruit, service and retain customers and employees using innovative technologies that increase efficiencies, satisfaction, loyalty and workforce effectiveness – while decreasing costs. This approach has made us a global leader for 25 years. <br />Headquartered in Cincinnati, Ohio, Convergys employs nearly 75,000 employees who serve clients in over 70 countries, speaking more than 35 languages, from 79 sites across the globe. Convergys has been named a Fortune Most Admired company for seven consecutive years, and more than half of the top 50 Fortune 500 companies are Convergys clients.<br />Our Executive Committee Provides Leadership for Our Global Team<br />David F. Dougherty<br />President and Chief Executive Officer <br />Earl C. Shanks<br />Chief Financial Officer<br />Clark D. Handy<br />Senior Vice President, Human Resources<br />Karen R. Bowman<br />General Counsel and Corporate Secretary <br /> <br /> <br /> <br />• Vision <br />o CEO Message <br />o Offer Framework <br /><br />• Solutions <br />o Customer Solutions <br /> Customer Service <br /> Consumer Support <br /> Business-to-Business Support <br /> Technical Support <br /> Back Office <br /> Customer Management Effectiveness <br /><br /> Customer Acquisition <br /> Direct Response <br /> Sales and Order Support <br /> Back Office <br /> Customer Management Effectiveness <br /><br /> Customer Retention <br /> Loyalty and Churn Management <br /> Back Office <br /> Customer Management Effectiveness <br /><br /> Convergent Rating, Charging and Billing <br /> Content Enablement <br /> Convergent Charging <br /> Enterprise Product Management <br /><br /> <br />o HR Solutions <br /> HR Business Process Outsourcing <br /> Recruiting and Resourcing <br /> Compensation <br /> HR Administration <br /> Payroll <br /> Benefits <br /> Organizational Development <br /> Learning <br /> Workforce Intelligence <br /> Enabling Services <br /><br /> Learning <br /> Enterprise Learning <br /> Agent Performance Learning <br /><br /> <br />o Consulting and Services <br /> Revenue Generation <br /> Revenue Protection <br /> Contact Optimization <br /> Operational Performance <br /> Technology Optimization <br /><br />o <br />• Industries <br />o Communications <br />o Financial Services <br /> Customer Experience <br /> Revenue Generation <br /> Business Process Optimization <br /> Card, Insurance and Other Financial Sectors <br /><br />o Government <br /> Constituent Care Services <br /> Back Office Solutions <br /> HR Solutions <br /><br />o Healthcare <br /> Payor and PBM <br /> Pharmaceutical and Devices <br /><br />o Manufacturing <br />o Retail <br /> Improving the Store <br /> Customer Satisfaction <br /> Revenue Generation and Retention <br /> Workforce Productivity <br /><br />o Technology <br /> Technical Support <br /><br />o Transportation <br /><br />• Customers <br />o Client Testimonials <br /><br />• Company <br />o Company Overview <br />o Recognition and Awards <br />o Investor Relations <br /> Current Performance <br /> Annual Reports and Financial Summary <br /> SEC Forms <br /> GAAP Reconciliations <br /> Events and Webcasts <br /> Financial Analysts <br /> Convergys Corporate Governance <br /> Investor Materials Request <br /><br />o News and Events <br /> Newsroom <br /> Events and Webinars <br /> Convergys in the News <br /><br />o Community Relations <br /> Business Roundtable S.E.E. <br /> Arts and Culture <br /> Education <br /> Health and Human Services Support <br /> Eligibility Requirements <br /><br />o Diversity <br />o Locations <br />o Contact Us <br /><br />• Careers <br />o Search Jobs <br /> FAQs <br /><br />o Working at Convergys <br /> Overview <br /> Culture <br /> Benefits <br /> Diversity at Convergys <br /> Position Profiles <br /> FAQs <br /><br />o University Center <br /> Our Approach <br /> Target Universities <br /> Diversity at Convergys <br /> Position Profiles <br /> FAQs <br /><br />o Work At Home Opportunities <br /><br />Company<br />• Company Overview <br />• Recognition and Awards <br />• Investor Relations<br />o Current Performance <br />o Annual Reports and Financial Summary <br />o SEC Forms <br />o GAAP Reconciliations <br />o Events and Webcasts <br />o Financial Analysts <br />o Convergys Corporate Governance <br />o Investor Materials Request <br />• News and Events<br />o Newsroom <br />o Events and Webinars <br />o Convergys in the News <br />• Community Relations<br />o Business Roundtable S.E.E. <br />o Arts and Culture <br />o Education <br />o Health and Human Services Support <br />o Eligibility Requirements <br />• Diversity <br />• Locations <br />• Contact Us Wonder how to find us? While headquartered in Cincinnati, Ohio, we have 77 customer contact centers, three data centers and other facilities in the United States, Canada, Latin America, Europe, the Middle East and Asia. <br />Select your continent of choice above or select one of the links below to discover where exactly we can be found. <br /> <br /> Convergys Corporate Headquarters<br /> 201 East Fourth Street<br />Cincinnati, OH 45202<br />Phone: 1-513 723-7000<br />Phone: 1-888-284-9900 <br /> <br /> United States<br /> Arizona <br /> Tucson<br />3760 North Commerce Drive<br />Suite 160<br />Tucson, AZ 85705<br />Phone: 1-520 690-6600 <br /> <br /> California <br /> San Francisco<br />201 Third Street, 2nd Floor<br />San Francisco, CA 94103<br />Phone: 1-415 913-3000 San Ramon (sales)<br />2500 Old Crow Canyon Road<br />Suite 520<br />San Ramon, CA 94583<br />Phone: 1-925 362-2245 <br /> <br /> Colorado <br /> Aurora (client site)<br />12250 East Iliff Avenue<br />Suite 400<br />Aurora, CO 80014 Denver<br />12025 East 45th Avenue<br />Denver, CO 80239-3111<br />Phone: 1-303 574-2146 Denver (client site)<br />930 15th Street<br />Denver, CO 80202 <br /> <br /> Denver<br />10225 Westmoor Drive<br />Westminster, CO 80021<br />Phone: 1-720 887-7800 Denver (sales)<br />9800 Mt. Pyramid Court<br />Suite 400<br />Englewood, CO 80112<br />Phone: 1-720 895-1988 Pueblo<br />1228 East Orman Avenue<br />Pueblo, CO 81004<br />Phone: 1-719 544-1800 <br /> <br /> Delaware <br /> Wilmington (client site)<br />1007 Market Street<br />Wilmington, DE 19898 <br /> <br /> Florida <br /> Fort Lauderdale<br />5601 Hiatus Road<br />Tamarac, FL 33321<br />Phone: 1-954 718-4600 Jacksonville<br />8000 Baymeadows Way<br />Jacksonville, FL 32256<br />Phone: 1-904 636-1000 Orlando<br />285 International Parkway<br />Lake Mary, FL 32746<br />Phone: 1-407 771-8000 <br /> <br /> Tallahassee<br />3800 Esplanade Way<br />Suite 200<br />Tallahassee, FL 32311<br />Phone: 1-850 219-3400 <br /> <br /> Georgia <br /> Atlanta<br />South Tower, Suite 200<br />10 Glenlake Parkway<br />Atlanta, GA 30328<br />Phone: 1-770 352-6300 Atlanta (client site)<br />5600 Glenridge Drive<br />Room G102<br />Atlanta, GA 30342 Atlanta (client site)<br />12525 Cingular Way<br />Suite 3550<br />Alpharetta, GA 30004 <br /> <br /> Atlanta<br />900 North Point Parkway<br />Suite 300<br />Alpharetta, GA 30005<br />Phone: 1-678 893-6807 Atlanta<br />5405 Windward Parkway<br />Suite 125<br />Alpharetta, GA 30004<br />Phone: 1-678 893-2391 Valdosta<br />3947 North Oak Street Extension<br />Valdosta, GA 31605<br />Phone: 1-229 293-7600 <br /> <br /> Idaho <br /> Pocatello<br />805 North Main Street<br />Pocatello, ID 83204<br />Phone: 1-208 239-7200 <br /> <br /> Kansas <br /> Lenexa<br />14425 College Boulevard<br />Suite 170<br />Lenexa, KS 66210<br />Phone: 1-913 327-6500 Olathe<br />400 N. Rogers Road<br />Olathe, KS 66062<br />Phone: 1-913 782-3333 Overland Park (client site)<br />6580 Sprint Parkway<br />Overland Park, KS 66251 <br /> <br /> Wichita<br />7236 East Harry Street<br />Wichita, KS 67207<br />Phone: TBA <br /> <br /> Kentucky <br /> Erlanger<br />Circleport II Business Park<br />1101 Pacific Avenue<br />Erlanger, KY 41018<br />Phone: 1-859-292-3702 <br /> <br /> Louisiana <br /> Baton Rouge<br />7173 Florida Boulevard<br />Suite 200<br />Baton Rouge, LA 70806<br />Phone: 1-225 201-8601 <br /> <br /> Michigan <br /> Detroit (client site)<br />100 Renaissance Center<br />Detroit, MI 48265 Troy (client site)<br />1350 John R. Road<br />Troy, MI 48083<br />Phone: 1-248 577-7000 <br /> <br /> Missouri <br /> St. Louis<br />1900 Meyer-Drury Drive<br />Arnold, MO 63010<br />Phone: 1-636 282-6200 St. Louis<br />41 Village Square<br />Hazelwood, MO 63042<br />Phone: 1-314 506-8400 <br /> <br /> Nebraska <br /> Lincoln<br />210 Gateway Mall<br />Suite 106<br />Lincoln, NE 68505<br />Phone: 1-402 498-4100 Omaha<br />2121 North 117th Avenue, Suite 100<br />Omaha, NE 68164<br />Phone: 1-800 647-2159 <br /> <br /> New Jersey <br /> Bedminster (client site)<br />One AT&T Way<br />Bedminster, NJ 07921 <br /> <br /> New Mexico <br /> New Mexico<br />6301 Jefferson Street<br />Albuquerque, NM 87109<br />Phone: 1-505-761-7734 <br /> <br /> North Carolina <br /> Charlotte (client site)<br />10101 Claude Freeman Drive<br />Charlotte, NC 28262<br />Phone: 1-704 414-4336 Charlotte <br />8600 McAlpine Park Drive<br />Charlotte, NC 28211<br />Phone: 1-704 367-3301 Greenville<br />1130 Sugg Parkway<br />Greenville, NC 27834<br />Phone: 1-877 500-1752 <br /> <br /> Jacksonville<br />4329 Western Boulevard<br />Jacksonville, NC 28546<br />Phone: 1-910 937-6213 <br /> <br /> Ohio <br /> Cincinnati<br />4650 Montgomery Road<br />Norwood, OH 45212<br />Phone: 1-513-841-0505 Cincinnati<br />229 West Seventh Street<br />Cincinnati, OH 45202<br />Phone: 1-513 784-5900 <br /> <br /> Oklahoma <br /> Oklahoma City<br />1705 South Broadway<br />Moore, OK 73160<br />Phone: 1-888 688-7499 Tulsa<br />Triad Center I<br />7666 E. 61st St., Suite 450<br />Tulsa, OK 74133<br />Phone: 1-918 461-4700 <br /> <br /> Pennsylvania <br /> Wilkes-Barre<br />60 Public<br />Wilkes-Barre, PA 18701<br />Phone: 1-800 378-1516 <br /> <br /> Tennessee <br /> Chattanooga<br />5600 Brainerd Road<br />Unit 3<br />Chattanooga, TN 37411<br />Phone: 1-423 893-6300 Clarksville<br />690A North Riverside Drive<br />Clarksville, TN 37040<br />Phone: 1-931 221-3000 <br /> <br /> Texas <br /> Austin<br />810 Hester's Crossing<br />Suite 250<br />Round Rock, TX 78681<br />Phone: 1-512 382-2722 Brownsville<br />935 North Expressway<br />Brownsville, TX 78520<br />Phone: 1-877 453-6066 Houston<br />12031 North Freeway<br />Houston, TX 77060<br />Phone: 1-281 765-3400 <br /> <br /> Killeen<br />4501 Roy J. Smith Drive<br />Killeen, TX 76543<br />Phone: 1-254 680-6247 Laredo<br />2451 Monarch Drive<br />Laredo, TX 78045<br />Phone: 1-956 728-5500 Longview<br />North Loop Plaza<br />2545 Judson Road<br />Longview, TX 75605<br />Phone: 1-903 232-3100 <br /> <br /> Lubbock<br />3701 West Loop 289<br />Lubbock, TX 79407<br />Phone: 1-806 472-6600 Pharr<br />500 North Jackson Road<br />Pharr, TX 78577<br />Phone: 1-956 784-6800 <br /> <br /> Utah <br /> Cedar City<br />2460 West Highway 56<br />Suite 1<br />Cedar City, UT 84720<br />Phone: 1-435 867-3000 Logan<br />1525 N 600 East<br />Logan, UT 84341<br />Phone: 1-435 750-1400 Ogden<br />1400 West 4400 South<br />Ogden, UT 84405<br />Phone: 1-800 543-6423 <br /> <br /> Orem<br />1409 North Research Way<br />Bldg. J<br />Orem, UT 84097<br />Phone: 1-801 765-7170 Orem<br />1201 North Research Way<br />Bldg. Q<br />Orem, UT 84097<br />Phone: 1-801 765-7170 Orem<br />1201 North Research Way<br />Bldg. Q<br />Orem, UT 84097<br />Phone: 1-801 765-7000 <br /> <br /> Salt Lake City<br />860 West Levoy Drive<br />Taylorsville, UT 84123<br />Phone: 1-801 579-2000 Salt Lake City<br />995 West Levoy Drive<br />Taylorsville, UT 84123<br />Phone: 1-801 579-2000 Salt Lake City<br />1065 West Levoy Drive<br />Taylorsville, UT 84123<br />Phone: 1-801 579-2000 <br /> <br /> Virginia <br /> Reston<br />11800 Sunrise Valley Drive<br />Reston, VA 20191<br />Phone: 1-703 885-5600 <br /> <br /> Wisconsin <br /> Appleton<br />W 6280 Aerotech Drive<br />Appleton, WI 54914<br />Phone: 1-800 433-6001 <br /> <br /> Canada<br /> Alberta <br /> Edmonton<br />38th Avenue at Millwoods Road<br />Edmonton, Alberta<br />T6K 3L6<br />CANADA<br />Phone: 1-780 490-4000 Lethbridge<br />#2 - 200 - 4th Avenue South<br />Lethbridge, Alberta<br />T1J 4C9<br />CANADA<br />Phone: 1-403 329-7000 Red Deer<br />Bower Place<br />4900 Molly Bannister Drive<br />Red Deer, Alberta<br />T4R 1N9<br />CANADA<br />Phone: 1-403 357-5000 <br /> <br /> British Columbia <br /> Kamloops<br />2121 East Trans-Canada Highway<br />Kamloops, British Columbia<br />V2C 4A6<br />CANADA<br />Phone: 1-250 571-5800 <br /> <br /> Manitoba <br /> Brandon<br />638 Princess Avenue<br />Brandon, Manitoba<br />R7A 0P3<br />CANADA<br />Phone: 1-204 578-3800 Winnipeg<br />14 Fultz Boulevard<br />Winnipeg, Manitoba<br />R3Y 1V3<br />CANADA<br />Phone: 1-204 833-8400 Winnipeg (client site)<br />333 Main Street<br />PO Box 6666<br />Winnipeg, Manitoba<br />R3C 3V6<br />CANADA<br /> <br /> Newfoundland <br /> St. John's<br />274 Torbay Road<br />St. John's, Newfoundland<br />A1A 4E1<br />CANADA<br />Phone: 1-709 757-1700 St. John's<br />430 Topsail Road<br />Box 91<br />St. John's, Newfoundland<br />A1A 4E1<br />CANADA<br />Phone: 1-709 757-7000 <br /> <br /> Nova Scotia <br /> Digby<br />421 Burns Hill Road<br />Cornwallis Park<br />Cornwallis, Nova Scotia<br />B0S 1H0<br />CANADA<br />Phone: 1-902 638-0101 Halifax<br />60 Highfield Park Drive<br />Dartmouth, Nova Scotia<br />B3A 4R9<br />CANADA<br />Phone: 1-902 491-5801 New Glasgow<br />610 East River Road<br />New Glasgow, Nova Scotia<br />B2H 3S2<br />CANADA<br />Phone: 1-902 753-3000 <br /> <br /> New Glasgow<br />690 East River Road<br />New Glasgow, Nova Scotia<br />B2H 3S1<br />CANADA<br />Phone: 1-902 753-3000 Truro<br />2 Tower Road<br />Truro, Nova Scotia<br />B2N 5A9<br />CANADA<br />Phone: 1-902 896-8100 <br /> <br /> Ontario <br /> Ottawa<br />1670 Heron Road<br />Ottawa, Ontario<br />K1V 0C2<br />CANADA<br />Phone: 1-613-667-1000 Welland<br />300 Lincoln Street<br />Welland, Ontario<br />L3B 4N4<br />CANADA<br />Phone: 1-905 736-6070 Windsor (client site)<br />285 Giles Boulevard East<br />Windsor, Ontario<br />N9A 4C3<br />CANADA<br /> <br /> Europe<br /> Belgium <br /> Brussels<br />Rond Point Schuman 6<br />1040 Brussels<br />BELGIUM<br />Phone: 32 2 782 11 68 Diegem (client site)<br />Pegasus Park<br />De Kleetlaan, 6A<br />B-1831 Diegem<br />BELGIUM Evere (client site)<br />Luchteschipstraat<br />Evere 1140<br />BELGIUM <br /> <br /> Denmark <br /> Herlev (client site)<br />Horkaer 26<br />DK-2730 Herlev<br />DENMARK <br /> <br /> France <br /> Paris<br />1, quai de Grenelle<br />75015 Paris<br />FRANCE <br />Phone: 33 1 5677 3600 Issy-Les-Moulineaux (client site)<br />Immeuble Atlantis<br />11 rue Camille Desmoulins<br />92782 Issy-Les-Moulineaux<br />FRANCE <br /> <br /> Germany <br /> Frankfurt<br />Business Park Moerfelden<br />Waldecker Strasse 11<br />64546 Moerfelden-Walldorf<br />GERMANY<br />Phone: 49 6105 702 0 <br /> <br /> Hungary <br /> Budapest (sales)<br />Dorottya Udvar<br />Bocskai ut 134-146<br />1113 Budapest<br />HUNGARY<br />Phone: 36 1 505 30 15 <br /> <br /> Israel <br /> Herzlia<br />11 Shenkar Street<br />Herzlia, Israel 46725<br />(Mailing Address)<br />P.O. Box 2023<br />Herzlia 46725<br />ISRAEL<br />Phone: 972 9971 6555 Tel Aviv (client site)<br />Atidim Technology Park<br />Dvora Hanevia Street<br />Tel Aviv 61131<br />ISRAEL <br /> <br /> The Netherlands <br /> Amsterdam (client site)<br />Haarlerbergpark<br />Haarlerbergweg 13-19<br />1101 CH Amsterdam<br />THE NETHERLANDS Utrecht (sales)<br />Hojel City Centre - Bldg. D<br />Graadt van Roggenweg 328<br />3531 AH Utrecht<br />THE NETHERLANDS<br />Phone: 31 30 298 2218 <br /> <br /> Portugal <br /> Lisbon<br />Rua Mario Viegas 2<br />2750-781 Cascais<br />Lisbon<br />PORTUGAL<br />Ph: 351 21 482 1282 <br /> <br /> Russia <br /> Moscow (client site)<br />7th Floor, Riverside Towers<br />Kosmodamianskaya Naberezhnaya 52/3<br />Moscow 11504<br />RUSSIAN FEDERATION <br /> <br /> Spain <br /> Asturias<br />Valle de Tamon<br />33469 Carreno, Asturias<br />SPAIN<br />Phone: TBA Madrid<br />Calle Goya, 8 - 1º Izda<br />28001 Madrid<br />SPAIN<br />Phone: 34 91 181 39 50 <br /> <br /> Switzerland <br /> Geneva<br />18, Avenue Louis-Casai<br />1209, Geneva<br />SWITZERLAND<br />Phone: 41 (0)22 747 75 67 <br /> <br /> Turkey <br /> Istanbul<br />Fulya Mahallesi<br />Åžehit Niyazi Sokak<br />UÄŸur Apt. No.15/8<br />Mecidiyeköy<br />ÅžiÅŸli, Ä°stanbul<br />TURKEY<br />Phone: TBA <br /> <br /> United Kingdom <br /> Cambourne (regional office)<br />Cambourne Business Park<br />Building 1020<br />Cambourne<br />Cambridge CB23 6DN<br />England, UNITED KINGDOM<br />Phone: 44 1223 705000 Cambourne<br />Cambourne Business Park<br />Building 2010<br />Cambourne<br />Cambridge CB23 6DN<br />England, UNITED KINGDOM<br />Phone: 44 1223 705000 Cambridge<br />Block 3<br />Westbrook Centre<br />Milton Road<br />Cambridge CB4 1YG<br />England, UNITED KINGDOM<br />Phone: 44 1223 488000 <br /> <br /> Guildford<br />Avaya House<br />Cathedral Hill<br />Guildford, Surrey<br />GU2 7YL<br />England, UNITED KINGDOM<br />Phone: 44 1954 714700 London (client site)<br />Hatfield Business Park<br />Hatfield, Herts A10 9BW<br />England, UNITED KINGDOM London (client site)<br />9-11 New Square<br />Bedfont Lakes<br />Feltham, Middlesex<br />TW14 8HA<br />England, UNITED KINGDOM <br /> <br /> London<br />8 The Square<br />Stockley Park, Uxbridge<br />Middlesex, UB11 1FW<br />England, UNITED KINGDOM<br />Phone: 44 208 610 6046 Newcastle<br />Central Square<br />Forth Street<br />Newcastle-upon-Tyne<br />NE1 3PJ<br />England, UNITED KINGDOM Southampton<br />Phi House, Enterprise Road<br />Chilworth Science Park<br />Chilworth, Southampton<br />Hants SO16 7NS<br />England, UNITED KINGDOM<br />Phone: 44 2380 762600 <br /> <br /> Edinburgh<br />4 Lochside View<br />Edinburgh Park<br />Edinburgh EH12 9DH<br />Scotland, UNITED KINGDOM<br />Phone: 44 131 200 5000 <br /> <br /> Middle East<br /> Egypt <br /> Cairo (client site)<br />26 Ramsis Street<br />International Building<br />Cairo<br />EGYPT Cairo/Lazoghly(client site)<br />Mansoor Street<br />Lazoghly - Cairo<br />EGYPT Cairo/Maadi<br />25A 84 Street<br />Maadi Cairo<br />EGYPT Phone: TBA <br /> <br /> Cairo/Maadi (client site)<br />El Nadr Street<br />Maadi - Cairo<br />EGYPT <br /> <br /> Oman <br /> Muscat (client site)<br />Nawras HQ<br />Al Azaiba<br />Muscat<br />SULTANATE OF OMAN <br /> <br /> Qatar <br /> Doha (client site)<br />Qtel HQ<br />West Bay Lagoon<br />Doha<br />STATE OF QATAR <br /> <br /> United Arab Emirates <br /> Dubai<br />Dubai Airport Free Zone<br />3rd East Wing, 4th Floor<br />PO Box 54620<br />Dubai<br />United Arab Emirates<br />Phone: 971 4 214 9892 Dubai (client site)<br />Building Number 10<br />Cisco Office<br />Dubai Internet City<br />Dubai<br />United Arab Emirates <br /> <br /> China <br /> Beijing (sales)<br />Unite 6, Level 6, Tower W2, Oriental Plaza<br />1 East Chang An Avenue<br />Dong Cheng District<br />Beijing 100738<br />CHINA<br />Phone: 86 10 8520 0243 Dalian<br />5th Floor<br />No. 5 Digital Square<br />Dalian, 116023<br />CHINA<br />Phone: 0411 3970 7800 Hong Kong (sales)<br />Suite 1011, One Pacific Place<br />88 Queensway<br />Hong Kong<br />CHINA<br />Phone: 852 2918 0778 <br /> <br /> Shanghai<br />Level 29, Shanghai Kerry Center<br />1515 West Nanjing Road<br />Shanghai, 200040<br />CHINA<br />Phone: 86 21 6103 7135 Shanghai (client site)<br />Units 01A & 6-11 7th Floor the Center<br />989 Chang Le Road<br />Shanghai, 200031<br />CHINA <br /> <br /> India <br /> Bangalore<br />No. 26, Zam Zam Complex<br />1st Floor, Infantry Road<br />Bangalore 560 001<br />INDIA<br />Phone: 91 80 286 5386 Bangalore<br />55, Divyasree Towers<br />Bannerghatta Main Road<br />Bangalore, Karnataka - 560 076<br />INDIA<br />In US: 1-801 747-4401<br />Outside US: 91 80 26095300 Hyderabad<br />#5&43 HiTec City,<br />Madhapur<br />Hyderabad - 500 081<br />INDIA<br />Phone: 91 40 6623 5000 <br /> <br /> Hyderabad<br />1-10-178, Varun Towers II, 4th Floor<br />Begumpet<br />Hyderabad - 500 016<br />INDIA<br />Phone: 91 40 2343 7301 Mumbai<br />6th Floor, Paradigm Building<br />A-Wing, Mind Space, Off Link Road<br />Malad (West), Mumbai - 400 064<br />INDIA<br />Phone: 91 22 5649 4400 New Delhi<br />Vipul Agora<br />4th Floor, Sector-28<br />Chakarpur<br />Mehrauli - Gurgaon Road Gurgaon<br />INDIA<br />Phone: TBA <br /> <br /> New Delhi<br />Unitech Trade Center<br />2nd Floor, Sector-43<br />Sushant Lok-1, Block C<br />Gurgaon, Haryana - 122 001<br />INDIA<br />Phone: 91 124 257 3901 New Delhi<br />DLF Atria<br />Jacaranda Marg<br />Phase II, DLF City<br />Gurgaon, Haryana - 122 002<br />INDIA<br />In US: 1-801 747-4141<br />Outside US: 91 124 2563500 New Delhi<br />Orchid Square<br />Block B, Sushant Lok Phase I<br />Gurgaon, Haryana - 122 002<br />INDIA<br />In US: 1-801 747-4141<br />Outside US: 91 124 2572157 <br /> <br /> Pune<br />RMZ Westend, Survey No-169/1<br />D.P. Road<br />Opp. City International School<br />Aundh, Pune,<br />Maharashtra - 411 007<br />INDIA<br />In US: 1 801-747-4207<br />Outside US: 91 20 4055200 Thane<br />Tiffany Building<br />Hiranandani Estate<br />Off. Ghodbunder Road<br />Thane (West) - 400607<br />INDIA<br />In US: TBD<br />Outside US: TBD <br /> <br /> Indonesia <br /> Jakarta (sales)<br />Suite 27, 30/F<br />Menara Kadin Indonesia<br />J1. H.R. Rasuna Said Block X-5<br />Kav. 2-3<br />Jakarta, 12950<br />INDONESIA<br />Phone: 62 21 5299 4498 <br /> <br /> Japan <br /> Tokyo<br />Itochu Enex Building 6th Floor<br />1-24-12 Meguro, Meguro-ku<br />Tokyo 153-0063<br />JAPAN<br />Phone: 81 3 5740 6260 <br /> <br /> Malaysia <br /> Kuala Lumpur<br />Prima Avenue, Ground Floor, Block 3506<br />Jalan Teknokrat 5,<br />63000 Cyberjaya<br />Selangor<br />MALAYSIA<br />Phone: 603 8318 1500 <br /> <br /> Philippines <br /> Cebu City<br />R. Arcenas Street<br />Arcenas Estates<br />Banawa Hills<br />Cebu City 6000<br />PHILIPPINES<br />Phone: TBA Manila<br />7F, Tower 2<br />The Enterprise Center<br />6766 Ayala Avenue<br />Makati City 1200<br />PHILIPPINES<br />Phone: 63 2 857 7788 Manila<br />Insular Life Building<br />6781 Ayala Avenue<br />Makati City 1200<br />PHILIPPINES<br />Phone: 63 2 857 5679 <br /> <br /> Manila<br />PBCom Tower<br />6795 Ayala Avenue corner V.A. Rufino Street<br />Makati City 1200<br />PHILIPPINES Manila<br />6796 Ayala Avenue corner Salcedo St.<br />Legaspi Village, Makati City 1200<br />PHILIPPINES<br />Phone: 756-7178/88 Manila<br />Block 44, North Bridgeway<br />Northgate Cyberzone<br />Fillinvest Corporate City<br />Alabang, Muntinlupa City 1770<br />PHILIPPINES<br />Phone: TBA <br /> <br /> Manila<br />24th Floor, Robinsons-Equitable Tower<br />ADB Avenue corner Poveda Street<br />Ortigas Center<br />Pasig City 1600<br />PHILIPPINES<br />Phone: 63 2 857 7600 Manila<br />#46 Don Mariano Marcos Avenue<br />Batasan Hills<br />Diliman, Quezon City<br />1101<br />PHILIPPINES<br />Phone: TBA <br /> <br /> Singapore <br /> Singapore (regional office)<br />30 Cecil Street<br />#11-08 Prudential Tower<br />Singapore 049712<br />Phone: 65 6557 2277 <br /> <br /> Sri Lanka <br /> Colombo (sales)<br />Unit 2, Level 32<br />East Tower<br />World Trade Center<br />Echelon Square<br />Colombo 1, SRI LANKA<br />Phone: 94 112 381216 <br /> <br /> Taiwan <br /> Taiwan (sales)<br />8/F., No. 1-7, Sec 5<br />Jhongsiao E. Road,<br />Sinyi District<br />Taipei, Taipei City 110,<br />TAIWAN<br />Phone: 886 2 2746 6665 <br /> <br /> Thailand <br /> Bangkok (sales)<br />179 Bangkok City Tower, Level 5<br />South Sathorn Road<br />Thungmahamek, Sathorn<br />Bangkok 10120<br />THAILAND<br />Phone: 662 690 4300 <br /> <br /> Australia <br /> Melbourne (sales)<br />Level 3, 31 Queen Street<br />Melbourne 3000 Victoria<br />AUSTRALIA<br />Phone: 61 3 9612 8000 Sydney (client site)<br />123 Epping Road<br />North Ryde<br />Sydney 2113 New South Wales<br />AUSTRALIA <br /> <br /> Argentina <br /> Buenos Aires<br />Avda. L. N. Alem 693<br />5° Piso<br />C1001AAB Buenos Aires<br />ARGENTINA<br />Phone: 54 11 4315 7772 <br /> <br /> Brazil <br /> Brasilia<br />SCN - QD. 02 - BL. A - Salas 502/03/04<br />Ed. Corporate Financial Center<br />Brasilia-DF 70712-900<br />BRAZIL<br />Phone: 55 61 3329 6000 Sao Paulo (regional office)<br />Praça General Gentil Falcão, 108<br />2º andar - Brooklin Novo<br />São Paulo - SP<br />CEP: 04571-150<br />BRAZIL<br />Phone: 55 11 5504 6800 <br /> <br /> Colombia <br /> Medellin (client site)<br />Carrera 43A<br />No. 1 Sur - 188 Piso 9 - Oficina 912<br />Medellin,<br />COLOMBIApamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-22243438933087989282007-12-10T21:16:00.000-08:002007-12-10T21:22:39.272-08:00CONVERGYS PAPER PATTERN ON 08th AUGUST 2006 AT VIJAYAWADAHello Friens<br /><br />I have attended the Convergys campus interview on Aug 8.<br />The interview was held in our college for about 1411 students from 25 different colleges.<br /><br />The interview procedure consisted 2 phases:<br />1) Writtens test<br />2) Technical & HR interview<br /><br />Coming to the written test:<br />It has 5 sections<br />1) Inferential vocabulary round<br />2) Logical &Aptitude test<br />3) Unix programming concepts<br />4) RDBMS concepts<br />5) C programming<br /><br />The<br />1) inferential vocabulary round has a passage with blanks and 4 options to fill each blank.<br />It had 20 blanks and 22 minutes for that section<br /><br />2)The Logical and Aptitude section has 45 questions for 48 minutes.<br />It had number of problems on sets <br />Example: people studying maths 20,people studying english 30.studying both some number,Find total.....like that.<br />Around 12 questions were there<br />Logical questions on Family relations.<br />some questions on binary numbers.<br />Cube questions.<br /><br />3)The unix programming 10 questions 10 minutes.<br />4)The RDBMS concepts 10 questions 10 minutes<br />5)The c 15 questions 15 minutes....<br />Some output questions....like that.<br /><br />The major ELIMINATION ROUND was the WRITTEN TEST.<br /><br />Out of 1411 students, 98 were shortlisted for the HR&Technical interview.<br /><br />These convergys people have less requirement, that is why they have revised our cut-off, initially they kept some cut-off, then 300 students were there. So they again revised and took 98 students.<br /><br />All this revision of cut-off took place off-screen.<br /><br />I came to know these issues from our faculty members who were present at the time of revision of cut-off.<br /><br />NO negative marking. But a still more CRITICAL way of getting the score is:<br /><br />They will count Correct Answers, Wrong Answers and take %(percentage), Which is your Written test score.<br /><br />So guys/gals you have to really be sound and get through the written test in-order to get into CONVERGYS. But it's really a good company to get into.<br /><br />So ALL THE BEST for Everyonepamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-34419100685437800272007-12-10T21:13:00.000-08:002007-12-10T21:16:15.040-08:00INFOSYS PAPER ON 14th FEBRUARY AT BANGALORE40 Minutes for Data Interpretation, Data Sufficiency, Aptitude, Logical, Odd man out, what is the next figure, Venn Diagrams, Verbal and Non-Verbal Reasoning. <br /><br />18 Questions – 15 One mark + 3 Five marks (that is 3 questions with Five Sub-divisions).<br />All questions will have Four Choices and you will have to select one. No negative markings.<br />So totally 30 * 1 mark = 30 Marks. B. 35 Minutes for English – Correct the Sentences, Fill in the blanks, Reading comprehension etc.<br /><br />32 questions – 30 One marks + 2 Five Marks (that is 2 questions with Five Sub-divisions).<br />All questions will have Four Choices and you will have to select one. No negative markings.<br />So totally 40 * 1 = 40 Marks.<br /><br />A few of those questions are as follows;<br /><br />1. What is the value of M+N?<br />A. (X+M)(X+N)=X^2+5X+MN<br />B. M+N>0<br /><br />You will have to select from the following<br />A alone is enough<br />B alone is enough<br />A and B are require<br />A and B cannot give the answer.<br /><br />2. Select the best logical answer;<br />A. Tata Sumo has long life<br />B. Tata Suma uses XXX spark plug<br />C. Old spark plugs are weaker<br />D. Some trucks are Tata Sumos<br />E. Some trucks are useless (Something like this)<br /><br />Options, ABE, DEC, AEB etc<br />(best way to solve these problems are to draw a Ven Diagram yourself, if you don’t find it easy, take the options from the answers and select the best logical answer).<br /><br />3. Select the best logical answer;<br /><br /><br />Some Cheethas are Gaints<br />Some Gains are weak<br />Not all gaints are week etc <br /><br />Options, ABE, DEC, AEB etc …. <br /><br />(best way to solve these problems are to draw a Ven Diagram yourself, if you don’t find it easy, take the options from the answers and select the best logical answer).<br /><br />4. A tabular column was given with the Columns as Red, Yellow, Green and total. The Rows as Cube, Cuboids, Cones and Total. Some of the columns were unfilled. You will have to fill up the blank columns with the help of the data. Then answer the five subdivisions in them.<br /><br />Questions were like, what is the ratio between Red Cubes and Yellow cones? If all Green cones were replaced by yellow cubes, what is the ratio between Yellow cubes and Red Cuboids? Etc.<br /><br />5. A Diagram was given that looked more like a bluerpint of a house (with dimensions). Some dimensions were missing. The data given was; PQ = 3 and QR = 4. Find the value of PS?<br /><br />PS = 3<br />PS > 0 <br /><br />Options<br /><br />A alone is enough<br />B alone is enough<br />A and B are require<br />A and B cannot give the answer.<br /><br />6. A question where the data is given like, Sunday or Wednesday the exam starts and it is Biology, there are nine papers and none takes place on a single day. One day is declared as holiday in between. Maths comes after Chemistry. Physics is two days after English etc……<br /><br />Questions were; when did the exam start? When was the holiday? What is the paper after Geography etc???<br /><br />7. Then some questions like Odd Man out, Some diagrams were given, and what is the next Diagram? Or Which Diagram does not fit in?<br /><br />There were around Four to five questions like this.<br /><br />8. Find X;<br /><br />X^5=X^3 <br />X>0<br />A alone is enough<br />B alone is enough<br />A and B are require<br />A and B cannot give the answer.pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-72302088148154211942007-12-10T21:12:00.000-08:002007-12-10T21:13:52.588-08:00INFOSYS PAPER ON 31st JANUARY AT HYDERABADLOGICAL REASONING:<br /><br />1) puzzle on sequential order type <br /><br />there are 7 buses p q r s m n o each bus leaves the station at a time they have 4 rounds for each bus… first bus starts at 8:30am next after 45mins..next after 30 mins next after 1hr and next after 35mins…n so on..from Monday to Friday.. on Saturday and Sunday they start at 7:30 each after 1hr time interval. N starts after m but before s . ois the last bus no bus after it. R strts before m but not before p..<br /><br />so question s on this data was asked.?<br />a) at what time do bus m start on Saturday?<br />b) AT what time o reach on Friday?<br /><br />Around 5 questions were aske don this.<br /><br />This sort of questions are found in R.S AGRAWAL VERBAL N NON VERBAL<br /><br /><br />2) DATA SUFFICENCY: -( 5 QUESTIONS)<br />You have to decide if the information given in the statements is sufficient for answering the problem. Indicate your answer as:<br />a) alone is sufficient to answer the question.<br />b) II alone is sufficient to answer the question.<br />c) either I or II are sufficient to answer the question.<br />d) both are not sufficient to answer the question.<br />e) both are needed to answer the question.<br /><br />a) are a and b even nos?<br /><br />give a+b=even<br /><br /> a-b=odd<br />b)is x an integer?<br /><br /> Given x^4 is an integer<br /><br /> And x^3-1=0<br />3) DATA INTERPRETATION(<br /><br />5 QUESTIONS)<br /><br />A bar graph was given and questions followed them<br /><br />Its little time consuming and a bit tough also..practise R.S AGRAWAL DI question<br /><br />4)SERIES QUESTION TO FILL THE SERIES (5 QUESTIONS)<br /><br /> r.s agrawal very useful series type questions<br /><br />5)LOGICAL PUZZLE (5 QUESTIONS)<br />5 STUDENTS A B C D E F and condition give like a is heavier than b but taler then c, d is taller than b&c ….so we must find who is tallest ,heaviest…its very easy! <br /><br />Similar to R.S AGRAWAL PUZZLE QUESTION.. <br /><br /> <br /><br />6)LOGIC ARRANGMENT OF SENTENCES <br /><br />Around 5 -6 statements give u have to find the best logic from the options<br /><br />Like 5 statements given<br /><br />1) breakfast is very essential for good health<br /><br />2) breakfast must have good content of carbohydrates .<br /><br />3) eggs are good in carbohydrates.<br /><br />4) Hydrocarbons are also required<br /><br />5) So egg not good for health<br /><br />a) 123 b)324 c)451 d)325…so question like this can be solved by reading the statements and the eliminating the options.. <br /><br />SO PREPARE R.S AGRAWAL AS WELL AS CAT TIME MATERIAL IF POSSIBLE..U CAN clear the test..<br /><br />ENGLISH <br /><br />Its very easy … 2 passages but easy to solve.. Correction of sentence around 5-6 Fill in the blanks using proper tenses and prepositions type its also quite easy. Some statement given and asked to find the conclusion (4-5) Same type but asked give assumption from those statement..pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-84713137140357958412007-12-10T21:10:00.000-08:002007-12-10T21:11:53.791-08:00INFOSYS PAPER ON 7th JANUARY AT CHENNAI1) Most of the series of question paper has the CUBE problem as first question. Never get pissed off, its always 3*3 ,4*4 ,5*5 rarely 10*10 cube given.<br />My question was this<br />A CUBE OF 15M IN LENGTH IS CUT INTO FEW SMALLER CUBES IN SUCH A WAY THAT THE CUBES ARE EQUALLY 3M IN SIDE, AND THE CUBE IS PAINTED GREEN ,BLUE, YELLOW ON ALL THE PAIR OF OPPOSITE SIDES, ANSWER THE FOLLOWING QUESTIONS.<br /><br />A) How many cubes are no side painted<br /><br />B) How many cubes 1 side painted<br /><br />C) How many cubes 2 sides painted<br /><br />D) How many cubes 3 sides painted<br /><br />E) How many cubes painted 3 sides with 3 different colors.<br /><br />Solution: Please have ref to cubes and dices topic from verbal and non-verbal rs.agarwal<br /><br />Approach can be like this.. What ever the cube is given take it into layers. Top layer, bottom layer and the middle layer(s). Since this cube is 5*5 u have 3 middle layers. Draw down the cube immediately and use pencil, blue pen and black pen to isolate the 1 side painted,2 side painted,3 sides painted . this is how u can approach. Cube problem always consumes time. So my suggestion is to have it as a last option.<br /><br />2) This was picture oriented problems. <br /><br />My question paper had missing fig identification. So picture problems can be of <br /><br />àcontinue the series <br /><br />àmissing one( the third missing ll b asked) <br /><br />àodd one out <br /><br />It took 5mins completely. U need to have concentration more and ur observing needs to b fixed on to the paper. Clues are.. first check for the shapes, then direction, then fig in fig out combinations, addition of new fig will b little complicated don get screwed up. If there is a elimination of a part in the fig jus check out if there is addition of a new fig.this is the approach. U need to spend min 5 mins max of 10 mins. Never ignore the RS Agarwal pictures problems.<br /><br />3)Data sufficiency.<br /><br />RSAgarwal doesn help much in this section.so please go thro any cat materials for this particular section. Coz it always analytical or geometrical checks for solution. RSAgarwal has jus the theory-based questions.<br /><br />1) pnr calculation ,find p . Data given were n separately and r separately<br />2) a square with diagonal was given, and the data were measure of the side and the value of the diagonal. Question was to say if it is a square or not.<br /><br />3)a theoretical question to find if ravi is an engineer or not data were a) all ram’s friends are engineers b) ravi is not ram’s friend.<br />4) a equation was given and the constant was asked algebraically calculation. Both the data were required.<br /><br />5) This was again a theory .i forgot the question.. Sorry<br /><br />The other possibilities are linear equations also<br /><br />4)Data interpretation.<br /><br />This section was really a mind blowing one. Consumes 15 mins atleast,<br /><br />A stock market bar graph was given and 5 questions followed. Out of which 3 questions were based on the average calculation. Even the difference was with decimals so u need accurate calculation. But don waste time. Look for 2 direct questions and answer them first . and calculate average and if have patience to do that do it else ignore the 3 questions.<br /><br />It took more than 15 mins for me ..<br /><br />5)Now again comes the logical based critical , here u need to concentrate on all the topics given in puzzles and misallanous puzzles from RSAgarwal. Puzzles are not literally puzzles like shakunthala Devi or joerge summers they are like how its given in RSAgarwal verbal n non verbal<br /><br /> Five to six topics are there plz don ignore any topic coz they ask from any of the six. They can be from commity formation,sequential problems(Monday thro saturady and timings based) ,seating arrangement or venn diagram based and what was asked for me was from blood relations. It was very simple but don ignore any section.<br /><br />My question was Radha and manillal had 2 children simma and shilpa, sima is married to anuj son of jaggar and monish they have 2 children rita and sony.prathika who si anuj sister got married to shushim they have a child arjun.<br /><br />Questions were like how they are related to each other.. no names were missed out in the question. So first draw out the father mother child tree u can get it easily, have the couples name together so tat u need not confuse with husband wife and obviously the couple ll have children so u can categorize it easily.<br /><br /><br />6) Logical sequence. <br /><br />The options were more logical indeed unlike cats are humans, bats are balls.. Nothing like that it was very logical<br /><br /> For eg:<br /><br />a) All the detergents are chemicals<br /><br />b) All the detergents are harmful<br /><br />c) Brand x is a detergent<br /><br />d) Brand x is not harmful<br /><br />e) Brand x is harmful so if u understand the sense in it u can logically arrange it.<br /><br />However u prepares urself make sure that u don waste time there with one problem and leave the rest. In data interpretation and relationship kind of problems check out if u could predict at least 2 answers jus go with that don confuse with the rest 3.<br /><br />VERBAL ..<br /><br />1) compherension<br /><br />there are 2 comprehension asked out of which one will be sequentially questioned,. Ur first question will have the answer in the first Para the second in the second like that the other comprehension will be ant sequential first questioned at the last so the tip I can give is .. read the questions have the questions behind the mind then start reading the Para and the second tip is never do comprehension first keep it for the last 10 mins.<br /><br />One compre would take 7 mins and the other 3 mins. So plan accordingly<br /><br />2) comprehension (anti sequential)<br /><br />3) pick out the right sentence from the given 4 sentences.<br /><br />The concentration is more into prepositions. So check for the words like, of,off,for,from ,by and all preposition word. Don keep reading the entire sentence coz the sentence is lengthy, trace out where the difference is made and check which would be apt one.<br />4) fill in the blanks with suitable phrases, very very simple<br /><br />eg: -------------------- lost my wallet I had to go back home to get the money<br /><br />a) as I had<br />b) though I<br />c) even when<br />d) because<br /><br />HR questions.<br /><br />Panel of two one male one female always Mark sheet verification is first done, u need to have photocopies of all Ur mark sheets (this was not intimated and few were running for photo copies) <br /><br />Mam: had ur lunch<br /><br />Sir: so 2005 passed out?<br /><br />Mam: Ur name sounds different what is the meaning<br /><br />Sir: so u r employed now?<br /><br />Mam: what is that u enjoy in ur job?<br /><br />Sir: have u ever felt this job bores?<br /><br />Mam: how is Ur boss to u<br /><br />Sir: tell me about Ur job profile explain it<br /><br />Mam: how many employees in ur company<br /><br />Mam: when was Ur Company established?<br /><br />Mam: who is the C.E.O in ur company<br /><br />Sir: why do u need a change from networking to software<br /><br />Mam: do u mind relocating ?<br /><br />Sir: marriage plans?<br /><br />Sir : situation was given , customer x needs a lower end product but ur manager asks u to sell a higher end product , what will u do ( keep the key in mind cutomers first and I answered keeping that in mind)<br /><br />Mam: so u sing ? ( my hobby said that ) and u cook ?? so how do u manage home , mom and office together ? ( since my mom was bed ridden she asked that )<br /><br />Mam: have u organized any programs at college or office? Have u enjoyed that? I said with examples.<br /><br />Sir: a puzzle at the four corners tress are there in between which a square shaped swimming pool was thr of side measure 1 m ,. How will u expand the swimming pool 4 times more without removing the tress?<br /><br /> Sir : have u ever been a decision maker in ur job ?<br /><br />Mam: has ur boss accepted all ur decisions?( I answered with example and said 6/7 is accepted)<br /><br />Sir: why was the one decision denyed?<br /><br />Mam: have u inrecated with all the employees at office?pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-59544616778315386452007-12-10T21:02:00.000-08:002007-12-10T21:07:57.241-08:00INFOSYS PAPER ON 01st FEBRUARY AT NOIDA<strong><strong> The Written test was the “Real Eliminator“and only 150 cleared it, out of massive 450 from JSS… The pattern was as follows— <br /><br /> Paper-1: General mental ability. (30 Questions in 45 minutes) <br /><br /> Paper-2: English Aptitude. (40 Questions in 30 minutes) <br /><br /> For Mental Ability you should refer any CAT material (TIME, IMS, PT, C.L….) <br /><br /> If u r short of time, then Practice from R.S. Agarwal books (Verbal & Non-Verbal as well as Quantitative Analysis) <br /><br /> Mind it Questions were “very very tough “ and you need serious preparation, my score was 20 out of 30 and a guy having 17 also cleared so<br /> make sure you do at least 17 correctly …</strong></strong><br /> Questions were of type: <br /><br /> 1.Data Interpretation (Long Hectic Calculations, Practice them well Guys!!!!!). <br /><br /> 2.Find the next figure pattern (Super Tough, Practice well). <br /><br /> 3.Arguments-C onclusions type. <br /><br /> 4.Blood Relation Problems. <br /><br /> 5.Puzzles from R.S Agarwal. <br /><br /> 6.Logical Deduction. <br /><br /> So guys and gals, main area of concern is time management so attempt the easy ones first, and then make a try at their tougher counterparts. <br /><br /> English was easy. I did not prepare for it at all and people from ICSE Board have no need to worry, but friends from UP Board need to work <br /> at it, have a look at CAT Material from (TIME, IMS).. <br /><br /> I Scored 28 out of 40 but guys with 20 also got through, so Friends make sure u score up to the half way mark…………. <br /><br /> Questions were of type: <br /><br /> 1.Reading Comprehension (Long Ones so Attempt it at last). <br /><br /> 2.Argument-Conclusion type. <br /><br /> 3.Correction of Sentences. <br /><br /> 4.Choosing grammatically correct sentences. (Tough, so Practice well). <br /><br /> English Exam is basically to check ur Grammar so if u r good at it then no problem, both papers have separate cut-off so make sure u clear<br /> both independently as well… <br /><br /> Written Results were out in about 5 hour time and 152 cleared, out of eligible 450. Our Interviews were scheduled on next day i.e. 1st February. <br /><br /> 112 were selected finally out of 152, so JSS kept its Reputation yet again. <br /><br /> INTERVIEW EXPERIENCES.. <br /><br /> There were 16 different panels of interview. Some were female H.R’s (Be careful they can make u feel nervous). My Interview was with <br /> panel No. 14, it was a bit easy for me to tackle as she was a lady H.R. (I can handle Females well??????) Jokes apart, the I’view were totally<br /> H.R. and non-technical, basically they were checking for: <br /><br /> 1.Verbal Communication Skills. <br /><br /> 2.Confidence Level (Make Eye contact, they can do magic.) <br /><br /> 3.Situation Reaction tests (Test for Spontaneity.) <br /><br /> <br /><br /> 4.Stress Handling Capacity. <br /><br /> 5.Overall way of Walking, Talking & Dressing. <br /><br /> It was not a big deal for me…<br /><br /> Some Questions from my Interview <br /><br /> 1.What qualities would u like 2 have in ur wife? (I was pleased to post my matrimonial at my interview…. Ha Ha Ha !!!!!!) <br /><br /> 2.Do u want a housewife or a professional wife? <br /><br /> 3. Tell me something about u and ur family? (This is their favorite question so prepare it well.) <br /><br /> 4.Your Hobbies, Interests, Strengths and Weaknesses, some other questions from C.V? <br /><br /> 5.Incidents in support of all that u have mentioned in C.V? (So Please don’t lie.) <br /><br /> 6.Why is there a drop in your Percentage? <br /><br /> 7.Do u think it is a good Percentage? <br /><br /> 8.Any Problem in Relocation? (Strict no no.) <br /><br /> 9.Questions from the Shilpa Shetty episode in big brother. <br /><br /> 10.Questions from the one day match b’ween India and West Indies the previous day. It was easy for me as I saw the match live. <br /><br /> 11.Questions from current events like Tata-Corus deal, Mital-Arcelor deal. <br /><br /> 12.Questions from Nithari tragedy as we are in Noida so we were expected to know more abt it than what read from Newspapers. <br /><br /> 13.Any plans for higher studies? (Big No!!!!) <br /><br /> 14.Why do u want to switch over to Software Field? (this is common for non CS/IT people, I am in EC and explained her well my Love<br /> towards Computers right from the start.) <br /><br /> 15.Why do u wanna join Infosys? <br /><br /> 16.Why should we hire you? <br /><br /> 17.Qualities of a leader, how will u resolve disputes? <br /><br /> 18.What is AIDS? In Detail… <br /><br /> 19.As I m an active blood donor so she asked me my blood group, haemoglobin content, max. blood which one can donate, all were<br /> rapid-fire…. <br /><br /> 20. She gave me a puzzle, I don’t remember exactly but there were two cakes circular, joined together, we had to make 6 cuts to get max. <br /> pieces, make it and tell the no. of pieces. (What they see is your approach of solving under pressure, as full solution is attained by only 10 out <br /> of 100 people, so try try and don’t stop until she tells u.) <br /><br /> 21. Do you want to ask something from me? (Prepare a good question as not asking any question shows serious disinterest towards company, plz don’t ask salary, perks, allowances u will come to know them as soon as u r selected.) <br /><br /> MY ADVICE<br /> 1.Be confident, always put up a smile on your face. <br /><br /> 2.Never use words like Cool, Guy, Dude, Gal, Yup, Funda. (I worked hard for this). <br /><br /> 3.Give closed answers, open answers invite trouble as a series of questions emerge from those. <br /><br /> 4.Dress well, like a professional, dark trouser with matching shirt and tie. shirt’s collar button should be closed. <br /><br /> 5.Don’t deny your own point, stick to it. <br /><br /> 6.Read Newspaper daily, Especially Business news. <br /><br /> 7.Have a knowledge of Chief Ministers of states, Major Cabinet Ministers, Chief Justice, Speaker of L.S etc <br /><br /> 8.Prepare your C.V well and mug it up hard. <br /><br /> 9.Don’t lie, if u and ur C.V contradict u r Gone<br /><br /> 10.Arrange Mock Interviews with your Friends, it helpspamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-17892946477140489532007-12-10T06:55:00.001-08:002007-12-10T06:55:16.238-08:00HEXAWARE CAMPANY PAPERS2Sample papers >><br />Hexaware - Question paper - 01 Conducted On -- 26-June-2003<br />--------------------------------------------------------------------------------<br />Hexaware Technologies-Exam Conducted on 26-June-2003<br />Pattern - 100 qns in 60 mins<br />Verbal<br />Find the Wrongly Spelt word<br />Synonym<br />Antonym<br />Fill in the blanks<br />Aptitude (purely mathematical)<br />- Better have a look at the previous 1998 qn paper, from that we got many questions.<br />- strong analytical geometric and mensurational skills needed.<br />Computer Awareness<br />- Simply like find odd man out and 10 qns regarding 2 pseudocodes given<br />Time Constraint was the big thing, u cannot complete the paper if u solve all the<br />qns, its not needed also, they're just seeing the relative mark, in our college from 150<br />, 29 were shortlisted for GD and from it 12 were shortlisted for Interview, i missed<br />out in GD.<br />Topics were War on Iraq, Leaders Born or Made<br />Try to assess ur group in GD, if u think its of to be an debating group, pls don't<br />follow GD rules, and create ur oppurtunities for speaking as raising ur tone,<br />intervening the conversation going on, 'its pretty sure that u'll be going off the GD<br />rules, but it was the case in our group", i followed GD rules and i missed it out.<br />+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br />+++++++++<br />Hexaware Testv1.0 ------- June 2003<br />LANGUAGE SKILLS - 15questions<br />---------------<br />SYNONYMS,ANTONYMS & INCORRECT SPELLINGS<br />some words<br />1. acrimonous<br />2. inconspicious<br />3. bland<br />4. abate<br />5. cusp<br />6. profligate<br />7. vigour<br />8. lighten<br />(check the spellings in dictionary)<br />APTITUDE SECTION - 85questions<br />-----------------------------<br />odd man out-like man in<br />------------------------<br />1. A E I O<br />ans o - (rest are made of lines now tell me are a big zero)<br />2. (fig) circle star rectangle<br />ans star - rest are flowchart symbols<br />3. programs documents settings properties<br />ans properties (others appear in START menu - he! my favourite<br />question)<br />4. processor ,motherboard ,display card, mouse<br />ans mouse - (others are inside the cabinet -- need out of the box<br />thinking)<br />computer UNawareness<br />--------------------<br />5. where is SIM card found<br />ans mobile phone (by the way can you expand SIM)<br />6. what is the lock symbol appearing in bootom of the browser mean<br />ans. connection secured (confusing another choice is Verisign<br />secured - you will see tick mark when it is Verisign authorised)<br />7. expand WAP<br />ans Wireless Application Protocol<br />8. expand CORBA<br />ans Common Object Request Broker Architeture<br />9. 92.168.100.4 - means what<br />ans IP Address<br />crack choice a)sums choice b)your head<br />--------------------------------------<br />10. Find the reminder when 333666777888999 divided by 3 or 9 or 11 ?<br />11. Which is the biggest perfect square amongst the following :<br />15129, 12348, 23716, 20736<br />12. In the series 0, 3, 8, 15,__ What is the next number?<br />13. X < 0, Y <> 0 then what is the possibility that the result is<br />always positive?<br />Ans. (xy)^2<br />14. Let ax2 + bx + c = 0<br />If the sum of the equal roots is equal to the product of the same<br />roots.Then which of the following hold true<br />(a) a + b = 0<br />(b) a = 0<br />(c) c = 0<br />(d) a + c = 0<br />15. Find the value of (1.99)2<br />Ans. 3.9601(dont calc - should be near to 4)<br />16. There is a room with 6' x 8'. A 1' tile is fixed along the 4<br />walls in one row. How many 1" tiles require to<br />finish the work.<br />Ans. 24<br />17. 2 persons can finish a job in 8 days. First person alone can<br />finish the work in 24 days. How many days<br />does the second person take to finish the job?<br />Ans. 12 days<br />18. In a car wheel, two spokes cover 15 degree. Then for the entire<br />car,how many spokes are there?<br />Ans. 24.<br />19. What is the angle of degree suspended when two hands of clock<br />showing the time 2.30.<br />Ans. 105 degrees<br />20. A person's salary is getting reduced by 20%. What percentage<br />should be added to get back his<br />original salary?<br />Ans. 25%<br />21. Two persons start at the same point, walk in opposite directions<br />with 5km/hr and 5.5km/hr respectively.<br />What is the distance separated after 2 and half hrs?<br />Ans. 26.25 (approx)<br />22. A person starts walking at a speed of 5km/hr through half the<br />distance, rest of the distance he covers with a<br />speed 4km/hr. Total time of travel is 9 hours. What is the maximum<br />distance he can cover?<br />Ans. 40km.<br />23. In a rectangle the length is increased by of the original<br />length . By what proportion should the<br />width be reduced so that the area will be the same?<br />Ans. 33<br />24. Find the nth number in the series is 1, -3, 5, -7.___<br />Ans. (-1)*(2n-1)<br />25. If a square is formed by the diagonal of the square as an edge,<br />what is the ratio between the area?<br />Ans. 2<br />26. The perimeter of a rhombus is 52 units. One of its diagonal is 24<br />units.What is its second diagonals length?<br />Ans. 10<br />27. A cubical rectangular bar has the dimensions with the ratio 5 :<br />4 : 3. Its volume is 7500. What is the<br />surface area of the bar?<br />Ans. 2350<br />28. A persons salary iis decreased by steps of 20%, 15% and 10%. What<br />will be the percentage decrease, if the<br />salary is decreased in a single shot?<br />29. 3 persons started placementpapers with a capital of Rs.3000 . B<br />invest Rs.600 less than A, C invest Rs.300 less<br />than B. Then what is the share amount of B in a profit of Rs.886 ?<br />,<br />30. 178^2 -22^2<br />(USE (A+B)(A-B))<br />31. f(x) = x! g(x)=x^10 h(x)= 10^x for large values of x which is<br />greater?<br />32. f(x) = 1/(1-x) find(f(f(f(x)))<br />33. x+(1/x) = 2.5 find x^2 + (1/x^2)<br />34. 2^(2^n) = 256 find 2^(2n)<br />35. x=0 y=0 6x+7y=42 find position(lies inside/out/on) of (4,5) in<br />the triangle<br />36. 22 Jun 2003 is sunday which year previously did 22 jun became<br />sunday<br />37. A man walked 30m west 5m south 10m west 35m north to reach<br />tollgate find the dist from start to gate.<br />ans. 50m (use pythogoras)<br />38. area of square = sum of areas of rect1(41*27) and rect2(41*14).<br />find square side.<br />ans. 41<br />39. find next in series 31,29,31,30,31,?<br />ans. 30 he!he!he!(they rep jan,feb,mar,.... hit your head)<br />Walk/Swim thro Coding<br />40. Input a,b<br />s=0;<br />c=a;<br />d=b;<br />while(d<>0)<br />{<br />s=s+c;<br />d=d-1;<br />}<br />Print s<br />for given values of a,b find the output<br />5questions for different values of a,b<br />41. Input a,b<br />while(3a+2b<100)<br />{<br />s=s+a;<br />a=a+2;<br />b=b-1;<br />}<br />for given values of a,b (i remember one 29,5) find the output<br />Tips<br />1. Do the coding first and you are out - They are time consuming - Save the worst<br />for last<br />2. Be choosy - take the easy (questions) first - So scan scan scan<br />3. best path in hexaware tree<br />language ----><br />odd man out ----><br />computer awareness ----><br />easy sums -----><br />difficult sums----><br />coding<br />do this or find the path to your home.<br />4.SPEED kills but also wins. Put your brain in 5th gear<br />5.Blind goose guess - mark a or e - they are more probable<br />6. Write your q paper code proper or your are a man overboard<br />7. There is minimum no of q to be attempted(so they didnt say explicitly) and no<br />negative marking. So be generous!waste your ink! cross off for all questions<br />8. They will ask u in the pep talk in GD waht is the first or last question or your<br />code.<br />So watch out all those DANGER-PAST-QUESTIONS-FORGOT type fellows<br />Group Discussion<br />1. No GD only shout!!! - Our LOk Sabha Style<br />2. Shout at top of your voice and shout some meaningful points<br />3. Please train ur vocal chords! Drink our good pure(pun intended) water before<br />GD<br />4. IF u cant then carry a loudspeaker<br />5. 10 per group max 3 groups<br />6. final interview they select 3 from each group<br />7. Dont think 1-proposer 1-opposer 1-moderator it could 3-proposer or 3 opposer<br />too.<br />8. If your group is silent Please follow GD rules.<br />9. 30 minutes of shouting(3min-choose the topic, 2min-prepare,20min-shout)<br />10. They might also give you a topic.<br />11. Please dont wait for your chance - Grab<br />12. Be ready to summarise. Try to say all the points told and say conclusion is yet to<br />be reached.<br />13. 2 or 3 choosen people will summarise.<br />14. Dont ever make unruly gestures. You are out immediately.<br />15. Be ready for any topic .Only general topic - no subject, economics stylepamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-56236297004568922632007-12-10T06:53:00.000-08:002007-12-10T06:54:32.583-08:00HEXAWARE CAMPANY PAPERSSample papers >><br />Hexaware - Question paper - 02 Conducted On -- July-2003<br />--------------------------------------------------------------------------------<br />Hexaware Exam conducted in July 2003.<br />The selection process consisted of 3 rounds,<br />1. Written test<br />The pattern is total 100 questions 1 hour time<br />1) check out the old 98 hexaware paper few qs are from that.<br />2) few qs on tracing the output(simple ons).<br />3)basic question on computer awarness(very simple ones like<br />expand WAP, etc very simple ones.<br />4)choose the odd man out type of questions freshersworld.com<br />ex A E I O choose the odd man.<br />5)simple math qs like 199^2 - 24^2 etc.<br />6) opposites and synonyms<br />** manage your time properly.. No negaive markings<br />2. GD.<br />Is internet suitable for Youngers?).<br />IS MBA needed? . etc.<br />3. Technical/ HR Interview. ( Interview was very cordial and they asked abt my<br />personal life, native places,my projects, and other technical skills I have. it was<br />really interesting one.. )<br />freshersworld.com<br />The questions were from a wide spectrum like english, basic mathematics, solving<br />algorithms, general computer awareness etc.<br />The english part consisted of Synonyms, antonyms, fill in the blanks, finding the<br />mis-spelt word (there were 5 in each.)<br />Computer awarness had ques from basic computer knowledge<br />1,!,2,@,3,#,4,$,5, what is next in the series<br />Ans : %.<br />Which is the oldest computing device still in use<br />Ans : Abacus.<br />Wat is WAP?<br />Ans : Wireless Application Protocol.<br />Nibble is equal to<br />Ans: 4 bits freshersworld.com<br />Solving Algos : A simple program was given and the output was asked for different<br />values of inputs.<br />I dont remember the exact ques. I am just giving a sample, which is similar to the<br />one given there.<br />S= 0; C = 0<br />Read A,B<br />While ((2A+3B) < 100)<br />{<br />S = 3A - 2B<br />c = c + 1<br />}<br />Print a,s,c<br />Following this there were 5 quetions. every ques carried 1 mark.<br />Wat is the output if a = 26 b = 12<br />wat is the output if a = 24 b = 16 etc..<br />In Mathematics some ques were simple and others were a bit time consuming.<br />|X| + X = 0 wat is the value of X<br />a) 1 b) 0 c) 1,0 d) None of these<br />If 38473ABC(This was not the exact no given) is divisible by 75 what is ABC in the<br />same order<br />x + 1/x = 2 x^100 + 1/x^100<br />f(z) = 1/1-x find f(f(f(1/x)))<br />The following questions got repeated from the pattern found in<br />www.freshersworld.com<br />In the series 0, 3, 8, 15,__ What is the next number?<br />Ans : 24<br />X < 0, Y <> 0 then which of the following is always positive?<br />Ans. (x + y)^2<br />Let ax2 + bx + c = 0<br />If the sum of the equal roots is equal to the product of the same roots. Then which of<br />the following hold true<br />Ans. b+c = 0<br />Find the value of (1.99)2<br />Ans. 3.9601<br />There is a room with 6' x 8'. A 1' tile is fixed along the 4 walls in one row. How<br />many 1" tiles require to<br />finish the work.<br />Ans. 24<br />2 persons can finish a job in 8 days. First person alone can finish the work in 24<br />days. How many days<br />does the second person take to finish the job?<br />Ans. 12 days<br />In a car wheel, two spokes cover 15 degree. Then for the entire car, how many<br />spokes are there?<br />Ans. 48.<br />What is the angle of degree suspended when two hands of clock showing the time<br />2.30.<br />Ans. 105 degrees<br />A person's salary is getting reduced by 20%. What percentage should be added to<br />get back his<br />original salary?<br />Ans. 25%<br />Two persons start at the same point, walk in opposite directions with 5km/hr and<br />5.5km/hr respectively.<br />What is the distance separated after 2 and half hrs?<br />Ans. 26.25<br />A person starts walking at a speed of 5km/hr through half the distance, rest of the<br />distance he covers with a<br />speed 4km/hr. Total time of travel is 9 hours. What is the maximum distance he can<br />cover?<br />Ans. 40km.<br />In a rectangle the length is increased by of the original length . By what proportion<br />should the<br />width be reduced so that the area will be the same?<br />Ans. 33<br />Find the nth number in the series is 1, -3, 5, -7.___<br />Ans. (-1)^(n-1)*(2n-1)<br />If a square is formed by the diagonal of the square as an edge, what is the ratio<br />between the area?<br />Ans. 2<br />The perimeter of a rhombus is 52 units. One of its diagonal is 24 units.What is its<br />second diagonals length?<br />Ans. 10<br />A cubical rectangular bar has the dimensions with the ratio 5 : 4 : 3. Its volume is<br />7500. What is the<br />surface area of the bar?<br />Ans. 2350<br />3 persons started placementpapers with a capital of Rs.3000 . B invest Rs.600 less<br />than A, C invest Rs.300 less<br />than B. Then what is the share amount of B in a profit of Rs.886 ?<br />Ans: Rs. 265.8pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-78491428216663753182007-12-10T06:47:00.000-08:002007-12-10T06:48:27.227-08:00DE-Shaw SoftwareDE-Shaw Software Sample Test Paper<br />SECTION-A<br />Write the programs for the following problems in C.<br />1. Swap two variables x,y without using a temporary variable.<br />2. Write algorithm for finding the GCD of a number.<br />3.Write a program for reversing the given string.<br />4. The integers from 1 to n are stored in an array in a random<br />fashion. but one integer is missing. Write a program to find the<br />missing integer.<br />Ans). Hint : The sum of n natural numbers is = n(n+1)/2.<br />if we subtract the above sum from the sum of all the<br />numbers in the array , the result is nothing but the<br />missing number.<br />5. Some bit type of questions has been given on pointers asking to<br />to find whether it is correct from syntax point of view. and if<br />it is correct explain what it will do.(around 15 bits).<br />SECTION-B<br />6. For the following C program<br />#define AND &&<br />#define ARRANGE (a>25 AND a<50)<br />main()<br />{int a = 30;<br />if (ARRANGE)<br />printf("within range");<br />else<br />printf("out of range");<br />}<br />What is the output?<br />7. For the following C program<br />#define AREA(x) (3.14*x*x)<br />main()<br />{float r1=6.25,r2=2.5,a;<br />a=AREA(r1);<br />printf("\n Area of the circle is %f", a);<br />a=AREA(r2);<br />printf("\n Area of the circle is %f", a);<br />}<br />What is the output?<br />Ans. Area of the circle is 122.656250<br />Area of the circle is 19.625000<br />8. What do the following statements indicate. Explain.<br />int(*p)[10]<br />int*f()<br />int(*pf)()<br />int*p[10]<br />Refer to:<br />-- Kernighan & Ritchie page no. 122<br />-- Schaum series page no. 323<br />9. Write a C program to find whether a stack is progressing in forward<br />or reverse direction.<br />10. Write a C program that reverses the linked list.pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-23920991538110861172007-12-10T06:45:00.000-08:002007-12-10T06:46:20.109-08:00HCL COMPANY PAPERS6Q1. In a island there are people of two community type 'A' and type 'B'. <br /> people of this island can ask question only. Questions asked by type 'A' <br /> have correct answer YES and question asked by type 'B' have correct <br /> answer 'NO'. <br /><br />Five question are based on this paragraph. <br />1) One person asked another person "am I a type of 'B'"? what is type of <br /> person who asked question. <br /> a) type 'A' <br /> b) type 'B' <br /> c) either 'A' or 'B' <br /> d) such question can not be asked. <br />2) person of type 'A' asked to his wife " are we of same type" . What is <br /> type of his wife? <br /><br />Three more question were there of same type read this paragraph <br />carefully so that this does not take much time. <br /><br />Q2 . There are six people A,B,C,D,E,F and five cars .cars are stand in <br /> sequence numbered 1 to 5 and each car can be share by two persons <br /> only.and conditions are <br /> 'A' will share car <br /> 'B' will sit alone <br /> 'F' will not share car with 'D' and 'E' <br /> 'D' will drive car 3rd or 4th car <br /> 'E' will drive a car which is behind <br /> the car with vacant seat. <br /><br /> Following are the questions based on this para <br /><br /> 6) if 'D' are sit on the 3rd car how many different <br /> arrengment will be there. <br /><br /> total 7- 8 question asked from this paragraph <br /><br /><br />Q3.DATA SUFFICIENCY<br />Direction:Read the following instructions carefully and answer questions <br />11-15 given below:<br /><br />Each question below is followed by two numbered facts. You have to <br />determine whether the data given in the statement is sufficient for <br />answering the question. Choose one of the following choices best <br />fitting the question and mark A,B,C,D or E as explained below. <br />(A) if statement 1 alone is sufficient to answer the question, but <br /> statement 2 is not sufficient. <br />(B) If statement 2 alone is sufficient to answer the question, but <br />statement 1 is not sufficient. <br />(C) If both statements together are needed to answer the question, but <br />neither statement alone is sufficient. <br />(D) If either statement by itself is sufficient to answer the question. <br />(E) If enough facts are not available to answer the question. <br /><br />13. Is X =Y? <br /> (1) X-Y=X^2-Y^2 ans:( ) <br /> (2) X and Y are greater than 1. <br /><br />14. Is CAB a code word in language Q? <br /> (1) ABC is the base word. <br /> (2) If c immediately follows B, then C can be moved to the front of <br /> the code word to generate another word? <br /> ans:( ) <br />15. A dress was initially listed at a price that would have given the <br /> store a profit of 20 percent of the wholesale cost. What was the <br /> wholesale cost of the dress? <br /> (1) After reducing the asking price by 10 percent, the dress sold for a <br /> net profit of 10 dollars. <br /> (2) The dress sold for 50 dollars. <br />ans:( ) <br /><br />16. If X and Y do not equal 0, is X/Y an integer? <br /> (1) X is prime <br /> (2) Y is even ans:( ) <br />17. What is the price of a banana? <br /> (a) 14 banana and 35 oranges cost Rs. 84 <br /> (b) with a 50% discount on banana, Rs. 12 can buy 4 bananas and 5 <br />oranges. <br /><br /><br />Some qus on fill in the blanks . <br /><br />18.A+B=C+D;A+C=B+D ;2A>B+D;2C<B+D; Find the arrangements of the <br /> letters like <br /> e.g:A>B>C>D> etc and all. <br /><br /><br /><br /><br /><br /><br /><br /><br />Reasoning<br /><br />Q.NO.1&2 <br />A FACTORY produces a product (measured in cubic feet) over seven days as <br />per the following schedule: <br /><br />Day1 Day2 Day3 Day4 Day5 Day6 Day7 <br /><br />150 180 120 250 160 120 150 <br /><br />The finished goods are to be transported to the market by a truck having <br />a capacity of 2000 cubic feet. Any finished goods (ready at the end of <br />the day) retained overnight at the factory will incur a storage cost of <br />rs.5 per cubic foot for each night of storage. The hiring cost for the <br />truck is rs.1000 per day. <br /><br />1.If the total cost of transportation and storage is to be minimized, <br />the truck should operate on <br />(a) 2nd,4th,6thand 7th days <br />(b) only the 7th day <br />(c) 2nd,4th,5th and 7th days <br />(d) only on 4th and 5th days <br />(e) none of these <br />ans:( ) <br /><br /><br />2.if the storage cost reduces to re.0.80per cubic foot per night,the <br />truck should operate on <br />(a)2nd,4th,5thand 7th days <br />(b)only the 7th day <br />(c)2nd,4th,5th and 7th days <br />(d)only on 4th and 5th days <br />(e)none of these <br />ans:( ) <br /><br /><br />3.if a+d=b+c,a+e=c+d,2cb+d,then <br />(a) a>b>c>d>e <br />(b) b>a>d>c>e <br />(c) d>b>c>a>e <br />(d) b>c>d>e>a <br />(e) none of these <br /><br /><br /><br /><br />4.. three students appear in a test but no one write there name on <br />answer sheet .and they submitted their sheet to teacher . when teacher <br />distributed their answer sheet . what is probability that no one get <br />their own answer sheet. <br /><br />TECHNICAL<br />1. Which of the following involves context switch, <br /> (a) system call <br /> (b) priviliged instruction <br /> (c) floating poitnt exception <br /> (d) all the above <br /> (e) none of the above <br /> Ans: (a) <br /><br />2. In OST, terminal emulation is done in <br /> (a) sessions layer <br /> (b) application layer <br /> (c) presentation layer <br /> (d) transport layer <br /> Ans: (b) <br /><br />3. For a 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles, <br />(a)120 nano secs <br />(b)120 micro secs <br />(c)75 nano secs <br />(d)75 micro secs <br /><br />4. For 1 MB memory, the number of address lines required, <br />(a)11 <br />(b)16 <br />(c)22 <br />(d) 24 <br />Ans. (b) <br /><br />5. Semaphore is used for <br />(a) synchronization <br />(b) dead-lock avoidence <br />(c) box <br />(d) none <br />Ans. (a) <br /><br />6. Which holds true for the following statement <br />class c: public A, public B <br />a) 2 member in class A, B should not have same name <br />b) 2 member in class A, C should not have same name <br />c) both <br />d) none <br />Ans. (a) <br /><br />7. Question related to java <br /><br />8. OLE is used in <br /> a) inter connection in unix <br /> b) interconnection in WINDOWS <br /> c) interconnection in WINDOWS NT <br /><br />9. Convert a given HEX number to OCTAL <br /><br />10. Macros and function are related in what aspect? <br /> (a)recursion <br /> (b)varying no of arguments <br /> (c)hypochecking <br /> (d)type declaration <br />11.Preproconia.. does not do which one of the following <br /> (a) macro <br /> (b) conditional compliclation <br /> (c) in type checking <br /> (d) including load file <br /> Ans. (c) <br /><br />12. Piggy backing is a technique for <br /> a) Flow control <br /> b) Sequence <br /> c) Acknowledgement <br /> d) retransmition <br /> Ans. (c) <br /><br />13. In signed magnitude notation what is the minimum value that can be <br /> represented with 8 bits <br /> (a) -128 <br /> (b) -255 <br /> (c) -127 <br /> (d) 0 <br /><br />14. There is an employer table with key fields as employer number data <br /> in every n'th row are needed for a simple following queries will <br /> get required results. <br /> (a) select A employee number from employee A , where exists from <br /> employee B where A employee no. >= B <br /> employee having (count(*) mod n)=0 <br /> (b) select employee number from employe A, employe B where A employe <br /> number>=B employ number <br />group by employee number having(count(*) mod n=0 ) <br />(c) both (a) &a <br /><br /><br /><br />15. Which of the following about the following two <br /> declaration is true <br /> i ) int *F() <br /> ii) int (*F)() <br /><br />Choice : <br />a) Both are identical <br />b) The first is a correct declaration and the second <br />is wrong <br />c) The first declaraion is a function returning a <br />pointer to an integer and the <br />second is a pointer to function returning int <br />d) Both are different ways of declarin pointer to a <br />function <br /><br />Answer : c <br /><br />16. What are the values printed by the following <br /> program? <br /><br /> #define dprint(expr) printf(#expr "=%d\n",expr) <br /> main() <br /> { <br /> int x=7; <br /> int y=3; <br /> dprintf(x/y); <br /> } <br /><br /> Choice: <br /> a) #2 = 2 b) expr=2 c) x/y=2 d) none <br /> Answer: c <br /><br />17. Which of the following is true of the following <br /> program <br /><br /> main() <br /> { <br /> char *c; <br /> int *p; <br /> c =(char *)malloc(100); <br /> ip=(int *)c; <br /> free(ip); <br /> } <br /><br />ans: The code functions properly releasing all the <br />memory allocated <br /><br />18 .output of the following. <br /><br /> main() <br /> { <br /> int i; <br /> char *p; <br /> i=0X89; <br /> p=(char *)i; <br /> p++; <br /> printf("%x\n",p); <br /> } <br /> ans:0X8A <br /><br />19. which of the following is not a ANSI C language <br /> keyword? <br /> ans:Function. <br /><br />20. When an array is passed as parameter to a function, <br /> which of the following statement is correct <br /><br />choice: <br />a) The function can change values in the original array <br />b) In C parameters are passed by value. The funciton <br />cannot change the original value in the array <br />c) It results in compilation error when the function <br />tries to access the elements in the array <br />d) Results in a run time error when the funtion tries <br />to access the elements in the array <br /><br />Answer: a <br /><br />21. The type of the controlling statement of a switch <br /> statement cannot be of the <br /> type <br /> a) int b) char c) short d)float e) none <br /><br /> Answer : d <br /><br />22. What is the value of the statement (3^6) + (a^a)? <br /><br /> a) 3 b) 5 c) 6 d) a+18 e) None <br /><br /> Answer : b <br /><br />23. What is the value assigned to the variable X if b <br /> is 7 ? <br /> X = b>8 ? b <<3 : b>4 ? b>>1:b; <br /> <br /> a) 7 b) 28 c) 3 d) 14 e) None <br /> ans: c <br /><br />24. Which is the output produced by the following <br /> program <br /> main()<br />{ <br />int n=2; <br />printf("%d %d\n", ++n, n*n); <br />} <br /><br />a) 3,6 b) 3,4 c) 2,4 d) cannot determine <br /><br />Answer : b <br /><br />25 What is th output of the following program? <br /> int x= 0x65; <br />main() <br />{ <br />char x; <br />printf("%d\n",x) <br />} <br /><br />a) compilation error b) 'A' c) 65 d) unidentified <br /><br />26. what the output of the following program <br />main() <br />{ <br />int a=10; <br />int b=6; <br /><br />if(a=3) <br />b++; <br />printf("%d %d\n",a,b++); <br />} <br /><br />a) 10,6 b)10,7 c) 3,6 d) 3,7 e) none <br /><br />Answer : d <br /><br />27. Wat can be said of the following program? <br />main() <br />{ <br />enum Months {JAN =1,FEB,MAR,APR}; <br />Months X = JAN; <br />if(X==1) <br />{ <br />printf("Jan is the first month"); <br />} <br />} <br /><br />a) Does not print anything <br />b) Prints : Jan is the first month <br />c) Generates compilation error <br />d) Results in runtime error <br /><br />Answer: b <br /><br />14. What is the output of the following program? <br />main() <br />{ <br />char *src = "Hello World"; <br />char dst[100]; <br />strcpy(src,dst); <br />printf("%s",dst); <br />} <br />strcpy(char *dst,char *src) <br />{ <br />while(*src) *dst++ = *src++; <br />} <br /><br />a) "Hello World" b)"Hello" c)"World" d) NULL e) <br />unidentified <br /><br />Answer: may be d <br /><br />15. What is the output of the following program? <br /><br />main() <br />{ <br />int l=6; <br />switch(l) <br />{ default : l+=2; <br />case 4: l=4; <br />case 5: l++; <br />break; <br />} <br />printf("%d",l); <br />} <br />a)8 b)6 c)5 d)4 e)none <br /><br />Answer : c <br /><br />16. What is the output of the following program? <br />main() <br />{ <br />int x=20; <br />int y=10; <br />swap(x,y); <br />printf("%d %d",y,x+2); <br />} <br />swap(int x,int y) <br />{ <br />int temp; <br />temp =x; <br />x=y; <br />y=temp; <br />} <br /><br />a)10,20 b) 20,12 c) 22,10 d)10,22 e)none <br /><br />Answer:d <br /><br />17. What is the output of the following problem ? <br />#define INC(X) X++ <br />main() <br />{ <br />int X=4; <br />printf("%d",INC(X++)); <br />} <br /><br />a)4 b)5 c)6 d)compilation error e) runtime error <br /><br />Answer : d <br /><br /><br /><br />18. what can be said of the following <br /><br />struct Node { <br />char *word; <br />int count; <br />struct Node left; <br />struct Node right; <br />} <br /><br />a) Incorrect definition <br />b) structures cannot refer to other structure <br />c) Structures can refer to themselves. Hence the <br />statement is OK <br />d) Structures can refer to maximum of one other <br />structure <br /><br />Answer :c <br /><br />19. What is the size of the following union. <br />Assume that the size of int =2, size of float =4 and <br />size of char =1. <br />Union Tag{ <br />int a; <br />flaot b; <br />char c; <br />}; <br /><br />a)2 b)4 c)1 d) 7 <br /><br />may be b <br /><br />20) What is the output of the following program? (. <br />has been used to indicate a <br />space) <br />main() <br />{ <br />char s[]="Hello,.world"; <br />printf(%15.10s",s); <br />} <br /><br />a)Hello,.World... <br />b)....Hello,.Wor <br />c)Hello,.Wor.... <br />d)None of the above <br /><br />may be cpamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-30619804095845697212007-12-10T06:44:00.002-08:002007-12-10T06:45:15.875-08:00HCL COMPANY PAPERS5Sample Test Paper<br /><br />1. How many of the integers between 25 and 45 are even?<br /> A) 21 B) 20 C) 11 D) 10 E) 9 <br /><br />2. If taxi fares were Rs.1.00 for the first 1/5 mile and Rs.0.20 for each 1/5 miles thereafter, the taxi fare for a 3-mile ride was<br />A) Rs.1.56 B) Rs.2.40 C) Rs.3.00 D) Rs.3.80 E) Rs.4.20 <br /><br />3. A computer routine was developed to generate two numbers (X, Y) the first being a random number between 0 and 100 inclusive, and the second being less than or equal to the square root of the first. Each of the following pairs satisfies the routine EXCEPT<br />A) (99.10) B) (85.9) C) (50.7) D) (1.1) E) (1.0) <br /><br />4. A warehouse had a square floor with are 10,000 sq. metres. A rectangular addition was built along one entire side of the warehouse that increased the floor by one-half as much as the original floor. How many metres did the addition extend beyond the original building?<br />A) 10 B) 20 C) 50 D) 200 E) 500 <br /><br />5. A digital wristwatch was set accurately at 8.30 a.m. and then lost 2 seconds every 5 minutes. What time was indicated on the watch at 6.30 p.m. of the same day if the watch operated continuously that time?<br />A) 5:56 B) 5:58 C) 6.00 D) 6:23 E) 6:20 <br /><br />6. A 5 litre jug contains 4 litres of a saltwater solution that is 15 percent salt. If 1.5 litres of the solution spilts out of jug, and the jug is then filled to capacity with water, approximately what percent of the resulting solution in the jug is salt?<br />A).5% B) 9.5% C) 10.5% D) 12% E) 15% <br /><br />7. A plane travelled K miles in the first 96 minutes of flight time. If it completed the remaining 300 miles of the trip in 1 minute, what was its average speed in miles per hour for the entire trip? <br /><br />8. Given the following statement enum day = { jan = 1 ,feb=4, april, may} What is the value of may?<br /> (a) 4<br /> (b) 5<br /> (c) 6<br /> (d) 11<br /> (e) None of the above <br /><br />9. Find the output for the following C program<br /> main()<br /> {<br /> int x,j,k;<br /> j=k=6;x=2;<br /> x=j*k;<br /> printf("%d", x);<br /> } <br /><br />10.Find the output for the following C program <br /> fn f(x)<br /> {<br /> if(x<=0)<br /> return;<br /> else f(x-1)+x;<br /> } <br /><br />11. Find the output for the following C program<br /> i=20,k=0;<br /> for(j=1;j<i;j=1+4*(i/j))<br /> {<br /> k+=j<10?4:3;<br /> }<br /> printf("%d", k);<br /> Ans. k=4 <br /><br />12. Find the output for the following C program<br /> int i =10<br /> main()<br /> {<br /> int i =20,n; <br /> for(n=0;n<=i;)<br /> {<br /> int i=10;<br /> i++;<br /> }<br /> printf("%d", i);<br /> Ans. i=20 <br /><br />13. Find the output for the following C program<br /> int x=5;<br /> y= x&y <br /><br />14. Find the output for the following C program Y=10;<br /> if( Y++>9 && Y++!=10 && Y++>10) <br /> {<br /> printf("%d", Y);<br /> else<br /> printf("%d", Y);<br /> } <br /> Ans. 13 <br /><br />15.Find the output for the following C program f=(x>y)?x:y<br /> a) f points to max of x and y <br /> b) f points to min of x and y<br /> c) error<br /> Ans. (a) <br /><br />16. What is the sizeof(long int)<br /> (a) 4 bytes<br /> (b) 2 bytes<br /> (c) compiler dependent<br /> (d) 8 bytes10. <br /><br />17. Which of the function operator cannot be over loaded<br /> (a) <=<br /> (b) ?:<br /> (c) =<br /> (d) <br /><br />18. Find the output for the following C program<br /> main()<br /> {<br /> intx=2,y=6,z=6; <br /> x=y=z;<br /> printf(%d",x)<br /> }pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-20024338602097867052007-12-10T06:44:00.001-08:002007-12-10T06:44:25.843-08:00HCL COMPANY PAPERS4Aptitude<br /> (1) How many of the integers between 25 and 45 are even ?<br /> (A)21 (B)20 (C)11 (D)10 (E)9<br /> Ans:d)10<br /><br /> (2) If taxi fares were Rs 1.00 for the first 1/5 mile and Rs 0.20 for each 1/5 miles thereafter. The taxi fare for a 3-mile ride was<br /> (A)Rs 1.56 (B)Rs 2.40 (C)RS 3.00 (D)Rs 3.80 (E)Rs 4.20<br /> Answer :d)Rs 3.80<br />(3) A computer routine was developed to generate two numbers (x,y) the first being a random number between 0 and 100 inclusive, and the second being less than or equal to the square root of the first. Each of the followin pair satisfies the routine EXCEPT<br /> (A) (99.10) (B) (85.9) (C) (50.7) (D) (1.1) (E) (1.0) <br /> Answer : A) (99.10)<br /><br />(4)A warehouse had a square floor with area 10,000 sq.meters. A rectangular addition was built along one entire side of the warehouse that increased the floor by one-half as much as the original floor. How many meters did the addition extend beyond the original buildings ? <br /> (A)10 (B)20 (C)50 (D)200 (E)500<br /> Ans: c)50<br />(5)A digital wristwatch was set accurately at 8.30 a.m and then lost 2 seconds every 5 minutes. What time was indicated on the watch at 6.30 p.m of the same day if the watch operated continuously that time ?<br /> (A)5:56 B)5:58 (C)6.00 (D)6.23 (E)6.26<br /> Ans :E) 6.26<br /><br />(6)A 5 litre jug contains 4 litres of a salt water solution that is 15 percent salt. If 1.5 litres of the solution spills out of the jug, and the jug is then filled to capacity with water, approximately what percent of the resulting solution in the jug is salt? <br /> (A)7.5% (B)9.5% (C) 10.5% (D)12% (E)15%<br /> Ans :A)7.5%<br /><br />(7)A plane travelled K miles in the first 96 miles of flight time. If it completed the remaining 300 miles of the trip in 1 minute, what was its average speed in miles per hour for the entire trip ?<br /> (A)<br /> (B)<br /> (C) <br /> (D)<br /> (E)<br /> Ans :(300+k)/97 * 60<br /><br />(8)A merchant sells an item at a 20 percent discount. but still makes a gross profit of 20 percent of the cost.What percent of cost would be gross profit on the item have been if it had been sold without the discount?<br /> (A)20% (B)40% (C)50% (D)60% (E)66.6%<br /> Ansr :c) 50%<br /><br />(9)A millionaire bought a job lot of hats 1/4 of which were brown. The millionaire sold 2/3 of the hats including 4/5 of the brown hats. What fraction of the unsold hats were brown.<br /> (A)1/60 (B)1/15 (C)3/20 (D)3/5 (E)3/4<br /> Ans :c)3/20<br /><br />(10)How many integers n greater than and less than 100 are there such that,if the digits of n are reversed, the resulting integer is n+9 ?<br /> (A)5 (B)6 (C)7 (D)8 (E)9<br /> Ans :D)8<br /><br />(11)An investor purchased a shares of stock at a certain price.If the stock increased in price Rs 0.25 per share and the total increase for the x shares was Rs 12.50, how many shares of stock had been purchased ?<br /> (A)25 (B)50 (C)75 (D)100 (E)125<br /> Ans :B)50<br />(12)At a special sale, 5 tickets can be purchased for the price of 3 tickets. If 5 tickets are purchased at the sale, the amount saved will be What percent of the original price of the 5 tickets?<br /> (A) 20% (B) 33.3% (C) 40% (D) 60% (E) 66.6%<br /> Ans :c)40%<br /><br />(13)Working independently, Tina can do a certain job in 12 hours. Working independently, Ann can do the same job in 9 hours. If Tina Works independently at the job for 8 hours and then Ann works independently, how many hours will it take Ann to complete the remainder of the jobs?<br /> (A) 2/3 (B) 3/4 (C) 1 (D) 2 (E) 3 <br /> Ans :E)3<br /><br />(14)A decorator bought a bolt of d m number of red chips in any one stack ?<br /> (A) 7 (B) 6 (C) 5 (D) 4 (E) 3<br /> Ans :C) 5<br /><br />(15)A sink has 12 lits of water some quantity of water is taken out. if the remainng water is 6 litres less then the water taken out then quantity of water taken out is.<br /> a. 3<br /> b. 6<br /> c. 9 <br /> d. 1<br /><br />(16) which is the 4 digit number whose second digit is thrice the first digit and 3'rd digit is sum of 1'st and 2'nd and last digit is twice the second digit.<br /> 1.2674<br /> 2.1349.<br /> 3.3343<br /> 4.3678<br />(17) In a straight highway 2 cars starts from the same point in opposite directions each travels for 8 Kms and takeleft turn then travel for 6 Kms what is the distance between them now.<br /> 1.16<br /> 2.20<br /> 3.25 <br /> 4.10<br /><br /> Technical Sectio<br />1. In ANSI C which is such thing is not in Java.<br /> typedef struct node<br /> {<br /> int <br /> NODEPTR * NODE<br /> } <br /><br />2.. In signed magnitude notation what is the minimum value that can be represented with 8 bits<br />a) -128 b) -255 c) -127 d) 0 <br />3.. there is an employer table with key feilds as employer no. data in every n'th row are needed for a simple followingqueries will get required results.<br />a) select A employe no. from employe A , where exists from employe B where A employe no. = B employehaving (count(*) mod n)=0 <br />b) select employe no. from employe A, employe B where A employe no. = B employ no.grouply employe no. having (count(*) mod n=0 )<br />c) both a& b<br />d) none of the above <br />4.Piggybacking is done for, Ans=>Acknowledgement. <br />5.WHICH IS NOT BASIC data type ans.Char* <br /><br />(6.) which of the following statement is valid for string copy <br /> char *srt,*ptr;<br /> a) while(*str) {<br /> *str=*ptr;<br /> ++str=++ptr;<br /> }<br /> b ) while(*str)<br /> {*++str=*++ptr};<br /> c) <br /><br />(7) Two variable cannt have the same name in<br /> a)function b) block c) file d)--- C Section <br /><br />(8) #define inc(x) x++<br /> main()<br /> {<br /> int t=1;<br /> printf("%d",inc(t++));<br /> } <br /> (9) one or two que for the complicated declaration. <br /> (10) Const char *a="Abcd"; char const *a="lmno"; base do this,Two que were there. <br />(11) char *p ;<br /> char q[20]; <br /><br />(12) int i,*p=&i;<br /> p=malloc(10);<br /> free(p);<br /> printf("%d",p);<br /> ans : garbage <br /><br /> (13) int i=20,*j=&i<br /> f(i)<br /> printf("%d",i); <br />(14) #define val 1+2<br /> printf("%d%d",val/val,val^3)<br /> ans : 3 9 <br /><br />(15) #define "this" "#"<br /> #define (x,y) x##y<br /> printf("this","this is")<br /> ans: compilation error (tested) <br />(16) 2^2)+(a^a) <br /> (17) int a ,b=7<br /> a=b<4?b<<1:b>4?7>>1:a <br /> ans.3 <br /> (18)one que on c++ class member function<br /> ans.d <br />(19)work of memory management unit. <br />(20)who relate virtual memory to physical memory ans.os <br /><br />(21) memory is allocated to variable<br /> a)when declared b)when define c)... <br />(22)Question on double linked list <br /> (23)Define success 1 <br /> define failure -1<br /> if(condition)<br /> printf(success);<br /> else<br /> printf(failure);<br /> ans success <br /><br />(24) main()<br /> {<br /> int var=25,varp;<br /> varp=&var;<br /> varp=10;<br /> fun(varp);<br /> printf(%d%d",var,varp);<br /> ans a)45,45 b)55,55 c) 20,55; <br /><br />(25) u r given two statements<br /> a=(10.15);<br /> b=10,15;<br /> if they are executed what is the output printf("%d%d",a,b); <br /> a)10,15 b)15,10 c)10,10 d)15,15 ans a <br /><br />(26) #define inc(x) x++<br /> main()<br /> {<br /> int t=1;<br /> printf("%d",inc(t++));<br /> }<br /> ans.errorpamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-16023708607993609332007-12-10T06:43:00.001-08:002007-12-10T06:43:54.938-08:00HCL COMPANY PAPERS3<strong><strong><br />Aptitude.</strong></strong><br />(1) a=2, b=3, c=6 Find the value of c/(a+b)-(a+b)/c<br /> Ans. 11/30<br /><br />(2)What does the hexa number E78 in radix 7.<br /> (a) 12455<br /> (b) 14153<br /> (c) 14256<br /> (d) 13541<br /> (e) 131112<br /> Ans. (d)<br /><br />(3)What does the hexa number E78 in radix 7.<br /> (a) 12455<br /> (b) 14153<br /> (c) 14256<br /> (d) 13541<br /> (e) 131112<br /> Ans. (d)<br />(4)Q is not equal to zero and k = (Q x n - s)/2.What is n?<br /> (a) (2 x k + s)/Q<br /> (b) (2 x s x k)/Q<br /> (c) (2 x k - s)/Q<br /> (d) (2 x k + s x Q)/Q<br /> (e) (k + s)/Q <br /><br />(5)From the following statements determing the order of ranking<br /> M has double the amount as D Y has 3 rupess more than half the amount of D<br /> Ans. Data insuffiecient <br /> Questions 6 - 10 are to be answered on the following data<br /> A causes B or C, but not both <br /> F occurs only if B occurs<br /> D occurs if B or C occurs<br /> E occurs only if C occurs<br /> J occurs only if E or F occurs<br /> D causes G,H or both<br /> H occurs if E occurs <br /> G occurs if F occurs <br />1 <br />If A occurs which of the following must occurs <br /> I. F and G<br /> II. E and H<br /> III. D <br /> (a) I only<br /> (b) II only<br /> (c) III only<br /> (d) I,II, & III<br /> (e) I & II (or) II & III but not both <br /> Ans. (e) <br /><br />(6) If B occurs which must occur <br /> (a) D<br /> (b) D and G<br /> (c) G and H<br /> (d) F and G<br /> (e) J <br /> Ans. (a) <br /><br />(7) If J occurs which must have occured <br /> (a) E<br /> (b) either B or C<br /> (c) both E & F<br /> (d) B<br /> (e) both B & C<br /> Ans. (b) <br /><br />(8)Which may occurs as a result of cause not mentioned <br /> I. D<br /> II. A<br /> III. F <br /> (a) I only<br /> (b) II only<br /> (c) I & II<br /> (d) II & III<br /> (e) I,II & III <br /> Ans. (c) <br />(9) E occurs which one cannot occurs <br /> (a) A<br /> (b) F<br /> (c) D<br /> (d) C<br /> (e) J <br /> Ans. (b) <br /><br />(10)A 5 litre jug contains 4 litres of a salt water solution that is 15 percent salt. If 1.5 litres of the solution spills out of the jug, and the jug is then filled to capacity with water,approximately what percent of the resulting solution in the jug is salt? <br /> (A)7.5% (B)9.5% (C) 10.5% (D)12% (E)15% <br /><br />(11) Working independently, Tina can do a certain job in 12 hours. Working independently, Ann can do the same job in 9 hours. If Tina Works independently at the job for 8 hours and then Ann works independently, how many hours will it take Ann to complete the remainder of the jobs? <br />(A)2/3 (B)3/4 (C)1 (D)2 (E)3<br /> Answer :E)3 <br /><br />(12)In a murder case there are four suspects P,Q,R,S. Each of them makes a statement. They are p: "I had gone to the theatre with S at the time of the murder".q: "I was playing cards with P at the time of the murder".r: "Q didn't commit the murder".s: "R is not the murderer".Assuming the only one of the above statement is false and that one of them is the murderer, who is the murderer?<br /> a) P<br /> b) Q<br /> c) R<br /> d) Cann't be concluded <br /> e) S<br /> Ans: E <br />(13)Mohan earned twice as much as Deep. Yogesh earned rs.3/- more than half as much as deep. If the amounts earned by Mohan,Deep,Yogesh are M,D,Y respectively, Which of the following is the correct ordering of these amounts?<br /> a) M < D < Y<br /> b) M< Y < D<br /> c) D< M < Y<br /> d) It cann't bedetermined from the information given<br /> e) D< Y < M<br /><br />(14)Statistics indicate that men drivers are involved in more accidents than women drivers. Hence it may be concluded that<br /> a) sufficiently information is not there to conclude anything<br /> b) Men are actually better drivers but drive more frequently<br /> c) Women Certainly drive more cautiously than Men<br /> d) Men chauvinists are wrong about women's abilties.<br /> e) Statistics sometimes present a wrong picture of things<br /><br />(15)Given that A,B,C,D,E each represent one of the digits between 1 and 9 and that the following multiplication holds:<br /> A B C D E<br /> X 4<br /> --------------<br /> E D C B A<br /> -------------- what digit does E represent ?<br /> a) 4<br /> b) 6<br /> c) 8 <br /> d) 7<br /> Ans: c<br /><br />(16)HCL prototyping machine can make 10 copies every 4 seconds. At this rate, How many copies can the machine make in 6 min.?<br /> a) 900<br /> b) 600<br /> c) 360<br /> d) 240<br /> e) 150<br /> Ans: a<br /><br />(17)If a=2,b=4,c=5 then<br /> a+b c<br /> - ---- =<br /> c a+b <br /> a) 1<br /> b) 11/30<br /> c) 0<br /> d) -11/30<br /> e) -1 <br /> Ans: b<br /><br />(18)10^2(10^8+10^8) =-------------- 10^4 <br /> a) 2(10)^4<br /> b) 2(10)^6<br /> c) 10^8<br /> d) 2(10)^8 <br /> e) 10^10 <br /> Ans: b<br /><br />(19)Worker W produces n units in 5 hours. Workers V and W, workers independently but at the same time, produce n units in 2 hours.how long would it take V alone to produce n units?<br /> a) 1 hr 26 min<br /> b) 1 hr 53 min<br /> c) 2 hr 30 min<br /> d) 3 hr 30 min<br /> e) 3 hr 20 min<br /> Ans: d<br /><br />Six knights - P,Q,R,S,T and U - assemble for a long journey in Two ravelling parties. For security, each travellingparty Consists of at least two knights. The two parties travel by separate routes, northern and southern. After one month, the routes of the northern and southern groups converge for a brief time and at that point the knights can, if they wish, rearrange their travelling parties before continuing, again in two parties along separate northern and southern routes. Throughout the entire trip, the composition of traveling parties must be in accord with the following conditions P and R are deadly enemies and, although they may meet briefly,can never travel together. p must trave in the same party with sQ cann't travel by the southern route U cann't change <br /><br />(20) If one of the two parties of knights consists of P and U and two other knights and travels by the southern route,the other members of this party besides P and U must be<br /> a) Q and S<br /> b) Q and T <br /> c) R and S<br /> d) R and T<br /> e) S and T <br /> Ans: e<br /><br />(21)If each of the two parties of knights consists of exactly three members, which of the following is not a possible travelling party and route?<br /> a) P,S,U by the northern route<br /> b) P,S,T by the northern route<br /> c) P,S,T by the southern route<br /> d) P,S,U by the southern route<br /> e) Q,R,T by the southern route <br /> Ans: b<br /><br />(22)If one of the two parties of knights consists of U and two other knights and travels by the northern route, the other memnbers of this party besides U must be<br /> a) P and S<br /> b) P and T<br /> c) Q and R<br /> d) Q and T <br /> e) R and T <br /> Ans: c<br /><br />(23)If each of the two parties of knights consists of exactly three members of different parties, and R travels by the northern route,then T must travel by the<br />a) southern route with P and S<br />b) southern route with Q and R<br />c) southern route with R and U<br />d) northern route with Q and R<br />e) northern route with R and U <br />Ans: a<br /><br />(24)If, when the two parties of knights encounter one another after a month, exactly one knight changes from one travelling party to the other travelling party, that knight must be<br />a) P<br />b) Q<br />c) R<br />d) S <br />e) T <br />Ans: e<br />(25)A gambler bets on the team of seven players ABCDEFG whose winning a-4 to 1 against b-4 to 1 against c-4 to 1 against d-4 to 1 against e-5 to 1 against f-6 to 1 against g. how should he bet on g to set 20% profit.<br />(26)If a person buy radio worth Rs 2468 and pay 7% sales .how much price of radio should reduce to pay only Rs 2468<br />(27)What is vasu salary if salary of vasu is more than rajan salary working in same company<br /> i)vasu salary is 100 more than rajan salary.<br /> ii)rajan found 2000 allowns which is 50 less than vasu.<br /> (iii)basic salry of rajan is 1000. <br /> (i)only i is required<br /> (ii)i & ii is required<br /> (iii)i& iii is required<br /> (iv)i&ii&iii is required<br /> (v)none of these<br /><br />(28) If in 100 miles race 8 person is running winner take 9.8sec and fifth man takes 10.4 sec the time of 8 man is in AP if in 4*100 meters realy of onside is 1,4,5,8 position then win by.<br />a).3 sec b).1 sec c).7 sec d).5 sec e)none <br /> <br />(29)A sink has 12 lits of water some quantity of water is taken out. if the remainng water is 6 litres less then thewater taken out then quantity of water taken out is.<br />a.3<br />b.6<br />c.9<br />d.1<br />1 <br />(30)which is the 4 digit number whose second digit is thrice the first digit and 3'rd digit is sum of 1'st and 2'nd and last digit is twice the second digit.<br /> 1.2674<br /> 2.1349.<br /> 3.3343<br /> 4.3678<br />(31)In a straight highway 2 cars starts from the same point in opposite directions each travels for 8 Kms and take left turn then travel for 6 Kms what is the distance between them now.<br /> 1.16<br /> 2.20<br /> 3.25<br /> 4.10.<br /> <br /> C Programming<br /><br />1. Which of the following about the following two declaration is true<br /> i ) int *F()<br /> ii) int (*F)()<br /> Choice :<br /> a) Both are identical<br /> b) The first is a correct declaration and the second is wrong<br /> c) The first declaraion is a function returning a pointer to an integer and the second is a <br /> pointer to function returning int<br /> d) Both are different ways of declarin pointer to a function <br /> Answer : c) The first de...<br /><br />2. What are the values printed by the following program? <br /> #define dprint(expr) printf(#expr "=%d\n",expr)<br /> main()<br /> {<br /> int x=7;<br /> int y=3;<br /> dprintf(x/y);<br /> }<br /> Choice:<br /> a) #2 = 2 b) expr=2 c) x/y=2 d) none<br /> Answer: c)x/y=2<br /><br />3. Which of the following is true of the following program<br /> main()<br /> {<br /> char *c;<br /> int *p;<br /> c =(char *)malloc(100);<br /> ip=(int *)c;<br /> free(ip);<br /> }<br /> ans: The code functions properly releasing all the memory allocated<br /><br />4. output of the following. <br /> main()<br /> {<br /> int i;<br /> char *p;<br /> i=0X89;<br /> p=(char *)i;<br /> p++;<br /> printf("%x\n",p);<br /> }<br /> ans:0X8A<br /><br />5. which of the following is not a ANSI C language keyword? ans:Function.<br /><br />6. When an array is passed as parameter to a function, which of the following statement is correct choice:<br /> a) The function can change values in the original array<br /> b) In C parameters are passed by value. The funciton cannot change the original value in <br /> the array <br /> c) It results in compilation error when the function tries toaccess the elements in the array<br /> d) Results in a run time error when the funtion tries to access the elements in the array<br /> Answer: a) The fu...<br /><br />7. The type of the controlling expression of a switch statement cannot be of the type <br /> a) int b) char c) short d)float e) none<br /> Answer : d)float<br /><br />8. What is the value of the expression (3^6) + (a^a)?<br /> a) 3 b) 5 c) 6 d) a+18 e) None<br /> Answer : 5<br />9. What is the value assigned to the variable X if b is 7 ?<br /> X = b>8 ? b <<3 : b>4 ? b>>1:b;<br /> a) 7 b) 28 c) 3 d) 14 e) None<br /> ans: 3;<br /><br />10.Which is the output produced by the following program<br /> main()<br /> {<br /> int n=2;<br /> printf("%d %d\n", ++n, n*n);<br /> }<br /> a) 3,6 b) 3,4 c) 2,4 d) cannot determine<br /> Answer : b) 3,4<br /><br />11. What is th output of the following program? <br /> int x= 0x65;<br /> main()<br /> {<br /> char x;<br /> printf("%d\n",x)<br /> }<br /> a) compilation error b) 'A' c) 65 d) unidentified<br /><br />12. What is the output of the following program<br /> main()<br /> {<br /> int a=10;<br /> int b=6;<br /> if(a=3)<br /> b++;<br /> printf("%d %d\n",a,b++);<br /> }<br /> a) 10,6 b)10,7 c) 3,6 d) 3,7 e) none<br /> Answer : a) 10,6<br /><br />13. What can be said of the following program?<br /> main()<br /> {<br /> enum Months {JAN =1,FEB,MAR,APR};<br /> Months X = JAN;<br /> if(X==1)<br /> {<br /> printf("Jan is the first month"); <br /> }<br /> }<br /> a) Does not print anything<br /> b) Prints : Jan is the first month<br /> c) Generates compilation error<br /> d) Results in runtime error<br /> Answer: b) Prints : Jan..<br />14. What is the output of the following program?<br /> main()<br /> {<br /> char *src = "Hello World";<br /> char dst[100];<br /> strcpy(src,dst);<br /> printf("%s",dst);<br /> }strcpy(char *dst,char *src)<br /> {while(*src) *dst++ = *src++;<br /> }<br /> ) "Hello World" b)"Hello" c)"World" d) NULL e) unidentified<br /> Answer: d) NULL<br /><br />15. What is the output of the following program?<br /> main()<br /> {<br /> int l=6;<br /> switch(l)<br /> { default : l+=2;<br /> case 4: l=4;<br /> case 5: l++;<br /> break;<br /> }<br /> printf("%d",l); <br /> }<br /> a)8 b)6 c)5 d)4 e)none<br /> Answer : a)8<br />16.What is the output of the following program?<br /> main()<br /> {<br /> int x=20;<br /> int y=10;<br /> swap(x,y);<br /> printf("%d %d",y,x+2);<br /> }<br /> swap(int x,int y)<br /> {<br /> int temp;<br /> temp =x;<br /> x=y;<br /> y=temp;<br /> }<br /> a)10,20 b) 20,12 c) 22,10 d)10,22 e)none<br /> Answer:b)20,12<br /><br />17. What is the output of the following problem ?<br /> #define INC(X) X++<br /> main()<br /> {<br /> int X=4;<br /> printf("%d",INC(X++));<br /> }<br /> a)4 b)5 c)6 d)compilation error e) runtime error<br /> Answer : d) compilation error<br /><br />18. what can be said of the following<br /> struct Node {<br /> char *word;<br /> int count;<br /> struct Node left;<br /> struct Node right;<br /> }<br /> a) Incorrect definition<br /> b) structures cannot refer to other structure<br /> c) Structures can refer to themselves. Hence the statement is OK<br /> d) Structures can refer to maximum of one other structure<br /> Answer :c)<br />19. What is the size of the following union. Assume that the size of int =2, size of float =4 and <br /> size of char =1.<br /> <br /> Union Tag{<br /> int a;<br /> flaot b;<br /> char c;<br /> };<br /> a)2 b)4 c)1 d) 7 <br /><br />20. What is the output of the following program? (. has been used to indicate a space)<br /> main()<br /> {<br /> char s[]="Hello,.world";<br /> printf(%15.10s",s);<br /> }<br /> a )Hello,.World...<br /> b)....Hello,.Wor<br /> c)Hello,.Wor....<br /> d)None of the abovepamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-18183065747912415632007-12-10T06:42:00.001-08:002007-12-10T06:42:59.987-08:00HCL COMPANY PAPERS21)Piggy backing is a technique for<br />a) Flow control b) sequence c) Acknowledgement d) retransmition<br /> ans: c <br /> 2)The layer in the OST model handles terminal emulation<br /> a) session b) application c) presentation d) transport<br /> ans: b application<br /> 3)In signed magnitude notation what is the minimum value that<br /> can be represented with 8 bits<br /> a) -128 b) -255 c) -127 d) 0<br /> 4)There is an employer table with key feilds as employer no.<br /> data in every n'th row are needed for a simple following queries<br /> will get required results.<br /> a) select A employe no. from employe A , where exists from employe B<br /> where A employe no. >= B employe having (count(*) mod n)=0<br /> b) select employe no. from employe A, employe B where<br /> A employe no.>=B employ no.grouply employe no.having(count(*) mod n=0 )<br /> c) both a& b<br /> d) none of the above<br /> <br />5)Type duplicates of a row in a table customer with non uniform<br /> key feild customer no. you can see<br /> a) delete from costomer where customer no. exists<br /> ( select distinct customer no. from customer having count )<br /> b) delete customer a where customer no. in b rowid<br /> c) delete customer a where custermor no. in<br />( select customer no. from customer a, customer b )<br />d) none of the above<br /> <br />6)long int size<br />a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes<br />ans: compiler dependent<br /> <br />7)x=2,y=6,z=6<br />x=y==z;<br />printf(%d",x) ?<br /> <br />8}what does the hexanumber E78 in radix 7.<br />(a) 12455 (b) 14153 (c) 14256 (d) 13541 (e) 131112 <br />ans: (d)<br /> <br />9) Q is not equal to zero and k = (Q x n - s)/2 find n?<br />(a) (2 x k + s)/Q (b) (2 x s x k)/Q (c) (2 x k - s)/Q<br />(d) (2 x k + s x Q)/Q (e) (k + s)/Q<br /> <br />(from GRE book page no:411)<br />data:<br />A causes B or C, but not both<br />F occurs only if B occurs<br />D occurs if B or C occurs<br />E occurs only if C occurs<br />J occurs only if E or F occurs<br />D causes G,H or both<br />H occurs if E occurs<br />G occurs if F occurs<br />NOTE: check following answers.<br /> <br />10). If A occurs which of the following must occurs<br />I. F & G<br />II. E and H<br />III. D<br />(a) I only (b) II only (c) III only (d) I,II, & III<br />(e) I & II (or) II & III but not both <br />ans: (e)<br /> 11). If B occurs which must occur<br />(a) D (b) D and G (c) G and H (d) F and G (e) J <br />ans: (a)<br /> 12). If J occurs which must have occured<br />(a) E (b) either B or C (c) both E & F (d) B (e) both B & C <br />ans: (b)<br /> <br />13). which may occurs as a result of cause not mentioned<br />(1) D (2) A (3) F<br />(a) 1 only (b) 2 only (c) 1 & 2 (d) 2 & 3 (e) 1,2,3 <br />ans: (c)<br /> <br />14). E occurs which one cannot occurs<br />(a) A (b) F (c) D (d) C (e) J <br />ans: (b)pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-36446601452757295802007-12-10T06:41:00.000-08:002007-12-10T06:42:29.767-08:00HCL COMPANY PAPERS<strong>Section A </strong><br />1. Which of the following involves context switch,<br />(a) system call <br />(b) priviliged instruction<br />(c) floating poitnt exception<br />(d) all the above<br />(e) none of the above<br />Ans: (a)<br /><br />2. In OST, terminal emulation is done in<br />(a) sessions layer <br />(b) application layer <br />(c) presentation layer <br />(d) transport layer<br />Ans: (b)<br /><br />3. For a 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,<br />(a)120 nano secs <br />(b)120 micro secs<br />(c)75 nano secs <br />(d)75 micro secs<br /><br />4. For 1 MB memory, the number of address lines required,<br />(a)11 <br />(b)16 <br />(c)22 <br />(d) 24<br />Ans. (b)<br /><br />5. Semaphore is used for<br />(a) synchronization <br />(b) dead-lock avoidence<br />(c) box <br />(d) none<br />Ans. (a)<br /><br />6. Which holds true for the following statement<br /> class c: public A, public B<br />a) 2 member in class A, B should not have same name<br />b) 2 member in class A, C should not have same name<br />c) both <br />d) none<br />Ans. (a)<br /><br />7. Question related to java<br /><br />8. OLE is used in<br />a) inter connection in unix<br />b) interconnection in WINDOWS<br />c) interconnection in WINDOWS NT<br /><br />9. Convert a given HEX number to OCTAL<br /><br />10. Macros and function are related in what aspect?<br />(a)recursion <br />(b)varying no of arguments<br />(c)hypochecking <br />(d)type declaration<br /><br />11.Preproconia.. does not do which one of the following<br />(a) macro<br />(b) conditional compliclation<br />(c) in type checking <br />(d) including load file<br />Ans. (c)<br /><br />12. Piggy backing is a technique for<br />a) Flow control <br />b) Sequence <br />c) Acknowledgement <br />d) retransmition<br />Ans. (c)<br /><br />13. In signed magnitude notation what is the minimum value that can be represented with 8 bits<br />(a) -128 <br />(b) -255 <br />(c) -127 <br />(d) 0<br /><br />14. There is an employer table with key fields as employer number data <br /> in every n'th row are needed for a simple following queries will get required results.<br />(a) select A employee number from employee A , where exists from employee B where A employee no. >= B <br /> employee having (count(*) mod n)=0<br />(b) select employee number from employe A, employe B where A employe number>=B employ number<br /> group by employee number having(count(*) mod n=0 )<br />(c) both (a) & (b)<br />(d) none of the above<br /><br />15. Type duplicates of a row in a table customer with non uniform key field customer number you can see<br />a) delete from costomer where customer number exists( select distinct customer number from customer having count )<br />b) delete customer a where customer number in b rowid<br />c) delete customer a where custermor number in( select customer number from customer a, customer b )<br />d) none of the above<br /> <br />Section B<br />1. Given the following statement<br /> enum day = { jan = 1 ,feb=4, april, may}<br /> What is the value of may?<br />(a) 4 <br />(b) 5 <br />(c) 6 <br />(d) 11<br />(e) None of the above<br /><br />2. Find the output for the following C program<br />main<br />{int x,j,k;<br />j=k=6;x=2;<br />x=j*k;<br />printf("%d", x);<br /><br />3. Find the output for the following C program<br />fn f(x) <br />{ if(x<=0)<br />return;<br />else f(x-1)+x;<br />}<br /><br />4. Find the output for the following C program<br />i=20,k=0;<br />for(j=1;j<i;j=1+4*(i/j))<br />{k+=j<10?4:3;<br />}<br />printf("%d", k); <br />Ans. k=4<br /><br />5. Find the output for the following C program<br />int i =10<br />main()<br />{int i =20,n;<br />for(n=0;n<=i;)<br />{int i=10;<br />i++;<br />}<br />printf("%d", i); <br />Ans. i=20<br /><br />6. Find the output for the following C program<br />int x=5;<br />y= x&y<br /> <br />7.Find the output for the following C program<br />Y=10;<br />if( Y++>9 && Y++!=10 && Y++>10)<br />{printf("%d", Y);<br />else <br />printf("%d", Y);<br />} <br />Ans. 13<br /><br />8. Find the output for the following C program<br />f=(x>y)?x:y<br />a) f points to max of x and y<br />b) f points to min of x and y<br />c)error<br />Ans. (a)<br /><br />9. What is the sizeof(long int)<br />(a) 4 bytes <br />(b) 2 bytes <br />(c) compiler dependent <br />(d) 8 bytes<br /> <br />10. Which of the function operator cannot be over loaded<br />(a) <=<br />(b) ?:<br />(c) ==<br />(d) *<br /><br />11. Find the output for the following C program<br />main()<br />{int x=2,y=6,z=6;<br />x=y==z;<br />printf(%d",x)<br />}<br />Section C (Programming Skills)<br />Answer the questions based on the following program<br />STRUCT DOUBLELIST<br />{ DOUBLE CLINKED<br />INT DET; LIST VOID<br />STRUCT PREVIOUS; (BE GIVEN AND A PROCEDURE TO DELETE)<br />STRUCT NEW; (AN ELEMENT WILL BE GIVEN)<br />} <br />DELETE(STRUCT NODE)<br />{NODE-PREV-NEXT NODE-NEXT;<br />NODE-NEXT-PREV NODE-PREV;<br />IF(NODE==HEAD)<br />NODE<br />}<br />Q. In what case the prev was<br />(a) All cases<br />(b) It does not work for the last element<br />(c) It does not for the first element<br />(d) None of these<br /> <br />Answer the questions based on the following program<br />VOID FUNCTION(INT KK)<br />{KK+=20;<br />}<br />VOID FUNCTION (INT K)<br />INT MM,N=&M<br />KN = K<br />KN+-=10;<br />}<br /><br />Q. What is the output of the following program<br />main()<br />{ int var=25,varp;<br />varp=&var;<br />varp p = 10;<br />fnc(varp)<br />printf("%d%d,var,varp);<br />}<br />(a) 20,55<br />(b) 35,35<br />(c) 25,25<br />(d)55,55<br /> <br />Section D<br />1. a=2, b=3, c=6 <br /> Find the value of c/(a+b)-(a+b)/c<br /><br />2. What does the hexanumber E78 in radix 7.<br />(a) 12455 <br />(b) 14153 <br />(c) 14256 <br />(d) 13541 <br />(e) 131112 <br />Ans. (d)<br /><br />3. 10 : 4 seconds :: ? : 6 minutes<br />Ans. 900<br /><br />4. Q is not equal to zero and k = (Q x n - s)/2.What is n?<br />(a) (2 x k + s)/Q <br />(b) (2 x s x k)/Q <br />(c) (2 x k - s)/Q<br />(d) (2 x k + s x Q)/Q <br />(e) (k + s)/Q<br /><br />5. From the following statements determing the order of ranking <br />• M has double the amount as D <br />• Y has 3 rupess more than half the amount of D <br />Ans. Data insuffiecient<br /><br />Questions 6 - 10 are to be answered on the following data <br />• A causes B or C, but not both <br />• F occurs only if B occurs <br />• D occurs if B or C occurs <br />• E occurs only if C occurs <br />• J occurs only if E or F occurs <br />• D causes G,H or both <br />• H occurs if E occurs <br />• G occurs if F occurs <br />6. If A occurs which of the following must occurs<br />I. F and G<br />II. E and H<br />III. D<br />(a) I only<br />(b) II only <br />(c) III only <br />(d) I,II, & III<br />(e) I & II (or) II & III but not both<br />Ans. (e)<br /><br />7. If B occurs which must occur<br />(a) D <br />(b) D and G <br />(c) G and H <br />(d) F and G <br />(e) J<br />Ans. (a)<br /><br />8. If J occurs which must have occured<br />(a) E <br />(b) either B or C <br />(c) both E & F <br />(d) B <br />(e) both B & C<br />Ans. (b)<br /><br />9. Which may occurs as a result of cause not mentioned<br />I. D <br />II. A <br />III. F<br />(a) I only <br />(b) II only <br />(c) I & II <br />(d) II & III <br />(e) I,II & III<br />Ans. (c)<br />10. E occurs which one cannot occurs<br />(a) A <br />(b) F <br />(c) D <br />(d) C <br />(e) J <br />Ans. (b)pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0tag:blogger.com,1999:blog-7250452429243066447.post-17529401458914164292007-12-10T06:36:00.000-08:002007-12-10T06:39:34.171-08:00ALL CTS COMPANY PAPERS___________________________________________________________________________________<br /><br />COMPANY NAME : COGNIZANT (CTS)<br />------------------------------------------------------------<br />DATE OF TEST : 2003<br />------------------------------------------------------------<br />PLACE OF TEST: NIT JSR<br />------------------------------------------------------------<br />MODE : Campus<br />------------------------------------------------------------<br />DURATION :<br />___________________________________________________________________________________<br /><br /><br />CTS 2003 – nit jsr<br />Aptitude test: 60Qs Time 1 hr<br /><br />Booklet color : Blue<br /><br />1)<br /><br /> <br /><br /> Diameter of circle is d, Find length of string.(outer string that covers the circle)<br /><br />Ans: d (pi + 3)<br /><br />2) Diamond\’s value is proportional to its weight2 .When the diamond broke wts of pieces in ratio 1:2:3;4:5.<br /><br /> Total loss in value is 85,000.What is the value of the diamond twice the wt of the original diamond.<br /><br />Ans : 45,000<br /><br />3)Person X join a job at 20 yrs.First 3 years sal =10,000 p.a. Afterwards every year inc of 2,000 per year for 10 year. Then sal become const till retirement. at retirement avg sal is 25,000. ( thro’out career) what age he retires.?<br /><br />4)In an island there r tribals who speak lang of atmost 4 words.Lang consists of 4 alphabets.How many words can be formed in that language? Ans 340<br /><br />5) It was found that the cause for the malaria was the swamp marsh and so r swamps were drained .Mosquito the real cause for malaria due to lack of breeding grounds (Swamps) also was wiped out. What does this illustrate?<br /><br />(Ans : (Possible) when many conditions form a result eradication of one cause also eradicates the result)<br /><br />6)An officer kept files on his table at various times in the order 1,2,3,4,5,6 .Typist can take file from top whenever she has time and type it.What order she cann’t type.?<br /><br />(Ans : 4,5,6,2,3,1)<br /><br />7)A and B r fighting .B fires 3 times as many missiles as A. Total hits: total misses = 1/7 .B’s misses 357.B’s hits – A’s hits = 66.A’s hits?<br /><br />8)40 shots taken.50p for a hit.10p for a miss.(he have to give).Finally he has Rs.5.How many hits.? Ans 15<br /><br />9)Find avg of a,b,c,d,e .Given data : avg of any 4 num =avg of any 3 num 2)(a+b)² = 36<br /> <br /> Which of the abv are sufficient?<br /><br />10)What is the difference in times btwn clk 1 & clk2.<br /><br />1) both show same time 6 hrs back 2 ) 1 clk gains 1 min an hr,clk2 gains 2 min an hour.<br />Like abv….<br /><br />11)A takes 9 strides to B’s 7 strides. A stride = 1meter.B stride =1.2m B gets the start of 24m.What dist should A travel to overtake B?<br /><br />12) Tortoise gets 100 m head start. Hare is 10 times faster as tort. What is the dist traveled by hare to catch up tort.?<br /><br />13)4 weights r weighed in pairs. Weights of pairs are determined as 103,105,106,106,107,109 What is the min wt?<br />Ans 51<br /><br />14) Constant cost = 300<br /> and 1.75 / copy. How many copies should he sell at 7.75 /copy to make a profit.<br /><br />15)<br />Find the perimeter ? ANs 28<br /><br />16) 20 members avg =10.5. 3 memb of 11.5,12.5,13.5 left and 3 memb of 10.5,12.5,14.5 joined along with a teacher of 21 yr.Now avg = ….Ans 11.<br /><br />17)<br /><br /> <br /> Find the area of shaded. Radius of circle = 1cm…..Arcs r drawn with center at circumference.<br /><br />18)<br /><br /> <br /><br /> Find the area of the shaded portion?<br /><br />19) Solid cube of 6 * 6 * 6. This cube is cut into to 216 small cubes.(1 * 1 * 1).the big cube is painted in all its faces. Then how many of cubes are painted at least 2 sides. (Ans 56)<br /><br />20) A Bacteria is doubling at every 4 min. After 40 min 1024 bact. Then 256 when>…..? Ans : 32 min<br /><br />21) A bag contains 3 balls of 11 different colors each. Find the min no of chances to find at least 3 balls of same color?<br /><br />Ans : 23<br /><br />22) If x² <> 50 & 100/x < -50.<br /><br />23) If [x] is the int less than x and x is the abs val of x.Then max of [x]/x is Ans d)none<br /><br />24) A work in 12 days b in 15 days. Find the no of days if they work on alternate days. Ans 13 ¼<br /><br />25) A,B,C r positive int.Out of them 2 r odd. Then 5²a + ( b-5)3 (c-3)² = ? Ans : always odd.<br /><br />26) A squarer side is 5cm.If a square of side 10cm is hinged @ the center of the prev square. when they r rotated common area to both squares (Ans : Does not change)<br /><br />27) 3p² + pq + 5q² is even. If <br /><br />a) If p is odd, q is odd<br />b) If p is even, q is odd<br />c) If p is odd ,p is even<br />d) Atleast one of p and q is odd.<br /><br /> Choices are given. Ans : 4) None of these<br /><br />28) A lady has to feed a dog for the one week from Monday to Sunday .She has food types M,N,O,P,Q,R,S .<br /><br />MNOP à protein enriched RS -à vitamin enriched. Vitamin enriched cannot be fed on consecutive days.<br /><br />Conditions given : M should be fed before S.<br /> M should be fed before Q.<br />R Should be fed before S.<br />Before N and Q there should be four types.<br /> Based on this 3 ?s are asked.All r easy to answer…<br />29) A man bought at the cost of 5 plums a rupee and 2 oranges a rupee.He sells 10 plums and 6 oranges at the selling price of 4 plums a rupee and 3 oranges a rupee.What is his gain or loss? Ans loss of 50p.<br />30) Out of 32 books the cost of 10 books is Rs. 50 each and he got a profit of 4%. He sells 15 books at a profit of 3.8461% on the selling price of Rs 70. The remaining cost is 576. The remaining books are sold at Rs 74. What is his total profit.<br />31) Two solutions have milk & water in the ratio 7:5 and 6:11.Find the proportion in which these two solutions should<br />Be mixed so that the resulting solution has 1 part milk and 2 parts water?<br />a)35:3 b)21:36 c)not possible Ans :c<br /><br />Further qs are from reading comprehension.(verbal reasoning) All are easy to answer if u read carefully.<br /> We are not able to get the remaining questions.<br /><br /> All the best nitians<br /> <br /><br />CTS Apti Question paper (Colour: Yellow)<br /><br />There are other three colours also. We received only yellow Question papers.<br /><br /><br />1. If all the 6 are replaced by 9, then the algebraic sum of all the numbers from 1 to 100(both inclusive) varies by Ans: 330<br /><br />2. The total no. of numbers that are divisible by 2 or 3 between 100 and 200(both inclusive) are Ans:67<br /><br />3. From a pack of cards Jack, Queen, King & ace are removed. Then the algebraic sum of rest of the cards is Ans:216<br /><br />4. The average temperature of days from Monday to Wednesday is 37 degree Celsius and that of from Tuesday to Thursday is 34 degrees. The temperature of Thursday is 4/5th of Monday. Then the temperature of Thursday is <br /> Ans: 36 degrees <br />5. Swetha, Tina, Uma and Vidya are playing a gambling. In this different people lose in different games-in the reverse alphabetical order. The rule is that if one loses she should double the amount of others. At the end of 4th game each of them have same amount of money (Rs.32). Which one of them started with the least amount? (6) Which one of them started with the largest amount of money? (7.) At the end of the 2nd game what is the amount of money with uma? <br /> Ans: Vidya, Swetha, Rs.8<br />8. A cube of 12 mm is painted on all its side. If it is made up of small cubes of size 3mm. If the big cube is splitted into those small cubes, the number of cubes that remain unpainted is Ans: 8<br /><br />9. B is 50% faster than A. If A starts at 9 A.M. and B starts at 10 A.M. A travels at a speed of 50 km/hr. If A and B are 300 kms apart, The time when they meet when they travel in opposite direction is Ans:12 noon<br /><br />10. A graph will be there. Inside the graph sheet there will be a Quadrilateral. We have to count the number of squares in the Quadrilateral.<br /><br />11. You are having 31kg of rice. You are provided with a 1kg stone for weighing. In how many weights the 31kg of rice can be weighed. Ans: 5<br /><br />12. A starts at 11:00AM and travels at a speed of 4km/hr. B starts at 1:00PM and travels at 1km/hr for the first 1hr and 2km/hr for the next hr and so on. At what time they will meet each other. Ans:<br /><br />13. There are 80 coins, among them one coin weighs less compared to other. You are given a physical balance to weigh. In how many wieghings the odd coin can be found. Ans:<br />14. Dia of the circle 4cm. The shaded part is 1/3 of the square area. What is the side of the square. Ans: root of 3pi <br /><br />15. A,B,C, can do a work in 8,14,16 days respectively. A does the work for 2 days. B continues from it and finishes till 25% of the remaining work. C finishes the remaining work. How many days would have taken to complete the work Ans:<br /><br />16. Raja went to a beauty contest .his wife was eager to know the result he told that the lady wear a yellow sari was winner. Miss. Andhra Pradesh Miss. Utter Pradesh, Miss. Maharashtra, Miss. West Bengal were the participants all the participants sat in a row. The conditions are (A) The woman wore yellow sari won the competition. (B) Miss. West Bengal was neither the runner-up or winner.(C) Miss. West Bengal was not at either ends.(D) Miss. Maharastra wore the white sari.(E) The women wore white sari and yellow sari sat at extreme ends.(F) The runner-up and winner did not sit together. [This was the passage given and the questions were easy]<br /><br />17. The ratio of white balls and black balls is 1:2. If 9 gray balls is added it becomes 2:4:3. Then what is number of black balls. Ans:12<br /><br />18. There are 10 coins. 6 coins showing head. And 4 showing tail. Each coin was randomly flipped (not tossed) seven times successively.after flipping the coins are 5 heads 4 tails one is hided the hided coin will have what.<br /><br />19. Two cars are 500 cm apart. each is moving forward for 100 cm at a velocity of 50 cm/s and receding back for 50 cm at 25 cm/s at what time they will collide with each other.<br /><br />20. People near the sea shore are leading a healthy life as they eat fish.but people at other part of the city are also healthy. Inference.<br /><br />21. It is found from research that if u r a drunken then u have a less chance for chronic heart diseases. Inference.<br /><br />22. A-B+c>A+B-C i) B is +ve, ii) B is –ve when it will hold true.<br /><br />23. i) C.P is Rs 120 and profit is 30%<br />ii) C.P is Rs 210 and profit is 20%<br />we can find the S.P by using<br />i)only ii)only both i &ii neither i&ii<br /> <br /> 24. How will u find distance between Nagpur and Mumbai?<br /> I took one hour more when I travel at 80 km/hr than at 90 km/hr.<br /><br /> 25. 100 coins were collected by four persons each collected more than 10 each collected a different number each was an even number find what is the max possible no of coins, two more questions based on the same passage.<br /><br /> 26. A car travels from B at a speed of 20 km/hr. The bus travel starts from A at a time of 6 A.M. There is a bus for every half an hour interval. The car starts at 12 noon. Each bus travels at a speed of 25 km/hr. Distance between A and B is 100 km. During its journey , The number of buses that the car encounter is<br /><br />27. The ratio of the ages of the father and the son is 5:3, After 10 years it will be in the ratio 3:2. What will be their ages. <br />28. There was a Island. In that Island there was Rubys and Emeralds. Those were available in plenty. 0.3 kg of ruby is 4 lakhs and 0.4 kg of emeralds is 5 lakhs. Jayanth is buying 12 kg of Ruby and emerald. Choices will be given . Jayanth has to carry both ruby and emerald to the maximum profit.<br />29. Varun buys 8 books,10 pens and 2 pencils and Babu buys 6 books, 5pens and 5 pencils. Babu pays 50% more than Varun. What is the amount Varun spends in buying pencils.<br />30. Prakash and Revathi rent a fancy shop. Prakash imposes the following restrictions on Revathi for buying clips,stickers and lip sticks. The number of clips is twice the no. of stickers. The no. of lipsticks should be more than the sum of clips and stickers. Cost of clip is 1 rupee. Cost of lipstick is twice the clips. Cost of 1 lipstick is the cost of four stickers. Then What is the amount that Prakash spents for Revathi. Answer choices will be given.<br /><br /> <br />1.Train A starts from station A at 11.am.Train B starts from station B at 12 noon.the speed of train A is 4 kmph,train B is 1 kmph for the first hour,2 kmph for the 2nd hour,3 kmph for the 3rd hour etc.At what time do the two trains meet? ans:2 PM<br />2.There is a coin collection.100 coins in all.4 peopke collect coins.Each collects a minimum of 10 coins.and each has different number of coins.the numbers are even. (4 questions based on this)<br />3.Moped problem based on time and distance<br />4.Find the number of integers divisible by either 3 and 12 from 1 to 999.<br />5.Find the number of integers divisible by either 3 or 2 from 100 to 200 including both,<br />6.There is a cube of side 4 cm.The faces are coloured in red.the cube is cut into pieces of size 1 cm.How many cubes have no colour Ans:8<br />7.There are 80 coins.One coin is counterfeit in weight.How many minimum weighings are required to find out the counterfeit coin? Ans 4<br />8.There are 31 kgs of rice .With a 1 kg weight,Find out the minimum number of weighings required to weigh 31 kgs.<br />9.there are four contestants in a beauty contest.they aer Ms.UP,Ms. MP,<br />Ms.AP and Ms.WB.each is wearing a different colour saree(red,blue,green and white).They are seated in a row.The winner and runner are not sitting near each other.Ms.WB is noehter the winner nor the runner.the green and white saree contestans are sitting in either end and the green color saree contestant is the runner up.<br />4 questions based on this<br />10.there is a pack of cards.Find the sum of integers excluding all the picture cards. Ans.216<br />11.Two questions based on figure. Given at the end.<br />12.There are 2 cars moving in opposite directions.the distance between them is 300cm.They move forward for 100cm with a speed of 50 cm/s,and omes back 50 cms at 25cm/s.after how many seconds will the cars collide?<br />13) There is a room with 12 slots for painting. The details about the paintings are as follows:<br /> 18th century paintings - 3<br /> 19th century paintings - 2<br /> 20th century paintings - 4<br /> Make up a sequence so that the paintings may be arranged with the following rules.<br /> 1) The 5th slot is always empty.<br /> 2) There must be an empty slot between paintings of different groups (century).<br /> 3) The paintings of the same group can be placed together.<br /> <br /> A set of questions were asked with the pattern that was framed.<br /><br /><br />14)<br /><br />Find the area of the square which is covered by the circle.<br />The area is 1/3 area of the square. Find the side of the square.<br />15)<br />Find the number of squares.<br /><br />___________________________________________________________________________________<br /><br />COMPANY NAME : COGNIZANT (CTS)<br />------------------------------------------------------------<br />DATE OF TEST : 28 May 2003<br />------------------------------------------------------------<br />PLACE OF TEST: GCT, Coimbatore<br />------------------------------------------------------------<br />MODE : Campus<br />------------------------------------------------------------<br />DURATION :<br />___________________________________________________________________________________<br /><br /><br /><br /><br />CTS GCT 28 MAY 2003<br /><br />CSE AND ECE TOTAL SHORTLISTED------24+26<br /><br /><br />This is the CTS paper that was given to GCT. This is the only college they went in Coimbatore. Then there were three papers- pink, violet, and yellow. The paper they gave here was pink. The criterion was above 6.5 with no current arrears. They also saw the 10th and 12th marks along with the entrance marks. They opened only for cse and ece. I cud collect some of the questions. It doesn’t hav the full paper. Actually the test is for an hour. There was quans, annals, reading comprehension, logical reasoning. The problems were more of R.S Agarwal. The others were just like in GRE.<br /><br />1. Using the digits 1,5,2,8 four digit numbers are formed and the sum of all possible such numbers.<br />ans:106656<br /><br />2. Four persons can cross a bridge in 3,7,13,17 minutes. Only two can cross at a time. find the minimum time taken by the four to cross the bridge.<br />ans:20<br /><br />3. Find the product of the prime numbers between 1-20<br /> ans..9699690<br /><br /> 4. 2,3,6,7--- using these numbers form the possible four digit numbers that are divisible by 4. ans.----8<br /><br />5. Two trains are traveling at 18kmph and are 60 km apart. There is fly in the train. it flies at 80kmph. It flies and hits the second train and then it starts to oscillate between the two trains. At one instance when the two trains collide it dies. Distance traveled by the fly when both trains collide is Ans.---12km<br /><br />6. there are 1000 doors that are of the open-close type. When a person opens the door he closes it and then opens the other. When the first person goes he opens-closes the doors ion the multiples of 1 i.e., he opens and closes all the doors. when the second goes he opens and closes the doors 2, 4 6 8 resly. Similarly when the third one goes he does this for 3 6 9 12 15th doors resly. Find number of doors that are open at last.<br />Ans:square numbers<br /><br />7.There are 9 balls of this one is defective. Find the minimum no. of chances of finding the defective one.Ans 3times<br /><br />8. There are coins of Rs.5, 2,1,50p,25p,10p,5p. Each one has got a weight. Rs 5 coin weighs 20gms.find the minimum number of coins to get a total of 196.5gms.<br /><br /><br />9.A can do a work in 8 days, B can do a work in 7 days, C can do a work in 6 days.<br /> A works on the first day, B works on the second day and C on the third day resly.that is they work on alternate days. When will they finish the work.(which day will they finish the work)<br /> Ans: 7 7/168 days<br /><br /> 10.A batsman scores 23 runs and increases his average from 15 to 16. find the runs to be made if he wants top inc the avg to 18 in the same match.<br />ans: 39runs.<br /><br />11.A man sells apples. First he gives half of the total apples what he has and a half apple.<br />Then he gives half of the remaining and a half apple. He gives it in the same manner. After 7 times all are over. How many apples did he initially have.<br />ans: 127 apples.<br /><br />12.In a club there are male and female members. If 15 female quit then the number of females will become double the number of males. If 45 males quit no. of female becomes five times the number of males. Find the number of females.<br />ans: females:175,males:80<br /><br />13.When I was married 10 years back my wife was the sixth member of my family. Now I have a baby. Today my father was dead and I had a new baby.now the average age of my family is the same as that when I was married. Find the age of my father when I was married.<br />ans:50<br /><br />14.I and two of my friends were palying a game. For each win I get Rs 3. totally I had three wins. Player 2 got Rs9 and player 3 got Rs 12. how many games had been played.<br /><br />15.A person gives a secret to two other persons in 5 minutes. How long will he take to tell the secret to 768 people.<br /><br /><br />16.There are 40 seats in a bus. People agree to share the money for the number of seats. The total money comes to 70.37. how many seats were free.<br />9 seats.Rs.2.27<br /><br />17.I had Rs100 and I play. If I win I will hav Rs110 and if I lose I will hav Rs90. at the end I hav 2 wins and 2 loses. How much do I hav.<br /><br />18.There were sums related to diagrams. They asked to calculate the areas of the circle, rectangle that were enclosed in other objects. They were simple.<br /><br /><br /> 20. In a village, there is flood. In one village causalities were less than the other. Why?<br /> Ans : There were better health care centres(HCC). <br /> 21. A question on Pythagoras Theorem. Ans. 20<br /><br /> 23. The distance between Mumbai & Calcutta is 25000 Km. Train goes from Mumbai to Culcutta for which Speed & Time are given. From C->M Speed alone is give. Of the above conditions which is not required. (Not Complete)<br /> ans: The distance 25,000Km is not required. Because, Speed * Time = Distance. So only two conditions are required.<br /> 24. m <>y Which is false?<br /> Ans: x-m < y-n<br /> 25. A person has Rs.100. If he wins he gains 10%. If he loses the game, he loses 10%. He wins twice and loses twice. How much he has at the end?<br /> Ans: Always less than 100.<br /><br /> 26. Area of Shaded portion is ?<br /> Ans : 115.5<br /><br /> Verbal<br /> 27. In A tribal group two groups live in different climatic conditions. Ear Sensitivity is tested and found that one has more when compared to other. What is the reason.<br /> Ans. Depends on the physical place and condition he is living. <br /><br /><br /><br /><br /><br />There were many questions on logical reasoning.<br />Eg:<br /> There are two identical islands. Same tribe live in the islands. But their receptiveness varies.<br />This is the question.<br />There were four choices and we have to select the most appropriate one.<br /> For the above one the answer is ----- because of climatic changes<br />There was a question in which they gave a polygon with all the external angles. we have to calculate the asked interior angle.<br /><br /><br /><br /><br /> <br />___________________________________________________________________________________<br /><br />COMPANY NAME : COGNIZANT (CTS)<br />------------------------------------------------------------<br />DATE OF TEST : 2003<br />------------------------------------------------------------<br />PLACE OF TEST: GCT, Coimbatore<br />------------------------------------------------------------<br />MODE : Campus<br />------------------------------------------------------------<br />DURATION :<br />___________________________________________________________________________________<br /><br /><br />-----Original Message-----From: Vijay Ramachandran Sent: Wednesday, June 18, 2003 11:40 PMTo: <a href="mailto:chetana-jobs@yahoogroups.com">chetana-jobs@yahoogroups.com</a><br />Subject: [CHETANA] CTS, TCS Papers of Anna Univ GCT and PSG...<br /><br />Am attaching the papers of CTS which was given in GCT, Coimbatore.,Anna University, Chennai and PSG, Coimbatore.<br /><br /><br />CTS Questions 28th May 2003:<br /><br /> There are 60 questions to be answered in 60 minutes<br /><br />1) In a club there are certain no. of males and females. If 15 females are absent then no. of males will be twice that of females. If 45 males are absent then female strength will be 5 times that of males. Find no. of males actually present.<br /><br />2) Three men A, B, C plays Cards. If one loses the game he have to give Rs.3. If he wins the game he will gain Rs.6. If A has won 3 Games, B loses Rs.3, C wins Rs.12.What is the total no. of games played?<br /><br />3) A can swim & cross 50m(the length of swimming pool) in 2 min. B can swim & cross 50m in 2min 15sec. Every time when they meet a bell gong is struck. For 2000m how many bell sounds might be produced?<br /><br />4) When I was married 10 years ago my wife is the 6th member of the family. Today my father died and a baby born to me. The average age of my family during my marriage is same as today. What is the age of Father when he died?ans:70.<br /><br />5) There are 9 balls of equal size and same weight(they look similar) except 1. How may weighs required to find the dissimilar ball using a weighing balance?<br /><br />6) Product of Prime no. between 1 to 20?<br /><br />7) Find out the total numbers between 1 to 999 that are neither divisible by 8 nor by 12?<br /><br />8) Find out the distinct numbers that can be formed by 2, 3, 7, 6(don’t now exactly) that should be divided by 4?<br /><br /><br /><br /><br />9) Two trains at speed 60 km/hr comes in the opposite direction. At a particular time the distance between the two trains is 18km. A shuttle flies between the trains at the speed of 80 km/hr. At the time the two trains crashes what is the distance traveled by shuttle?<br /><br />10) There are n urns and m balls. If we put 3 balls in each urn 3 balls will be excess. If we put 4 balls in each urn 1 urn will be excess. Find no. of Urns (or) Balls?<br /><br />11) Find the area not occupied by circles:<br /> Given length =y breadth =x (Answer: 3x2(1-pie/4))<br /><br /><br />12) A man gets x/y of Rs.10 and y/x of Rs.10. He returns Rs.20. The Answer choices are<br />a) He may not lose<br />b) He may lose<br />c) He always loses<br />d) Cannot be Determined<br /><br />13) Three men A,B,C can complete a work separately in some specified days(may be6,7,8).<br />If they do the work together by alternate days. Then how many days need to complete the work?<br /><br />14)Four Members A,B,C,D are playing a game .A person losing a game should double the amount of others .B,C,D are losing in order after three games .The amount after 3 games are A&B having 40,D is having 16&C 80.<br />Each questions carry one mark:<br /> a) who started with small amount of money?<br /> Ans)A<br /> 15)who started with greatest amount of money?<br /> Ans)B<br /> 16)what amount did B have?<br /> Ans)93<br />Hint: I solved and found the answers to be A->5,B->93<br />17)There are some houses in a street back to back .And they that house behind 10 was 23.<br />How many houses in the street?<br /> Ans)32<br />18)There are 1997 doors in a auditorium and as many as people as the no of doors open enter the auditorium .A door was closed and as many as people as no of doors open leave the auditorium . the process was repeated till the no of doors is equal to1.find the total no of peoples enter the auditorium?<br />19)A batsman average was 15.at last innings he took 23 runs then his average became <br /> 16.how much run he should take to make his average 18?<br />20)Find the number WXYZ divisible by 36?<br /> i)let the digits be5,4,3,6 –not in that order<br /> ii)sum of last two digits is 9<br /> iii) sum of middle two digits is 7<br /> ->if one is sufficient then ans asA if two is sufficient then ans as Bif all are necessary then ans as C if nothing is needed then ans as D<br />21)X and Y live in a North-South parallel street. X travels 10 km towards North to reach the east-west street . Y travels 6 km towards south to reach the east –west street . X travels now 4km towards east and y travels 8km towards west and they met each other. What is the distance between x and y?<br /><br />22)The houses are numbered 1,2,3,… and reach the end of the street and backtracks toward s the starting point. The house numbered 10 is opposite to 23. there are even no of houses. Find the total no of houses.<br /><br />23)A seller has a set of apples out of which he sells one half of it and half an apple to his first customer.then he sells half of the remaining apples and a half apple to his second customer.Then he sells half of the remaining apple and ½ apple to his third customer and so on.This repeats upto 7th customer and no more apples are remaining . Find the total no of apples he had.<br /><br />24) A hollow cube of size 5cm is taken , with the thickness of 1cm . it is made of smaller cubes of size 1cm . if the outer surface of the cube is painted how many faces of the smaller cubes remain unpainted?<br /><br />25)if a 36 cm thread is used to wrap a book , lengthwise twice and breadthwise once, what is the size of the book?<br /><br />26) <br />the various degrees of the vertices are marked in the dig. Find y.<br /><br />27)if 4 circles of equal radius are drawn with vertices of a square as the centre , the side of the square being 7 cm, find the area of the circles outside the square?<br /><br />28)A bus has 40 seats and the passengers agree to share the total bus fare among themselves equally. If the total fair is 80.67 , find the total no of the seats unoccupied.<br /><br />29) A 4 digit no may consist of the digits 6,2,7,5 where none of the nos are repeated.Find the possible no of combinations divisible by 36?<br /><br />30) if u r traveling from Mumbai to banglore and return back .To find the speed of the car which of the following r needed.<br /> a)the distance between them.<br /> b)time taken<br /> c)avg speed towards Mumbai and the avg speed towards banglore. <br />Choices: 1)a only. 2)a and b 3) a,b,c 4)b only 5) c only ( ans not in order)<br /><br />31)<br />( Diagram drawn approximate not to scale.)<br /> if all the blocks are squares and the complete fig is also a square and the area of the a is 1 cm2,b=81 cm2what is the area of i?<br /><br />32) A secret can be told only 2 persons in 5 minutes .the same person tells to 2 more persons and so on . How long will take to tell it to 768 persons ?<br />a)47.5 min b)50 min c) 500 min d)…. Ans: 47.5 min<br /><br />33) Three birds cross a point in a same st. line and of that 2 fly in opposite directions. If a triangle is formed with the position of the birds what kind of the triangle will be formed?<br />a)isosceles b)right angle c)equilateral d)right angle and isosceles.<br /><br />34) <br /> <br /><br />when the angle a, b, c, d are given find x.<br /><br />35) One question is given for explaining the working of cornea (in eyes) & the window<br /> ans: drawing analogy<br />36) m<n, & x<y which of the following is definitely false<br /> a)m-n < x-y b)m+n < x+y<br /> c)&d) Similar options using all 4 variables<br /><br />37)Four circles are drawn from the corners of a square of area 49 cm2 . Find the area of 4 circles outside the square<br />(they didn’t mention that circles have radius=1/2 side of a square)<br />ans: intermediate<br /><br />38)In a pond ecosystem,large fishes and small fishes will be there.If we want to remove small amount of pollutants,small fishes are to be employed.In a food-chain food passes through a number of mouths and en route the mouth of the superfeeder-the eagle.The size of the ecosystem is determined by its population.But this has been proved false.<br />What can you infer from above?<br />(4 choices)<br /><br />39)In Bangalore,during income tax deduction for a single person,the percentage increased by 3% and for middle house-holders,it decreased by 3%.What can you infer?<br /><br />40)In China,Mao-Tse –Tung was responsible for organizing its people and taking China into success path.It evolved into a great economic power by improved industrial and economical statistics.China prospered in those years,but_________________<br />Which of the following best completes the sentence?(4 choices)<br /><br />41)A ridge formed over Pacific Ocean was because of the intersection of two volcanoes.But in history it was written that it was not due to those volcanoes.It proves a contradictory to form the view that history will be proved wrong in the future.<br />Inference?<br /><br />42)In a poultry form because of cloning,a large breed of hens were produced.This increased the production but the maintenance was very difficult because of the large number.This does not mean that cloning is a disaster in the scientific world but it is a tool which in some ways is constructive but in other ways ,it is destructive.Inference?<br /><br />(The remaining verbal questions are easy and they can be answered by seeing the question carefully)<br />Product of prime number between 1 and 20.<br />Number of terms between 1 and 999 not divisible by 8 or 12.<br />There are number of hours on both sides of a road. On one side houses are numbered in increasing order (1,2,3…). On other sides houses are numbered in down order. It house number 10, opposite house is house no.23. Find no of houses (Even number of houses are provided).;<br />What is the area of the shaded region?<br />Ans.3*x*X(1-(pi/4)).<br />An apple seller is having some apples. He is selling half of the apple what he has plus half the apple to the first customer. In the same way he sells the remaining apple to 7 customers. After selling to 7 customer, he has no apples with him.<br />Ans.127<br />In the combinations of 2,3,6,7 how many possible combinations divisible by 4?<br />Ans. 8<br />If x>y & n>m which of the following data is false.<br /><br />There are no of urns &no of balls. If three balls are placed in each urn then 3 balls is left. If 4 balls are placed in each urn then 1 urn is left. What is the total no of balls?<br />Ans. None of these.<br />There are 1997 doors in the courts. 1997 people came out from each door. One door is closed. That many people came out from each door. This continues till a single person come out of the single open door. Find the no of people inside the court? <br />There dare four teams A,B,C, D playing game. If any one team loses, it will play twice the money to all other teams. They play 3 games B,C,D loses one game each in the order. Finally A& B has Rs. 40 each & C has Rs. 80 & D has Rs. 16.<br /><br /> Which team has started with minimum money?<br />i) A ii) B iii) C iv) D<br /> <br /> ans. I) A<br />Which team has started with maximum money?<br />i) A ii) B iii) C iv) D<br /> Ans. ii) B<br />Two trains are traveling in 60 kmph on same trace, towards each other. When the distance between them is 18 km, a fly is going to start, flying between them in 80 kmph speed. Find the traveling path distance of the fly upto when it is going to crush by the 2 trains?<br />Ans. 12 km<br />A batsman outs for 23 runs in one inning which increases his average 15 to 16. If he has to got 18 as average, what score is to made by him in the same innings?<br />Ans. 39<br />There are 4 numbers as 5,8,2,1<br />Form 4, four digit numbers as A ,B and find the sum?<br />A,B,C,D,E,F,G,H,I are all of squares which are combined in a square. Area of B is 81 cm2.Side of A is 1 cm. Then find area of ‘I’?<br />Ans. 324 cm2.<br />Death rate in a village (drought ridden ) decreases. Naidu Govt claims it free health camps. This goes in valid when<br /> Ans. i. Two water supply tanks were built supplying clean water.<br />In 1996, income after taxdeduction of upperclasses increases by 3% than in 1995.<br /><br />Choices:<br />1) No of upper class population increases<br />2) ,, ,, decreases<br /><br />A Man gets x/y of Rs. 10 & y/x of Rs. 10, He gives out Rs. 20.<br /><br />i) He loses always ii) May or maynot less<br />iii) cannot always lose.<br /> <br />Petrol prices increased by 40% expected hike in taxi & auto charges so, people may use public transport systems. What do you infer?<br />All people use a bus paid equalty. 40 seats in the bus.Bus charge is Rs. 70.37How<br />many seats we left unfilled.<br />4 men can cross a bridge in 3,7,13, 17 minutes. Only two can cross the bridge at a time. The time taken by the two to cross the bridge is equal to the time taken by the slowest person of the two. Find the mininmum time to all of them cross the bridge.<br />Ans. 47<br />1000 doors<br /> <br />I man open all<br />II man 2 multiples close<br />III man 3 multiples open<br />IV man 4 multiples close<br /><br />How many doors are open?<br />I was married 10 years before my wife was sixth member of my family and now I have a baby and today father died and the average age of my family was same as it was 10 years before. Find my fathers age when I was married.<br />Ans. 60<br />Square side 7 cm<br />Find the area 4 equal circles of the circle lying drawn at the …….<br />It takes five minutes to pass a rumour from one person to two other persons. The tree of rumour continues. Find how many minutes does it take spread the rumour to 768 persons.<br />There are 9 coins. One of 9 is less weighted and others have equal weigtheds. Find the minimum no of balances to find the defective coin?<br />Ans. 2<br />(Train did not stop at Calcutta)<br />2500 km distance between Mumbai & Calcutta, Calculate the average speed. 1) from Mumbai to calculate 25 hrs 2) speed during the return journey was 150 km/hr. 3) speed during the forward journey is 100 km/hr. a) if it can be answered using each of the given above . Mark b) if it can be answered using two of them . Mark c) If it can be answered using non of them. Mark d) if non of them is required to answer.<br />Ans. (b)<br />Three brids cross a point at the same instant with equal speed. Two of the birds fly exactly in opposite direction. After they cross the point at any instant of time. The tree birds are joined by straight lines to form a triangle. The nature of the triangle is<br />i) isoceles ii) equilateral iii) Right angled iv”) rightangle isosceles<br />There are two parallel street in North-South direction . A lives in street 1, B lives in street 2, A goes 10 km north and B goes south 8 km to meet the east – west road. A moves 4 km east and B moves 6 km west to meet each other. Find distance between houses owned by A & B.<br /> A question on eco system.<br />Inference: Food energy in the eco system dependson the type of population.<br /><br /><a name="top"></a><a href="http://www.cognizant.com/">Cognizant Technology Solutions </a> (CTS)<br /><br /><br /> Analogies1. slur : speech : : smudge :?Ans. writing<br />2. epaulet : shoulder : : ring :? Ans.finger<br />3. vernacular : place : : fingerprint : ?Ans.identical<br />OppositesQ. corpulent Ans: emaciated<br />Q. officiousAns: pragmate<br />Q. dextrousAns: clumsy<br />The following sentences are broken into 4 sections- A, B, C, DChoose the part which has a mistakeMark (E) if you find no mistake.<br />Q.A)psychologists point out that B)there are human processes C)which does not involve D) the use of words<br />Ans. (C) which does not involve (do)<br />Q.A)jack ordered for B)two plates of chicken C)and a glass D)of water<br />Ans. (A)jack ordered for<br />The following is a group of questions is based on a passage or a set of conditions for each question.Select the best answer choice given.<br />(i). If it is fobidden by law if the object of agreement is the doing of an act,that is forbidden by law the agreement is void.<br />(ii). If it is of the nature that,it would defeat the provision of any law is the agreement is void.if the object of agreement is such that thing got directly forbidden by law it would defeat the provision of statuary law.<br />(iii). If the object of agreement is fraddulent it is void.<br />(iv). An object of agreement is void if it involves or implies to the personnal property of another.<br />(v). An object of agreement is void where the constant regards as ignored.<br />(vi). An object of agreement is void where the constant regards is as opposed to public policy.<br />Q. An algorithm follws a six step process za,zb,zc,zd,ze,zf, it is governed by the following<br />(i) zd should follow ze(ii) the first may be za,zd or zf(iii) zb and zc have to be performed after zd(iv) zc must be immediately after zb<br />Q. If za is the first set zd must be<br />a) 3rd b) 5th c) 2nd d) 4th<br /><br />Q. If zb must follow za then za can be<br />a) third or fourthb) first or second c) can not be third d) fouth or fifth e) none<br />Q. If ze is third term the number of different operations possible are<br />The following questions are based on the given statementsRavi plants six seperate saplings -- x,y,z,w,u,v in rows no 1 to 6 ,according to the follwing conditionsHe must plant x before y and uHe must plant y and wThe third has to be z<br />Q. Which of the following is acceptable<br />a) xuywzv b) xvzyuw c) zuyxwv d) zvxuwy e) wyzuvx<br />Q. Which of the following is true<br />a) z before v b) z before x c) w before u d) y before ue) x before w<br />Q. If he plants v first, then which can be planted second<br />a) xb) yc) zd) we) u<br />Q. Which of the following describes a correct combination of sapling and row?<br />a) x,3 b) y,6 c) z,1 d) w,2 e) u,6<br />Q. If he plants b 6th which would be planted first and second<br />a) x and w b) x and y c)y and x d)w and z e) w and u<br />Q. If he plants w before u and after v he should plant w at<br />a) first b) second c) fourth d) fifth e) sixth<br />Q. At a certain moment a watch shows 2 min lag although it is running fast. If it showed a 3 min lag at that moment, but also gains by 1/2 min more a day than its current speed it would show the true time one day sooner than it usually does. How many mins does the watch gain per day.<br />a).2 b).5 c).6 d).4 e).75<br />Q. In 400m race A gives B a start of 7 sec and beats him by 24 sec. In another race A beats B by 10 sec.the speeds are in the ratio<br />a)8:7 b)7:6 c)10:8 d)6:8 e)12:10<br />Q. 3x+4y=10 x3 + y3=6 What is the minimum value of 3x+11y=?<br />Q. There are 600 tennis players 4% wear wrist band on one wristOf the remaining, 25% wear wrist bands on both hands How many players don't wear a wrist band?<br />Ans. 432<br />Q. Three types of tea the a,b,c costs Rs. 95/kg,100/kg and70/kg respectively. How many kgs of each should be blended to produce 100 kg of mixture worth Rs.90/kg, given that the quntities of band c are equal<br />a)70,15,15 b)50,25,25 c)60,20,20 d)40,30,30<br />Ans. (b)<br />Q. Two distinct no's are taken from 1,2,3,4......28 Find the probability that their sum is less than 13<br /><br /><br /><br /><br /><a href="http://www.cognizant.com/">Cognizant Technology Solutions </a> (CTS)<br /><br /><br /><br /> This is only a sample paper. We are not providing you with all the questions - just some questions to give you a general idea of the test pattern.<br />SECTION-1:<br />Find the next in the sequence:1. BC CE EG GK ?a)KN b)KU c)KM d)None2. AA AB BC CE?a)EG b)EH c)EI d)None3. AB EF JK QR ?a)YZ b)ZA c)AB d)None4.ACD EGL IKT MOB? a)QST b)QSZ c)QSY d)None5.AC CG GO OE?a)EJ b)EI c)EL d)None6.AE BH CM DU?a)EH b)EZ c) EB d)None7. AD DP PL LVa)VSb)VK c)VI d)None8. SE QU EN TI?a)CN b)BM c)AI or AZ d)None<br />SECTION-II:Find the values for the following problem:f(X)= 2X-1 + f(X-1) if X is not equal to zeroandiff(X=0)=0<br />9. Value of f(5)a)15 b)24 c)22 d)None10. Value of f(f(2))11. Value of f(16)- f(15)12. Value of f(16)+f(15)-48013. If f(f(X))=81 then the value of X=?14. If f(X)=4f(X-1) then the value of X=?15.If f(X)= f(X-1)+f(X-2) for X>1 then X= ?16. If f(X)-f(X-1)=f(X-8) for X>5 then X=<br /><br />SECTION -III:In the following questions a 'word' is given which may not have any meaning.Find differnet possible words or palindromes for the word as per the question.For the following find no of distinct words that can be formed.17. TYGHHTTa).420 b)1540 c)840 d)None<br />18. TYGHHTY19. TYGHHTT<br />20. TYGHHTT<br />21. TYGHASD<br />22. TYGHHTY<br />Find the number of possible palindromes for following<br />23. TYGHHTY<br />24. TYHHHTYH.<br />SECTION-IV:25 to 32 are based on the figures. You have to analyse them and find the odd one out. Five figures will be given out of which one is not correct.<br />Refer R.S Agarwal's book on Analytical Reasoning & TMHs Quantitative ability book by Edgar Thorpe.<br />SECTION -V:For following first find out the anagram and then note the corresponding meaning.33.TABLET Hint: anagram means first u arrange the letters in correct order like TABLET===BATTLE . So ans is FIGHT<br />34.RUGGED<br />35.GORE.<br />36.STASSI.<br />For all above choices are.a)resentment b)fight c)help d)monster<br />37. ENFOLD<br />38. LAMB<br />39. RECEDE.<br />40. PLEASE.For all the above 4 choices are samea)cuddle b)sleeping c)proclamination d)ointment.<br /><br />CTS Sample Test Paper#1<br /><a title="Back to home page" href="http://placementpapers.com/index.html" target="_blank">Home</a><br /><a href="http://placementpapers.com/CTS/CTS.htm" target="_blank">Back To CTS Page</a><br />This is only a sample paper. We are not providing you with all the questions - just some questions to give you a general idea of the test pattern.<br />SECTION-1:Find the next in the sequence:1. BC CE EG GK ?a)KN b)KU c)KM d)None<br />2. AA AB BC CE?a)EG b)EH c)EI d)None<br />3. AB EF JK QR ?a)YZ b)ZA c)AB d)None<br />4.ACD EGL IKT MOB?a)QST b)QSZ c)QSY d)None<br />5.AC CG GO OE?a)EJ b)EI c)EL d)None<br />6.AE BH CM DU?a)EH b)EZ c) EB d)None<br />7. AD DP PL LVa)VSb)VK c)VI d)None<br />8. SE QU EN TI?a)CN b)BM c)AI or AZ d)None<br />SECTION-II:Find the values for the following problem:f(X)= 2X-1 + f(X-1) if X is not equal to zero and if f(X=0)=0<br />9. Value of f(5)a)15 b)24 c)22 d)None<br />10. Value of f(f(2))<br />11. Value of f(16)- f(15)<br />12. Value of f(16)+f(15)-480<br />13. If f(f(X))=81 then the value of X=?<br />14. If f(X)=4f(X-1) then the value of X=?<br />15.If f(X)= f(X-1)+f(X-2) for X>1 then X= ?<br />16. If f(X)-f(X-1)=f(X-8) for X>5 then X=<br /><br />SECTION -III:In the following questions a 'word' is given which may not have any meaning.Find differnet possible words or palindromes for the word as per the question.For the following find no of distinct words that can be formed.17. TYGHHTTa).420 b)1540 c)840 d)None<br />18. TYGHHTY19. TYGHHTT<br />20. TYGHHTT<br />21. TYGHASD<br />22. TYGHHTY<br />Find the number of possible palindromes for following23. TYGHHTY<br />24. TYHHHTYH.<br />SECTION-IV:25 to 32 are based on the figures. You have to analyse them and find the odd one out. Five figures will be given out of which one is not correct.<br />Refer R.S Agarwal's book on Analytical Reasoning & TMHs Quantitative ability book by Edgar Thorpe.<br />SECTION -V:For following first find out the anagram and then note the corresponding meaning.33.TABLET Hint: anagram means first u arrange the letters in correct order like TABLET===BATTLE . So ans is FIGHT<br />34.RUGGED<br />35.GORE.<br />36.STASSI.<br />For all above choices are.a)resentment b)fight c)help d)monster<br />37. ENFOLD<br />38. LAMB<br />39. RECEDE.<br />40. PLEASE.For all the above 4 choices are samea)cuddle b)sleeping c)proclamination d)ointment.<br />CTS Sample Test Paper#2<br /><a title="Back to home page" href="http://placementpapers.com/index.html" target="_blank">Home</a><br /><a href="http://placementpapers.com/CTS/CTS.htm" target="_blank">Back To CTS Page</a><br />This is only a sample paper. We are not providing you with all the questions - just some questions to give you a general idea of the test pattern.<br />SECTION I - 8 questions based on series.1. These questions involve interchange of letters in a word at particular locations and also interchanging letters adjacent to those particular locations.Certain other conditions may also be givenFor eg.Let the word be ABBAABAIf we apply 25 on this, it means we have to interchange the letters at positions 2 and 5, also we have to change the letters adjacent to positions 2 and 5 i.e.from A to B and B to A. A B B A A B after Step 1 i.e interchange of 2 and 5 becomes AABABBNow change adjacent elements of 2 and 5...finally answer becomesAns: B A A B B AQuestions 1-5 are based on the pattern with changed numbers as described above<br />Questions 6-8 are of the following type<br />To get AAABBD from BBBAAA what number should be applied:-a) 25 b) 34 c) 25 & 34 d) none<br />SECTION II1. Given the following functions(1) f(n a b c ) = ac if n=1(2) f(n a b c) = f( n-1 a c b) + f( 1 a b c) + f( n-1 b a c ) if n > 1 Then what is the value f( 2 a b c ) = ?Ans: f( 2 a c b ) = ab + ac + bc.<br />2. Similar question on functions.<br />3. [ Based on the function in the first question] For the function f( 4 a b c ) the number of terms is...?Hint f( 4 a b c ) = f( 3 a c b ) + f( 1 a b c ) + f( 3 b a c ) etc.4. What is the value of the function f( 5 a b c ) = ?<br />SECTION IIIPermutations and Combinations.8 Questions.1. r = number of flags;n = number of poles;Any number of flags can be accommodated on any single pole.1) r=5,n=5 The no. of ways the flags can be arranged ?Questions 2-5 are based on the above pattern<br />6. r = 5 n = 3 . If first pole has 2 flags, third pole has 1 flag How many ways can the remaining be arranged?Questions 7.& 8. are similar to Question 6.<br />SECTION IVQuestion consisting of figures - Pattern-matching type.<br />Refer R.S Agarwal's book on Analytical Reasoning & TMHs Quantitative ability book by Edgar Thorpe.SECTION VIn this section first part of compound word is given. Select meaning of the second part from the choice given:1. Swan2. Swans3. Fool4. Fools5. Stare6. LadyFor all above 4 choices are given.....Eg. Swan ---> Swansong (compound word)a) category b) music c) television d) noneAns: Swansong is compound word. But song is not given as an option. so (b) music is the answer.<br />CTS Sample Test Paper#3<br /><a title="Back to home page" href="http://placementpapers.com/index.html" target="_blank">Home</a><br /><a href="http://placementpapers.com/CTS/CTS.htm" target="_blank">Back To CTS Page</a><br />Analogies1. slur : speech : : smudge :?Ans. writing<br />2. epaulet : shoulder : : ring :? Ans.finger<br />3. vernacular : place : : fingerprint : ?Ans.identical<br />OppositesQ. corpulent Ans: emaciated<br />Q. officiousAns: pragmate<br />Q. dextrousAns: clumsy<br />The following sentences are broken into 4 sections- A, B, C, DChoose the part which has a mistakeMark (E) if you find no mistake.<br />Q.A)psychologists point out that B)there are human processes C)which does not involve D) the use of words<br />Ans. (C) which does not involve (do)<br />Q.A)jack ordered for B)two plates of chicken C)and a glass D)of water<br />Ans. (A)jack ordered for<br />The following is a group of questions is based on a passage or a set of conditions for each question.Select the best answer choice given.<br />(i). If it is forbidden by law if the object of agreement is the doing of an act,that is forbidden by law the agreement is void.<br />(ii). If it is of the nature that, it would defeat the provision of any law is the agreement is void.if the object of agreement is such that thing got directly forbidden by law it would defeat the provision of statuary law.<br />(iii). If the object of agreement is fraudulent it is void.<br />(iv). An object of agreement is void if it involves or implies to the personnel property of another.<br />(v). An object of agreement is void where the constant regards as ignored.<br />(vi). An object of agreement is void where the constant regards is as opposed to public policy.<br />Q. An algorithm follows a six step process za,zb,zc,zd,ze,zf, it is governed by the following<br />(i) zd should follow ze(ii) the first may be za,zd or zf(iii) zb and zc have to be performed after zd(iv) zc must be immediately after zb<br />Q. If za is the first set zd must be<br />a) 3rd b) 5th c) 2nd d) 4th<br /><br />Q. If zb must follow za then za can be<br />a) third or fourthb) first or second c) can not be third d) fourth or fifth e) none<br />Q. If ze is third term the number of different operations possible are<br />The following questions are based on the given statementsRavi plants six seperate saplings -- x,y,z,w,u,v in rows no 1 to 6 ,according to the follwing conditionsHe must plant x before y and uHe must plant y and wThe third has to be z<br />Q. Which of the following is acceptable<br />a) xuywzv b) xvzyuw c) zuyxwv d) zvxuwy e) wyzuvx<br />Q. Which of the following is true<br />a) z before v b) z before x c) w before u d) y before ue) x before w<br />Q. If he plants v first, then which can be planted second<br />a) xb) yc) zd) we) u<br />Q. Which of the following describes a correct combination of sapling and row?<br />a) x,3 b) y,6 c) z,1 d) w,2 e) u,6<br />Q. If he plants b 6th which would be planted first and second<br />a) x and w b) x and y c)y and x d)w and z e) w and u<br />Q. If he plants w before u and after v he should plant w at<br />a) first b) second c) fourth d) fifth e) sixth<br />Q. At a certain moment a watch shows 2 min lag although it is running fast. If it showed a 3 min lag at that moment, but also gains by 1/2 min more a day than its current speed it would show the true time one day sooner than it usually does. How many mins does the watch gain per day.<br />a).2 b).5 c).6 d).4 e).75<br />Q. In 400m race A gives B a start of 7 sec and beats him by 24 sec. In another race A beats B by 10 sec.the speeds are in the ratio<br />a)8:7 b)7:6 c)10:8 d)6:8 e)12:10<br />Q. 3x+4y=10 x3 + y3=6 What is the minimum value of 3x+11y=?<br />Q. There are 600 tennis players 4% wear wrist band on one wristOf the remaining, 25% wear wrist bands on both hands How many players don't wear a wrist band?<br />Ans. 432<br />Q. Three types of tea the a,b,c costs Rs. 95/kg,100/kg and70/kg respectively. How many kgs of each should be blended to produce 100 kg of mixture worth Rs.90/kg, given that the quntities of band c are equal<br />a)70,15,15 b)50,25,25 c)60,20,20 d)40,30,30<br />Ans. (b)<br />Q. Two distinct no's are taken from 1,2,3,4......28 Find the probability that their sum is less than 13<br /><a href="http://www.cognizant.com/">Cognizant Technology Solutions </a> (CTS)<br /><br /><br /> This is only a sample paper. We are not providing you with all the questions - just some questions to give you a general idea of the test pattern.<br />SECTION I - 8 questions based on series.1. These questions involve interchange of letters in a word at particular locations and also interchanging letters adjacent to those particular locations.Certain other conditions may also be givenFor eg.Let the word be ABBAABAIf we apply 25 on this, it means we have to interchange the letters at positions 2 and 5, also we have to change the letters adjacent to positions 2 and 5 i.e.from A to B and B to A. A B B A A B after Step 1 i.e interchange of 2 and 5 becomes AABABBNow change adjacent elements of 2 and 5...finally answer becomesAns: B A A B B AQuestions 1-5 are based on the pattern with changed numbers as described above<br />Questions 6-8 are of the following type<br />To get AAABBD from BBBAAA what number should be applied:-a) 25 b) 34 c) 25 & 34 d) none<br />SECTION II1. Given the following functions(1) f(n a b c ) = ac if n=1(2) f(n a b c) = f( n-1 a c b) + f( 1 a b c) + f( n-1 b a c ) if n > 1 Then what is the value f( 2 a b c ) = ?Ans: f( 2 a c b ) = ab + ac + bc.<br />2. Similar question on functions.<br />3. [ Based on the function in the first question] For the function f( 4 a b c ) the number of terms is...?Hint f( 4 a b c ) = f( 3 a c b ) + f( 1 a b c ) + f( 3 b a c ) etc.4. What is the value of the function f( 5 a b c ) = ?<br />SECTION IIIPermutations and Combinations.8 Questions.1. r = number of flags;n = number of poles;Any number of flags can be accommodated on any single pole.1)r=5,n=5 The no. of ways the flags can be arranged ?Questions 2-5 are based on the above pattern<br />6. r = 5 n = 3 . If first pole has 2 flags, third pole has 1 flag How many ways can the remaining be arranged?Questions 7.& 8. are similar to Question 6.<br />SECTION IVQuestion consisting of figures - Pattern-matching type.<br />Refer R.S Agarwal's book on Analytical Reasoning & TMHs Quantitative ability book by Edgar Thorpe.SECTION VIn this section first part of compound word is given. Select meaning of the second part from the choice given:1. Swan2. Swans3. Fool4. Fools5. Stare6. LadyFor all above 4 choices are given.....Eg. Swan ---> Swansong (compound word)a) category b) music c) television d) noneAns: Swansong is compound word. But song is not given as an option. so (b) music is the answer.<br /><br /><a href="http://www.cognizant.com/">Cognizant Technology Solutions </a> (CTS)<br /><br />The written tests are based on critical reasoning type questions. Word -based problems, verbal ability, pattern recognition and pattern matching, series type, arithematic-based (including functions and permutations) are usually asked. --------------------------------------------------------------This is only a sample paper. We are not providing you with all the questions - just some questions to give you a general idea of the test pattern.<br />SECTION-1:Find the next in the sequence:1. BC CE EG GK ?a)KN b)KU c)KM d)None<br />2. AA AB BC CE?a)EG b)EH c)EI d)None<br />3. AB EF JK QR ?a)YZ b)ZA c)AB d)None<br />4.ACD EGL IKT MOB?a)QST b)QSZ c)QSY d)None<br />5.AC CG GO OE?a)EJ b)EI c)EL d)None<br />6.AE BH CM DU?a)EH b)EZ c) EB d)None<br />7. AD DP PL LVa)VSb)VK c)VI d)None<br />8. SE QU EN TI?a)CN b)BM c)AI or AZ d)None<br />SECTION-II:Find the values for the following problem:f(X)= 2X-1 + f(X-1) if X is not equal to zeroandiff(X=0)=0<br />9. Value of f(5)a)15 b)24 c)22 d)None<br />10. Value of f(f(2)) 11. Value of f(16)- f(15)12. Value of f(16)+f(15)-480<br />13. If f(f(X))=81 then the value of X=?14. If f(X)=4f(X-1) then the value of X=?15.If f(X)= f(X-1)+f(X-2) for X>1 then X= ?16. If f(X)-f(X-1)=f(X-8) for X>5 then X=<br /><br />SECTION -III:In the following questions a 'word' is given which may not have any meaning.Find differnet possible words or palindromes for the word as per the question.For the following find no of distinct words that can be formed.17. TYGHHTTa).420 b)1540 c)840 d)None<br />18. TYGHHTY19. TYGHHTT<br />20. TYGHHTT<br />21. TYGHASD<br />22. TYGHHTY<br />Find the number of possible palindromes for following<br />23. TYGHHTY<br />24. TYHHHTYH.<br />SECTION-IV:25 to 32 are based on the figures. You have to analyse them and find the odd one out. Five figures will be given out of which one is not correct.<br />Refer R.S Agarwal's book on Analytical Reasoning & TMHs Quantitative ability book by Edgar Thorpe.<br />SECTION -V:For following first find out the anagram and then note the corresponding meaning.33.TABLET Hint: anagram means first u arrange the letters in correct order like TABLET===BATTLE . So ans is FIGHT<br />34.RUGGED<br />35.GORE.<br />36.STASSI.<br />For all above choices are.a)resentment b)fight c)help d)monster<br />37. ENFOLD<br />38. LAMB<br />39. RECEDE.<br />40. PLEASE.For all the above 4 choices are samea)cuddle b)sleeping c)proclamination d)ointment.<br />SECTION I - 8 questions based on series.1. These questions involve interchange of letters in a word at particular locations and also interchanging letters adjacent to those particular locations.Certain other conditions may also be givenFor eg.Let the word be ABBAABAIf we apply 25 on this, it means we have to interchange the letters at positions 2 and 5, also we have to change the letters adjacent to positions 2 and 5 i.e.from A to B and B to A. A B B A A B after Step 1 i.e interchange of 2 and 5 becomes AABABBNow change adjacent elements of 2 and 5...finally answer becomesAns: B A A B B AQuestions 1-5 are based on the pattern with changed numbers as described above<br />Questions 6-8 are of the following type<br />To get AAABBD from BBBAAA what number should be applied:-a) 25 b) 34 c) 25 & 34 d) none<br />SECTION II1. Given the following functions(1) f(n a b c ) = ac if n=1(2) f(n a b c) = f( n-1 a c b) + f( 1 a b c) + f( n-1 b a c ) if n > 1 Then what is the value f( 2 a b c ) = ?Ans: f( 2 a c b ) = ab + ac + bc.<br />2. Similar question on functions.<br />3. [ Based on the function in the first question] For the function f( 4 a b c ) the number of terms is...?Hint f( 4 a b c ) = f( 3 a c b ) + f( 1 a b c ) + f( 3 b a c ) etc.4. What is the value of the function f( 5 a b c ) = ?<br />SECTION IIIPermutations and Combinations.8 Questions.1. r = number of flags;n = number of poles;Any number of flags can be accommodated on any single pole.1)r=5,n=5 The no. of ways the flags can be arranged ?Questions 2-5 are based on the above pattern<br />6. r = 5 n = 3 . If first pole has 2 flags, third pole has 1 flag How many ways can the remaining be arranged?Questions 7.& 8. are similar to Question 6.<br />SECTION IVQuestion consisting of figures - Pattern-matching type.<br />Refer R.S Agarwal's book on Analytical Reasoning & TMHs Quantitative ability book by Edgar Thorpe.<br />SECTION VIn this section first part of compound word is given. Select meaning of the second part from the choice given:1. Swan2. Swans3. Fool4. Fools5. Stare6. LadyFor all above 4 choices are given.....Eg. Swan ---> Swansong (compound word)a) category b) music c) television d) noneAns: Swansong is compound word. But song is not given as an option. so (b) music is the answer.<br />Analogies1. slur : speech : : smudge :?Ans. writing<br />2. epaulet : shoulder : : ring :? Ans.finger<br />3. vernacular : place : : fingerprint : ?Ans.identical<br /><br />OppositesQ. corpulent Ans: emaciated<br />Q. officiousAns: pragmate<br />Q. dextrousAns: clumsy<br />The following sentences are broken into 4 sections- A, B, C, DChoose the part which has a mistakeMark (E) if you find no mistake.<br />Q.A)psychologists point out that B)there are human processes C)which does not involve D) the use of words<br />Ans. (C) which does not involve (do)<br />Q.A)jack ordered for B)two plates of chicken C)and a glass D)of water<br />Ans. (A)jack ordered for<br />The following is a group of questions is based on a passage or a set of conditions for each question.Select the best answer choice given.<br />(i). If it is fobidden by law if the object of agreement is the doing of an act,that is forbidden by law the agreement is void.<br />(ii). If it is of the nature that,it would defeat the provision of any law is the agreement is void.if the object of agreement is such that thing got directly forbidden by law it would defeat the provision of statuary law.<br />(iii). If the object of agreement is fraddulent it is void.<br />(iv). An object of agreement is void if it involves or implies to the personnal property of another.<br />(v). An object of agreement is void where the constant regards as ignored.<br />(vi). An object of agreement is void where the constant regards is as opposed to public policy.<br />Q. An algorithm follws a six step process za,zb,zc,zd,ze,zf, it is governed by the following<br />(i) zd should follow ze(ii) the first may be za,zd or zf(iii) zb and zc have to be performed after zd(iv) zc must be immediately after zb<br />Q. If za is the first set zd must be<br />a) 3rd b) 5th c) 2nd d) 4th<br /> Q. If zb must follow za then za can be<br />a) third or fourthb) first or second c) can not be third d) fouth or fifth e) none<br />Q. If ze is third term the number of different operations possible are<br />The following questions are based on the given statementsRavi plants six seperate saplings -- x,y,z,w,u,v in rows no 1 to 6 ,according to the follwing conditionsHe must plant x before y and uHe must plant y and wThe third has to be z<br />Q. Which of the following is acceptable<br />a) xuywzv b) xvzyuw c) zuyxwv d) zvxuwy e) wyzuvx<br />Q. Which of the following is true<br />a) z before v b) z before x c) w before u d) y before ue) x before w<br />Q. If he plants v first, then which can be planted second<br />a) xb) yc) zd) we) u<br />Q. Which of the following describes a correct combination of sapling and row?<br />a) x,3 b) y,6 c) z,1 d) w,2 e) u,6<br />Q. If he plants b 6th which would be planted first and second<br />a) x and w b) x and y c)y and x d)w and z e) w and u<br />Q. If he plants w before u and after v he should plant w at<br />a) first b) second c) fourth d) fifth e) sixth<br />Q. At a certain moment a watch shows 2 min lag although it is running fast. If it showed a 3 min lag at that moment, but also gains by 1/2 min more a day than its current speed it would show the true time one day sooner than it usually does. How many mins does the watch gain per day.<br />a).2 b).5 c).6 d).4 e).75<br />Q. In 400m race A gives B a start of 7 sec and beats him by 24 sec. In another race A beats B by 10 sec.the speeds are in the ratio<br />a)8:7 b)7:6 c)10:8 d)6:8 e)12:10<br />Q. 3x+4y=10 x3 + y3=6 What is the minimum value of 3x+11y=?<br />Q. There are 600 tennis players 4% wear wrist band on one wristOf the remaining, 25% wear wrist bands on both hands How many players don't wear a wrist band?Ans. 432<br />Q. Three types of tea the a,b,c costs Rs. 95/kg,100/kg and70/kg respectively. How many kgs of each should be blended to produce 100 kg of mixture worth Rs.90/kg, given that the quntities of band c are equal<br />a)70,15,15 b)50,25,25 c)60,20,20 d)40,30,30 Ans. (b)Q. Two distinct no's are taken from 1,2,3,4......28 Find the probability that their sum is less than 13<br /><br /><br /><br /><br /><br />___________________________________________________________________________________<br /><br />COMPANY NAME : COVANSYS<br />------------------------------------------------------------<br />DATE OF TEST :<br />------------------------------------------------------------<br />PLACE OF TEST:<br />------------------------------------------------------------<br />MODE : Off-Campus<br />------------------------------------------------------------<br />DURATION :<br />___________________________________________________________________________________<br /><br /><br /><br />-----Original Message-----<br />From: sscent100<br />Sent: Tuesday, September 02, 2003 1:52 PM<br />To: CHETANA-JOBS@yahoogroups.com<br />Subject: [CHETANA] (Pattern) COVANSYS 2nd Round<br /><br /><br />Hi!<br /><br />Don't worry abt the so called english test held by covansys....i was<br />called a few weeks back (for the 2nd round) and they had mentioned<br />the same stuff to us also.....<br />but the english test was: write an essay on "should every indian know<br />at least two indian languages".<br />they gave us 30 minutes or so for the essay.....<br /><br />then GD was just a formality.....don't worry about it....just talk<br />something sensible.....<br /><br />everyone called will attend the interview....and in the interview<br />they'll ask you about the papers that you chose for the written test<br />(if u remember for the covansys test we had a choice of papers like<br />C++/vb/java and oracle etc...)....tehy'll usually ask you what paper<br />you chose and then they'll ask some basic questions from that<br />subject....<br /><br />don't worry too much.....just brush up a little with whatever subject<br />you wrote the test (if you took C, brush up with that)....<br /><br />don't worry too much abt vocabulary....just keep your language simple<br />and express your ideas properly.....i think the same process will be<br />followed this time as well (i doubt whehter they will give you any<br />english test paper)....<br /><br />i attended the 2nd round on 21 August....so the format should be the<br />same (in case they changed it, don't blame me)....<br /><br />best of luck.....<br /><br />bye...<br />SS.<br /><br />___________________________________________________________________________________<br /><br />COMPANY NAME : COVANSYS<br />------------------------------------------------------------<br />DATE OF TEST :<br />------------------------------------------------------------<br />PLACE OF TEST:<br />------------------------------------------------------------<br />MODE : Off-Campus<br />------------------------------------------------------------<br />DURATION :<br />___________________________________________________________________________________<br /><br /><br /><br /><br />-----Original Message-----<br />From: guru rajarao<br />Sent: Tuesday, May 20, 2003 1:07 PM<br />To: chetana-jobs@yahoogroups.com<br />Subject: [CHETANA-JOBS] Covansys Test Pattern for Freshers (held in Chennai few days back)<br /><br /><br />Covansys Test Pattern<br />Apptitude:20 questions 25 minutes<br />1 Analytical(4 questions)<br />other apptitude and puzzles<br />----------------------------------------<br />C/C++<br />20 questions<br />java/VB<br />20 questons<br />----------------------------<br />Oracle/sqlserver<br />20 questions<br />--------------------------------------<br />unix/windows<br />20 questions<br />--------------------------------------<br />all other sections except apptitude you will have enough time.<br />Just be good in the basics you will be shortlisted and there will be a G.D and followed by an interview.<br /><br />___________________________________________________________________________________<br /><br />COMPANY NAME : COVANSYS<br />-----Original Message-----<br />From: Subramanian S<br />Sent: Wednesday, September 17, 2003 1:30 PM<br />To: CHETANA-JOBS@yahoogroups.com<br />Subject: [CHETANA] (Pattern) abt covansys 1st round,alcatel HR, infy<br />Hi everyone,<br />Seems like covansys is recruiting heavily many people<br />have been asking me abt covansys first round pattern;<br />You will be given a question booklet that contains<br />many papers on different topics. Some are compulsory<br />while some are optional (i.e. you can take this or<br />that). All the papers are objective type.<br />Aptitude will be your first section-aptitude will be<br />quite easy (simple distance, time, numbers etc.)<br />problems. You’ll probably also have one question like<br />the GRE analytical section (i.e. you will be given a<br />paragraph followed by a set of 4/5 questions based on<br />that paragraph). This section is easy but don’t spend<br />too much time on any question (time will be a factor)<br />for some of the questions u can easily work out the<br />solution backwards (I mean you can form an equation<br />and then substitute the choices given in your answers<br />instead of trying to solve equations)<br />Next you will have to take 2 papers on programming<br />languages : you can choose between C/C++, Java and VB.<br />Just glance thro the 3 papers and choose 2 which you<br />are comfortable with. I think C/C++ and Java will be<br />easy. Time is not a problem for these papers.<br />Next you will have to take one of the database related<br />papers (I think there is oracle and something<br />else) oracle seemed easy (though I have never worked<br />in oracle)-questions are basic and even if you don’t<br />know oracle you could just try to find some tutorial<br />on the net.<br />Then you have choice of paper between Windows Server<br />2000 and Unix (I’m not sure of these choices since I<br />took the test in May). Again the questions will be<br />easy (basics).<br />Well, that’s all there is in all I think u have to<br />take 5 papers (apt., 2 languages, 1 database and 1<br />OS)<br />So, those of you taking your test best of luck-just<br />stay calm-if you have studied oracle,unix it will be<br />very easy (for others like me just relax and give it<br />your best shot-you have nothing to lose).<br />Well, that’s all for now<br />Take care and NEVER SAY DIE,<br />SS.<br />--<br /> Cognizent<br />>> ><br />>> >PAPER<br />>> ><br />>> >1. A says " the horse is not black".<br />>> > B says " the horse is either brown or grey."<br />>> > c says " the hoese is brown"<br />>> > At least one is telling truth and atleast one is lying. tell<br />>> the<br />><br />>> colour<br />>> >of horse.<br />>> ><br />>> ><br />>> >Answer : grey<br />>> ><br />>> ><br />>> >2. A son and father goes for boating in river upstream . After<br />>> rowing for 1 mile son notices the hat of his fathe falling in the river.<br />>> After 5 min. he tells his father that his hat has fallen. So they turn around<br />>> a88888nd are able to pick the hat at the point from where they began boating<br />>> after 5 min.Tell the speed of river.<br />>> ><br />>> >Ans...6 miles/hr<br />>> ><br />>> ><br />>> >3 A+B+C+D=D+E+F+G=G+H+I=17 where each letter represent a<br />>> number from1 to 9. Find out what does letter D and G represent if letter A=4. <br />>> (8 marks)<br />>> ><br />>> >ans. D=5<br />>> > G=1<br />>> ><br />>> >4. Argentina had football team of 22 player of which captain is<br />>> from Brazilian team and goalki from European team. For remainig<br />>> palayer they have picked 6 from argentinan and 14 from european. Now for a<br />>> team of11they must have goalki and captain so out of 9 now they plan to<br />>> select 3from argentinian and 6 from European. Find out no. of methods<br />>> avilable for it (2 marks)<br />>> ><br />>> >Ans : 160600( check out for right no. 6C3 * 14C6)<br />>> ><br />>> ><br />>> >5 Three thives were caught stealing sheep, mule and camel.<br />>> > A says " B had stolen sheep "<br />>> > C says " B had stolen mule"<br />>> > B says he had stolen nothing.<br />>> > the one who had stolen horse is speaking truth. the one who<br />>> had stolen camel is lying . Tell who had stolen what? (5 marks)<br />>> ><br />>> >ans. A- camel<br />>> > B- mule<br />>> > C- horse<br />>> ><br />>> >6 a group of friends goes for dinner and gets bill of Rs 2400<br />>> . Two of them says that they have forgotten their purse so remaining<br />>> make an extra contribution of Rs 100 to pay up the bill. Tell the no. of<br />>> person in that group. (3 marks)<br />>> ><br />>> ><br />>> >Ans - 8 person<br />>> ><br />>> ><br />>> >7. In acolony there are some families. Each of them have<br />>> children but .different in numbers.Following are conditions<br />>> > <br /> a> no of adult>no of sons>no of daughters>no of families.<br />>> > b> each sister must have atleast one brother and should have<br />>> at the most 1 sister.<br />>> > c> no of children in one family exceeds the sum of no of<br />>> children in the rest families.<br />>> ><br />>> > Tell the no of families.(5 marks)<br />>> ><br />>> ><br />>> >ans : 3 families<br />>> ><br />>> >8.There are 6 people W,H,M,C,G,F who are murderer , victim ,<br />>> judge ,police, witness, hangman. There was no eye witness only<br />>> circumtancial witness. The murderer was sentenced to death.<br />>> >Read following statement and determine who is who.<br />>> ><br />>> >1. M knew both murderer and victim.<br />>> >2. Judge asked C to discribe murder incident.<br />>> >3. W was last to see F alive.<br />>> >4. Police found G at the murder site.<br />>> >5 H and W never met.<br />>> ><br />>> >( 8 marks)<br />>> ><br />>> ><br />>> ><br />>> >The above mentioned questions are of 37 marks rest I don't<br />>> remember<br />><br />>> >as they had no of condition. One which mentions about<br />>> hundustani music,Gazals ect. is tobe solved through venn diagram. Its of 8<br />>> marks. and another was grading 5 student which was of 5 marks.<br />CTS GCT 28 MAY 2003<br />CSE AND ECE TOTAL SHORTLISTED------24+26<br />This is the CTS paper that was given to GCT. This is the only college they went in Coimbatore. Then there were three papers- pink, violet, and yellow. The paper they gave here was pink. The criterion was above 6.5 with no current arrears. They also saw the 10th and 12th marks along with the entrance marks. They opened only for cse and ece. I cud collect some of the questions. It doesn’t hav the full paper. Actually the test is for an hour. There was quans, annals, reading comprehension, logical reasoning. The problems were more of R.S Agarwal. The others were just like in GRE.<br />1. Using the digits 1,5,2,8 four digit numbers are formed and the sum of all possible such numbers.<br />ans:106656<br />2. Four persons can cross a bridge in 3,7,13,17 minutes. Only two can cross at a time. find the minimum time taken by the four to cross the bridge.<br />ans:20<br />3. Find the product of the prime numbers between 1-20<br /> ans..9699690<br /> 4. 2,3,6,7--- using these numbers form the possible four digit numbers that are divisible by 4. ans.----8<br />5. Two trains are traveling at 18kmph and are 60 km apart. There is fly in the train. it flies at 80kmph. It flies and hits the second train and then it starts to oscillate between the two trains. At one instance when the two trains collide it dies. Distance traveled by the fly when both trains collide is Ans.---12km<br />6. there are 1000 doors that are of the open-close type. When a person opens the door he closes it and then opens the other. When the first person goes he opens-closes the doors ion the multiples of 1 i.e., he opens and closes all the doors. when the second goes he opens and closes the doors 2, 4 6 8 resly. Similarly when the third one goes he does this for 3 6 9 12 15th doors resly. Find number of doors that are open at last.<br />Ans:square numbers<br />7.There are 9 balls of this one is defective. Find the minimum no. of chances of finding the defective one.Ans 3times<br />8. There are coins of Rs.5, 2,1,50p,25p,10p,5p. Each one has got a weight. Rs 5 coin weighs 20gms.find the minimum number of coins to get a total of 196.5gms.<br />9.A can do a work in 8 days, B can do a work in 7 days, C can do a work in 6 days.<br /> A works on the first day, B works on the second day and C on the third day resly.that is they work on alternate days. When will they finish the work.(which day will they finish the work)<br /> Ans: 7 7/168 days<br /> 10.A batsman scores 23 runs and increases his average from 15 to 16. find the runs to be made if he wants top inc the avg to 18 in the same match.<br />ans: 39runs.<br />11.A man sells apples. First he gives half of the total apples what he has and a half apple.<br />Then he gives half of the remaining and a half apple. He gives it in the same manner. After 7 times all are over. How many apples did he initially have.<br />ans: 127 apples.<br />12.In a club there are male and female members. If 15 female quit then the number of females will become double the number of males. If 45 males quit no. of female becomes five times the number of males. Find the number of females.<br />ans: females:175,males:80<br />13.When I was married 10 years back my wife was the sixth member of my family. Now I have a baby. Today my father was dead and I had a new baby.now the average age of my family is the same as that when I was married. Find the age of my father when I was married.<br />ans:50<br />14.I and two of my friends were palying a game. For each win I get Rs 3. totally I had three wins. Player 2 got Rs9 and player 3 got Rs 12. how many games had been played.<br />15.A person gives a secret to two other persons in 5 minutes. How long will he take to tell the secret to 768 people.<br />16.There are 40 seats in a bus. People agree to share the money for the number of seats. The total money comes to 70.37. how many seats were free.<br />9 seats.Rs.2.27<br />17.I had Rs100 and I play. If I win I will hav Rs110 and if I lose I will hav Rs90. at the end I hav 2 wins and 2 loses. How much do I hav.<br />18.There were sums related to diagrams. They asked to calculate the areas of the circle, rectangle that were enclosed in other objects. They were simple.<br /> 20. In a village, there is flood. In one village causalities were less than the other. Why?<br /> Ans : There were better health care centres(HCC). <br /> 21. A question on Pythagoras Theorem. Ans. 20<br /> 23. The distance between Mumbai & Calcutta is 25000 Km. Train goes from Mumbai to Culcutta for which Speed & Time are given. From C->M Speed alone is give. Of the above conditions which is not required. (Not Complete)<br /> ans: The distance 25,000Km is not required. Because, Speed * Time = Distance. So only two conditions are required.<br /> 24. m <>y Which is false?<br /> Ans: x-m < y-n<br /> 25. A person has Rs.100. If he wins he gains 10%. If he loses the game, he loses 10%. He wins twice and loses twice. How much he has at the end?<br /> Ans: Always less than 100.<br /> 26. Area of Shaded portion is ?<br /> Ans : 115.5<br /> Verbal<br /> 27. In A tribal group two groups live in different climatic conditions. Ear Sensitivity is tested and found that one has more when compared to other. What is the reason.<br /> Ans. Depends on the physical place and condition he is living. <br />There were many questions on logical reasoning.<br />Eg: There are two identical islands. Same tribe live in the islands. But their receptiveness varies.<br />This is the question.<br />There were four choices and we have to select the most appropriate one. For the above one the answer is ----- because of climatic changes<br />There was a question in which they gave a polygon with all the external angles. we have to calculate the asked interior angle.<br />CTS_VIOLET 2002<br />----------------<br />Before seeing this paper see the other sets<br />section1<br />--------<br />Functions<br />same as in other papers( see CTS_BLACK\fun)<br /><br />section2<br />--------<br />strings(xogody)<br />same as in other papers<br />section 3<br />---------<br />BRICKS(see red and brown)<br />5 numbers given select 4 nos from these and use *,/,+,-,() and get hte TARGET<br />19=11+8+5-5<br />87=8*11-(5/5)<br />41=22+25-5-1<br />146=<br />114=<br />127=<br />102=<br />section 4<br />---------<br />jigsaw puzzle<br />very tough<br />Probably in edgar thorpe and R.S. Agarwal as mentioned in other papers<br />section 5<br />---------<br />solve the cryptic clues:<br />1. Head of attack<br />ans:attribute(spell as at tribute)<br />2. Head of cuticles<br />ans:cutlass<br />3. Garment leaves with article at end<br />ans:cloaka<br />4. Good tailors do this<br />ans:benefit<br />5. In greater rome ,a friend<br />ans:palindrome(spell as Pal in rome)<br />6. Hat in water close jumps out.<br />ans:whatever/watch(doubtful)<br />7. Misspelt respect , gobbled up<br />ans:estimate/attribute(doubt)<br />8. row'd almost across<br />ans:crossword/crossover(doubtful)<br /><br /><a href="http://www.cognizant.com/">Cognizant Technology Solutions </a> (CTS)<br /><br /><br /><br /> This is only a sample paper. We are not providing you with all the questions - just some questions to give you a general idea of the test pattern.<br />SECTION I - 8 questions based on series.1. These questions involve interchange of letters in a word at particular locations and also interchanging letters adjacent to those particular locations.Certain other conditions may also be givenFor eg.Let the word be ABBAABAIf we apply 25 on this, it means we have to interchange the letters at positions 2 and 5, also we have to change the letters adjacent to positions 2 and 5 i.e.from A to B and B to A. A B B A A B after Step 1 i.e interchange of 2 and 5 becomes AABABBNow change adjacent elements of 2 and 5...finally answer becomesAns: B A A B B AQuestions 1-5 are based on the pattern with changed numbers as described above<br />Questions 6-8 are of the following type<br />To get AAABBD from BBBAAA what number should be applied:-a) 25 b) 34 c) 25 & 34 d) none<br />SECTION II1. Given the following functions(1) f(n a b c ) = ac if n=1(2) f(n a b c) = f( n-1 a c b) + f( 1 a b c) + f( n-1 b a c ) if n > 1 Then what is the value f( 2 a b c ) = ?Ans: f( 2 a c b ) = ab + ac + bc.2. Similar question on functions.3. [ Based on the function in the first question] For the function f( 4 a b c ) the number of terms is...?Hint f( 4 a b c ) = f( 3 a c b ) + f( 1 a b c ) + f( 3 b a c ) etc.4. What is the value of the function f( 5 a b c ) = ?SECTION IIIPermutations and Combinations.8 Questions. 1. r = number of flags;n = number of poles;Any number of flags can be accommodated on any single pole. 1)r=5,n=5 The no. of ways the flags can be arranged ?Questions 2-5 are based on the above pattern6. r = 5 n = 3 . If first pole has 2 flags, third pole has 1 flag How many ways can the remaining be arranged?Questions 7.& 8. are similar to Question 6.SECTION IVQuestion consisting of figures - Pattern-matching type.<br />Refer R.S Agarwal's book on Analytical Reasoning & TMHs Quantitative ability book by Edgar Thorpe.SECTION VIn this section first part of compound word is given. Select meaning of the second part from the choice given:1. Swan2. Swans3. Fool4. Fools5. Stare6. LadyFor all above 4 choices are given.....Eg. Swan ---> Swansong (compound word)a) category b) music c) television d) noneAns: Swansong is compound word. But song is not given as an option. so (b) music is the answer.pamarthihttp://www.blogger.com/profile/02793672368719593806noreply@blogger.com0