FirstRanker.com

Search results for: “uti”

  • Compaq Placement Paper

    Compaq paper

    ->Why paging is used ?

    ->Which is the best page replacement algo and Why ?

    ->What is software life cycle ?

    ->How much time is spent usually in each phases and why ?

    ->What is testing ?

    ->Which are the different types of testing ?

    ->Which are the different phases in Software life cycle (asked again)

    ->Why is analysis and testing phases very important ?

    ->Why networks are layered ? What is the advantage of that ?

    ->How many layers are there in OSI ? Why is it called OSI model ?

    ->network topologies ?

    ->Which are the different network toplogies ?

    ->an example of bus type network.

    ->What is the Bandwidth of ethernet ?

    ->Explain the advantage and disadvantage of ethernet ?

    ->Which is the protocol used in ethernet. (CSMA/CD) Why is it called so ?

    ->What is the advantage of Ring network ?

    ->Compare it with ethernet.

    ->What is inheritance, encapsulation etc.

    ->If there are too many page faults what is the problem?

    ->To ensure one pgm. doesnt corrupt other pgm. in a Multi-pgm. enviornment what you should do?

    ->Which one you will use to implement critical section? Binary Semaphore

    -> Which one is not needed for Multi-pgm. enviornment?

    options are: virtual memory, security, time sharing, none of the above.

    ->Which one is not done by Data link layer ? bit stuffing, LRC,CRC,parity check

    -> Which one is not related to Data link layer?

    -> Which one is not suitable for client-server application?

    options are tcp/ip, message passing, rpc, none of theabove.

    ->Term stickily bit is related to
    a)kernel b)undeletable file c) d)none

    ->semaphore variable is different from ordinary variable by ?

    ->unix system is

    a)multi processing

    b)multi processing ,multiuser

    c)multi processing ,multiuser,multitasking

    d)multiuser,multitasking

    ->x.25 protocol encapsulates the follwing layers

    a)network

    b)datalink

    c)physical

    d)all of the above

    e)none of the above

    ->TCP/IP can work on

    a)ethernet

    b)tokenring

    c)a&b

    d)none

    ->a node has the ip address 138.50.10.7 and 138.50.10.9.But it is

    transmitting data from node1 to node2only. The reason may be

    a)a node cannot have more than one address

    b)class A should have second octet different

    c)classB ” ” ” ” ”

    d)a,b,c

    ->the OSI layer from bottom to top

    ->for an application which exceeds 64k the memory model should be

    a)medium

    b)huge

    c)large

    d)none

    ->the condition required for dead lock in unix sustem is

    ->set-user-id is related to (in unix)

    ->bourne shell has

    a)history record

    b)

    c)

    d)

    ->wrong statement about c++

    a)code removably

    b)encapsulation of data and code

    c)program easy maintenance

    d)program runs faster
    ->which is true
    a)bridge connects dissimiler LANand protocol insensitive

    b)router ” ” ” ” ”

    c)gateway ” ” ” ” ”

    d)none of the above

    ->const char *

    char * const

    What is the differnce between the above tow?.

    ->In Unix inter process communication take place using?.

    ->About i-node numbers

    ->Max relaxable permisssion value with out giving write permission to others?.

    ->About ln(linking)

    ->Linking across directories?.

    ->process id for kernell process

    ->very first process created by kernell

    ->function to repaint a window immediately?.

    ->Function entry for DLL in win3.1

    ->win 3.1 is a

    ->win 3.1 supports which type of multi tasking?.

    ->Message displayed when a window is destroyed

    ->About fork()?

    ->About send message and post message

    ->Message to limit the size of window

    ->System call executable binary file intoa process

    ->About GDI object?.

    ->API used to hide window

    ->Initialize contents of a dialog?.

    -C SKILL SET–

    ->How do you write a program which produces its own source code as its output?
    ->How can I find the day of the week given the date?
    ->Why doesn’t C have nested functions?
    ->What is the most efficient way to count the number of bits which are set in a value?
    ->How can I convert integers to binary or hexadecimal?
    ->How can I call a function, given its name as a string?
    ->How do I access command-line arguments?
    ->How can I return multiple values from a function?
    ->How can I invoke another program from within a C program?
    ->How can I access memory located at a certain address?
    ->How can I allocate arrays or structures bigger than 64K?
    ->How can I find out how much memory is available?
    ->How can I read a directory in a C program?
    ->How can I increase the allowable number of simultaneously open files?
    ->What’s wrong with the call “fopen(“c:\newdir\file.dat”, “r”)”?

    Compaq Paper on 10th April 2010

    Questions with Answers

    1) What is an object?
    An object is an entity, which consist of attributes, behaviors and qualities that describe the object.

    2) What is a class?
    A class represents a collection of attributes and behaviors of object. It is the class from which individual objects created.
    For example:-
    Bicycle is a class that contain the following attributes
    Speed
    Gear

    3) What is OOAD?
    OOAD stands for Object Oriented analysis and design. It is a methodology use to analyze, design and develop applications. It visualizes the class and the objects.

    4) What are the advantages of OOAD?
    * Reusability
    * Maintainability
    * Increase the performance of the system.

    5) What is Data Abstraction?
    It is a process of listing the essential features, without implementation details. Data abstraction is nothing but the extraction of the information which is required and ignoring the other information.

    6) What is Data Encapsulation?
    Data encapsulation or data hiding is a function that keeps the implementation details hidden to the user. The user of the application is allowed to perform only limited task with the class members that are hidden.

    7) What is the difference between data abstraction and information hiding?
    Abstraction mainly focus on the outside view of the object whereas encapsulation prevents the user from seeing the inside view where the properties and behavior of the abstraction is implemented.

    Cool Why is java not 100% pure OOPS language?
    Java doesn?t support 100% pure OOPS concept, since it support primitive datatype like int, long, byte etc, these are not objects.

    9) Qualities for a program to be 100% OOPS language?
    Encapsulation/Data Hiding
    1. Polymorphism
    2. All predifined types are objects
    3. Inheritance
    4. Operations performed through messages to objects
    5. Abstraction
    6. datatypes are to be objects.

    10) What is early binding?
    Early binding or static type or static binding is assigning the value of the variable during design phase. Early binding instruct the compiler to allocate space and perform other task before the application starts executing.

    11) What are the disadvantages of threads?
    o The main disadvantage of using thread is that it is operating system dependent. It require to follow CPU cycle that various from system to system.
    o Deadlock occurs

    12) Why is java case sensitive?
    Java is platform independent language. It is widely used for developing code which contains different variables and hence java is case sensitive.

    13) What is singleton class?
    A class which can create a single object at a time is called class. The object is accessible by the java virtual machine. It creates a single instance for the class

    14) Objects are passed by value or by reference?
    In java objects are passed by value. Since, the object reference value is passed both the original and the copied parameter will refer to the same object.

    15) What is serialization?
    It is a method which saves the object state by converting to byte stream.

    16) What is externalizable interface?
    Externalizable interface controls the serialization mechanism. It consist of two methods readexternal and writeexternal. It helps to customize the serialization process.

    17) What are the different types of inner classes?
    * Member classes.
    * Anonymous classes.
    * Nested top-level classes.
    * Local classes.

    1Cool What are wrapper classes?
    Wrapper class represents a base class for the data source. It allows the primitive datatype to be accessed as objects.

    19) What are the different ways to handle exception?
    * By placing the desired code in the try block and allow the catch block to catch the exception.
    * Desired exception can be placed in throw clause.

    20) Is it necessary that each try block must be followed by a catch block?
    It is not essential that try block should be followed by catch block.

    21) What is the difference between instanceof() and isInstance()?
    instanceof() is used to see whether the object can be typecast without making use of the exception.
    isInstance() is to check whether the specified object is compatible with the class that represent the object.

    22) How can you achieve multiple inheritance in java?
    Multiple inheritance in java implemented in similar to the C++ with one difference the inherited interface should be abstract.

    23) What is the difference between == and equals methods?
    ?==? is used to check whether two numbers are equal
    ?Equals? is used to check whether two strings are equal.

    24) What are java beans?
    Java bean is a platform independent and portable. It helps to develop code that is possible to run in any environment

    25) What is RMI?
    RMI stands for remote method invocation; it enables the developer to create application based on java, in which the java objects are invoked by java virtual machine.s

    Part 2

    1. How does a try statement determine which catch clause should be used to handle an exception?
    When an exception is thrown within the body of a try statement, the catch clauses of the try statement are examined in the order in which they appear. The first catch clause that is capable of handling the exception is executed. The remaining catch clauses are ignored.

    2. Is Empty .java file a valid source file?
    An empty java file is perfectly a valid java source file.

    3. Is delete a keyword in Java?
    Delete is not a keyword in Java. Java does not make use of explicit destructors the way C++ does.

    4. How many objects are created in the following piece of code?
    MyClass c1, c2, c3;
    c1 = new MyClass ();
    c3 = new MyClass ();
    c1 and c3 are the two objects created. The c2 is only declared and not initialized.

    5. What will be the output of the following statement?
    System.out.println (“1” + 5);
    Output:-
    15.

    6. What will be the default values of all the elements of an array defined as an instance variable?
    If the array is of primitive data type then the elements of the array is initialized to default value. If the array is of reference type then it is initialized to NULL.

    7. What are the different scopes for java variables?
    The different scopes for java variables are as follows:-
    Local
    Instance
    Static

    8. What is the default value of the local variables?
    When the local variables are not initialized explicitly the java compiler will not compile. And it will not initialize any default value for these local variable.

    9. Can main method be declared final?
    The main method can be declared final with the addition of public static.

    10. Does Java provide any constructor to find out the size of an object?
    There is no sizeof operator in java. It is not possible to determine the size of the object directly in java.

    11. What is the Map interface?
    Map is an object which helps to map the keys to values. It is not possible to have duplicate keys. It is essential that each key should map to a one value.
    Three Map implementations are
    Hashmap
    LinkedHashmap
    Treemap

    12. What is collection Views?
    Collection view is a metho that is used to view map as a collection. This can be done in three ways:-
    Values
    Keyset
    Entryset

    13. What is multimaps?
    Multimap is also like map which map key to multiple values. But there is no separate interface for multimap in Java since it is used quiet often. It?s much more simple to use map whose values to list instance as a multimap.

    14. What is the SimpleTimeZone class?
    It is a subclass of Time zone which represent time zone that could be used with Gregorian calendar. It doesn?t handle any changes.
    public class SimpleTimeZone
    extends TimeZone

    15. Is &&= a valid Java operator?
    no &= is a valid operator not &&=

    16. Is “abc” a primitive value?
    Abc is a string object it is not primitive value.

    17. What modifiers can be used with a local inner class?
    Some of the modifiers that can be used in the local inner class are as follows:-
    Final
    Abstract
    Static modifier

    18. Can an unreachable object become reachable again?
    An unreachable object becomes reachable if the objects finalize() method is invoked, the object performs operation that causes the object to accessible.

    19. What happens when you add a double value to a String?
    When double value is added to the string it becomes a string object.

    20. What is Layout Managers?
    It is an object that implements LayoutManager interface and also determines the position and size of the components within a container.
    Some of the task associated with layout manager are as follows:-
    Adding space between components
    Adding components to container
    Setting up layout manager

    21. What is a compilation unit?
    A compilation unit is composed of two parts: an interface and an implementation. The interface contains a sequence of specifications, just as the inside of a sig ? end signature expression. The implementation contains a sequence of definitions, just as the inside of a struct ? end module expression

    22. Which package is always imported by default?
    ?Java.lang? is the package that imported by default.

    23. What is numeric promotion?
    Numeric promotion is a conversion of numeric type of smaller 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.

    24. Which arithmetic operations can result in the throwing of an ArithmeticException?
    Integer / and % can result in the throwing of an ArithmeticException.

    25. What is the ResourceBundle class?
    It contains locale specific objects. If a program requires locale specific resources then the program can load resource bundle that is appropriate for the current user.
    Advantage:-
    Make it localized, and can be translated into different languages.
    Modification can be done easily.

    Part 3

    1) What is JVM?
    JVM enables to convert the source code into the code which can be executed in the system. This makes the java independent of the platform

    2) Name four container classes?
    * Dialog
    * FileDialog
    * Panel
    * Frame

    3) What is JAR file?
    JAR stands for java archive, it is used to compress a class of file.

    4) What is typecasting?
    Typecasting converts entity of one type to entity of another type. It is very important while developing applications.
    Casting is of two types:-
    1. downcasting
    2. Upcasting

    5) What is serialization and deserialization?
    It is process of representing the state of an object in byte stream. Process of restoring the object is done be deserialization.

    6) What is vector class?
    Vector class provides the capability to implement array of objects.

    7) What is JVM and its use?
    The most important feature of Java is platform independent, this is supported by JVM. It converts the machine code into bytes. It is the heart of the java language and a structure programming language.

    Cool What are the difference between java and C++?
    Java adopts byte code whereas C++ doesn?t.
    C++ supports destructor whereas java doesn?t support.
    Multiple inheritance possible in C++ but not in java.

    9) Difference between swing and AWT?
    AWT is works faster then swing since AWT is heavy weight components.AWT consist of thin layer of code, swing is larger and of higher functionality.

    10) If a variable is declared as private, where may the variable be accessed?
    When the variable is declared private, it can be accessed only inside the class in which it is defined.

    11) What is final?
    A final class cannot be sub classed neither extended. The variables cannot change the value.

    12) What is static in java?
    Static methods are implicitly final, their methods are not attached to an object rather it is attached to a class.

    13) Is null a keyword?
    NULL is not a keyword.

    14) What is garbage collection?
    When an object is no longer used, java implicitly recalls the memory of the object. Since java doesn?t support destructor it makes use of garbage collector in the place of destructor.

    15) What is the resourceBundle class?
    It is used to store the local specific resources inorder to tailor the appearance.

    16) What is tagged interface?
    Tagged interface is similar to the serializable interface, it instruct the complier to perform some activity.

    17) What is overriding?
    When any class use the same name, type and arguments as that of the methods in the super class then the class can override the super class method.

    1Cool What is referent?
    Referent variable are constant variable it cannot be modified to refer to any other object then the one with it was initialized.

    19) What is the method to implement thread?
    Thread can be implemented by run() method

    20) What is the difference between primitive scheduling and time slicing?
    In case of primitive scheduling the task with highest priority is performed until it enters the dead state. In case of time slicing it performs the task for sometime and then enter the ready state.

    21) What are different types of access modifiers?
    public: accessible from anywhere.
    private: can be accessed only inside the class.
    protected: accessed by classes and subclasses of the same package.
    default modifier : accessed by classes contain the same package

    22) What is the difference between subclass and superclass?
    Subclass doesn?t inherit anything from other classes whereas superclass inherit from other class.

    23) What is a package?
    Package is a collection interface and class which provides a very high level of protection and space management.

    24) What is the difference between Integer and int?-
    Integer defined in java. lang package which is a class, whereas int is a primitive data type defined in the Java language itself.

    25) What is synchronization?
    It is mechanism that allows only one thread to process the thread at a time. This is mainly to prevent deadlock.

  • Robert Bosch Placement Paper July 2010

    Robert Bosch Paper on 31st July 2010 At Vardhaman Engineering College, Shamshabad

    Question paper pattern: (COMPUTER SCIENCE)
    Each question carries 2 marks and -.5 negative for wrong answers.
    .
    NOTE: The same question paper would be coming for the cse and it students….Better to have a glance of this paper before u take the written exam…
    The Question paper consists of three Sections
    a) Technical(1-35)
    -Mainly on C, Operating Systems, Computer Networks, Data Structures,

    b) Quantitative(36-50)
    – Mainly on A.P, G.P , General Maths, Profit and Loss, Ratios(etc..)
    c) English(51-60)
    – (51-52)inferring from passages,,(53-55)..Logical Deductions.. (56-57)..Sentence Correction (58-60) ..Arrangement of jumbled sentences.
    a) Technical:

    1)#include.
    main()
    {
    int const *p = 10;
    printf(?%d?, ++(*p));
    }
    Ans: Compilation Error
    sol: Constant cant be modified.
    2) .main()
    {
    int I;
    char *a = ?man?;
    for(i=0;i<3;i++)
    printf(?%c%c%c%c\n?,i[a],a[i],*(a+i),*(i+a));
    }
    ans: mmmm
    aaaa
    nnnn

    3)main()
    {
    extern int i = 10;
    printf(?%d?,i);
    }
    Ans: Compiler error

    4)main()
    {
    float f= 1.1;
    double d = 1.1;
    if ( f == d)
    printf(?I LOVE U?);
    else
    printf(?I HATE U?);
    }
    Ans: I HATE U
    Sol: Due to precision Considerations …
    5) A tree was given and postorder traversal is to be found out…(Easy)

    6) What is the name of the Command used to partition the disk
    ANS: fdisk
    Sol: When you run the fdisk and format commands, the Master Boot Record (MBR) and file allocation tables are created. The MBR and file allocation tables store the necessary disk geometry that allows hard disk to accept, store, and retrieve data

    7)A question from MS-DOS
    ans)msconfig.exe

    CoolA quesion is on paging(Memory management)
    Formulae: Effective access time=((1-p)*m+(p*s))
    where (1-p) is called hit ratio, p is called page fault ratio, ‘m’ is called main memory access time, ‘s’ is called pagefault service time.

    9) The header file that is included to use manipulators is
    sol:

    10) Which data structure is easier to implement the trees…???
    sol: Linked Lists..

    11)Function used to display the character on the console is ..??
    sol: PUT

    12) No of nodes in a perfect Binary tree is..??
    sol: (2*n-1)

    13) No of queues needed to implement the priority queue..??
    ans:two
    sol: Priority queue uses two queues
    1) for storing the data
    2) other for storing the priorities.

    14)Heterogeneous Linked List is implemented using…???
    sol: void pointers

    15) a variable used to store the address of another variable is termed as..??
    sol: Pointer..

    16) #include
    void main()
    {
    int i = 15;
    int const &j = i;
    cout << i << j << endl;
    i = 9;
    cout << i << j << endl
    }
    ANS:
    15 15
    9 9

    17)Virtual Memory consist of main memory and …???
    sol: Swap files

    1Cool Which class addressing system has less no of hosts…???
    sol: class D(not sure)

    19)Which of the following is a network layer protocol
    a) TELNET b) FTP. c)smtp d)none
    sol: telnet

    20)many questions on computer networks….( around 10 questions….i left all of them)

    Prepare ‘top down approach’ – ross and kurose for computer networks…it would be helpful..

    b) Quantitative:
    36) a man sells an article with a 20% discount and gain a profit of 20%…what would be the profit percentage if he sells it with 10% discount…??
    sol; 35(not sure)

    37)sum of the infinite terms in a gp is 230 and sum of squares is 23 …find the common ratio.
    sol: 10/13

    3Cool fourth term of an ap is 200 and first term is 5 find the tenth term…??
    ans:

    39) if S+2R=220 and S=80 then R=.???
    sol: 70

    40) if 25% of x=y then 67.5% of x in terms of y is…
    sol: 100/y2 (not sure)

    41)A student was performing an arithmetic operation and he multiplied a number by 3/2 instead of dividing it by 2/3 …what was its error percentage..??
    sol: 0%

    42) Probability:
    a radioactive element disintegrates by 20 th part every hour and find the probability that no matter is left out in a duration of 45 min…??
    sol: since it deals with radioactive element ‘n’ is usually large..so poissons distribution is to be applied…
    1hr=60min———-20
    45min———-?
    (45*20)/(60)=15..
    Hence lamba=15

    P(x=0)= (e-15)*(150)/(0!)
    =(e-15)

    43) If side of the square is x+2 and side of equilateral triangle is 2x and the perimeters of both square and equilateral triangle are equal …then find the value of x..??
    sol: 4*(x+2)=(3*2x)
    i.e; x=4

    44) if side of the square of increased by 5 and change in area was 165 then find the value of side of the square…??
    sol: (x+5)2-x2=165
    10x+25=165
    10x=140
    x=14

    45 -50)) similar questions were given and were easy….

    c)English
    51-52) a passage with inferences to be drawn…

    53) saritha and kavitha are seperated by a certain distance of 100m and walking towards each other and savitha started from her house and walked for 30m East and turned right and walked upto 10m and then turned left and walked upto 20m and again turned left and walked to the road …what is the distance between the two girls now..??
    sol: i think 20m(not sure jus try..)

    54 and 55) deductions

    56) choose which part has error A or B or C or D
    we entered(A)/into the room(B)/after the class was over(c)/No Error(D)
    sol: we entered the room after the class was over
    ans: B

    57) we discussed(A)/about the pollitics(B)/ in the class room(C)/No Error(D)
    sol: we discussed the pollitics in the class room.
    ans: B

    58-60) arrangement of sentences and are very easy…. jus follow the sequence of time and situtation….

    Robert bosch paper – 05 dec 2009

    Pattern:

    1. 7-10 questions from C (Like What’s the output?)
    2. DBMS
    3. Data Structures some 6-7 questions
    4. Networks
    5. Operating Systems
    6. Some 2-3 questions from Computer architecture
    In data Structures they have given a tabular of 4 columns and they have asked like which is NOTCORRECT and which CORRECT.

    1. The Question was Related to the Computer Architecture. They asked some thing about that..

    1.harvard config
    2.Van neuman..
    2. base 16 is ans. hexadecimal

    3. addition of 2 binary nos . and convert it to decimal..

    4.structure is 1.can point any other structure except themselves..
    2. cannot point any other structure except themselves
    3.can point themselves and other structures.
    4.none
    5.wht is j after execution
    int i[0]=1;i[1]=5;*p=I;
    j= *p + 1+ (*p++);

    6.For 1 parameter to b used as another r function wht to do??
    1.declare as global 2.pass parameters 3.either 1 r 2. 4.niether 1 nor 2

    7.Wht is a string??
    1. array of characters without /0;
    2. array of characters ending with /0;

    8.DMA 1. data transfer
    2.to increase the speed of peripherals
    ans.2)

    9. In Ethernet every system is called as.
    1.client 2.server 3.node 4.system

    10.In Ethernet the technique used for transfer data is..
    1.CDMA 2.CSMA/CD 3.CSMA 4..

    11. The Technique used for data transfer in TCP/IP config is..
    1.Socket 2.Stream 3..

    12. The Error Control and flow control is used in the following OSI Layer..
    1.Transport layer 2.Data link layer 3.physical layer 4..

    13.76F base 16 + 76F base 16 (Like this model) what’s the Equivalent of this?

    14. The technique which is used to model the database into tables..
    1.Data model 2.DBMS 3.DML 4..

    15. The question related to RDBMS ..answer is RDBMS

    16. some binary number’s r given like 100101+10023 the they asked about the Hex Equivalent?

    17.. 49 base 10 + 49 base 10 then they asked about the Binary equivalent of this?

    18. The longest side of the Equilateral triangle is..
    1.it’s hypotenuse 2.it’s opposite side 3..

    TEST OF ENGLISH LANGUAGE..

    There were totally 25 questions..
    I. Fill in the blanks type question they given a full paragraph..(5 questions)
    II. 2 Questions like u have to fill the correct tense
    1.Even the roses ________ weathered are .. some thing like that
    III. some 5 Pro-verb questions ..
    1. don’t look __________a gifted horse .
    a. Within the mouth b.at c. in the mounth d..

    Questions like this was given..
    IV.. Meaning of the Given Verb… some 5 questions was there..
    1. go wrong—-
    a. wrong b. fail c. go.. d..
    2. go forward—
    a. obey the law b. follow the law c.go law d. some thing was given
    Last edited by mayoor on Sat Sep 04, 2010 12:47 pm; edited 1 time in total

error: Content is protected !!