Wipro Previous Years Solved Sample Placement Papers
-
If the purple ball is under cup 4, the orange ball must be under:
(a) 1
(b) 2
(c) 3
(d) 5
(e) 6 Answer: Option E
- Solution: If the purple ball is under cup 4, the orange ball must be under a higher-numbered cup according to the given conditions. Hence, cup 6 is the correct answer.
-
Which of the following must be true?
(a) The green ball is under a lower-numbered cup than the yellow ball.
(b) The orange ball is under a lower-numbered cup than the green ball.
(c) The purple ball is under a lower-numbered cup than the red ball.
Answer: Option C
- Solution: From the conditions, the purple ball is always under a lower-numbered cup than the red ball, making Option C correct.
-
If an integer needs two bytes of storage, the maximum value of an unsigned integer is:
(a) 216-1
(b) 215-1
(c) 216
(d) 215 Answer: Option A
- Solution: For an unsigned integer with two bytes, the maximum value is 216-1 because all bits are used for the magnitude.
-
If an integer needs two bytes of storage, the maximum value of a signed integer is:
(a) 216-1
(b) 215-1
(c) 216
(d) 215 Answer: Option B
- Solution: For a signed integer, the highest value is 215-1, as one bit is used for the sign.
-
What is the output of the code `printf("%d", printf("tim"));`?
(a) Results in a syntax error
(b) Outputs "tim3"
(c) Outputs garbage
(d) Prints "tim" and terminates abruptly Answer: Option B
- Solution: The inner `printf("tim")` prints "tim" and returns 3 (the number of characters printed), which is then printed by the outer `printf`.
-
The length of the string "correct" is:
(a) 7
(b) 8
(c) 6
(d) Implementation-dependent Answer: Option A
- Solution: The string "correct" has 7 characters, including the terminating null character.
-
Consider the program fragment:
`char c = 'a'; while (c++ <= 'z') putchar(xxx);`
If the required output is "abcd...wxyz," then `xxx` should be:
(a) c
(b) c++
(c) c-1
(d) --c Answer: Option C
- Solution: The decrement by 1 (`c-1`) ensures the correct character is printed as `c` is incremented in the loop condition.
-
Consider the function:
`find(int x, int y) { return (x < y ? x : y); }`
The call `find(a, find(a, b))` can be used to find:
(a) Maximum of a, b
(b) Positive difference of a, b
(c) Sum of a, b
(d) Minimum of a, b Answer: Option D
- Solution: The function returns the smaller of two values, and the nested call ensures the smallest of all inputs.
-
Windows is:
A. An operating system
B. An operating environment Answer: Option B
C. A character user interface
D. None of these
- Solution: Windows initially acted as an operating environment over DOS.
-
Which of the following is a service not supported by the operating system?
A. Protection
B. Accounting
C. Compilation Answer: Option C
D. I/O operation
- Solution: Compilation is a process handled by compilers, not operating systems.
-
The processor which performs arithmetical and logical operations is called:
A. Control
B. ALU Answer: Option B
C. Register
D. Cache memory
- Solution: The Arithmetic Logic Unit (ALU) handles mathematical and logical operations.
-
Metadata enables database designers and users to do all of the following except:
A. Sample data Answer: Option A
B. Understand what data exist
C. Know the fine distinctions between similar data items
D. Understand what the data mean
- Solution: Metadata does not deal with sample data; it describes data structure and attributes.
-
In a 1:N relationship, the foreign key is placed in:
A. Either table without specifying parent and child tables
B. The parent table
C. The child table Answer: Option C
D. Either the parent table or the child table
- Solution: In 1:N relationships, the foreign key is stored in the child table.
-
Which of the following conditions should exist if you want to convert a relationship to an associative entity?
A. Some of the relationships for the participating entities are "many".
B. The resulting associative entity has an independent meaning Answer: Option B
C. The resulting associative entity has no attributes.
D. All of the above
- Solution: Associative entities represent meaningful relationships with their own attributes.
-
Which is not a relevant feature of CASE tools?
A. The ability to help draw data models using entity-relationship notations
B. The ability to generate code
C. An information repository
D. Access to a DB via the Internet Answer: Option D
- Solution: CASE tools do not inherently provide database access via the Internet.
-
Backward recovery is which of the following?
A. Where the before-images are applied to the database Answer: Option A
B. Where the after-images are applied to the database
C. Where the after-images and before-images are applied to the database
D. Switching to an existing copy of the database
- Solution: Backward recovery involves restoring the database to a previous consistent state using before-images.
-
Which of the following applies to a class rather than an object?
A. Query
B. Update
C. Scope Answer: Option C
D. Constructor
- Solution: Scope defines the accessibility of a class or its members, not individual objects.
-
The term "Incomplete" in UML has the same meaning as which of the following for an EER diagram?
A. Overlapping rule
B. Disjoint rule
C. Total specialization rule
D. Partial specialization rule Answer: Option D
- Solution: "Incomplete" in UML corresponds to "Partial specialization" in EER diagrams.
-
The benefits of object-oriented modeling are which of the following?
A. The ability to tackle more challenging problems
B. Reusability of analysis, design, and programming results
C. Improved communication between users, analysts, etc.
D. All of the above Answer: Option D
- Solution: Object-oriented modeling provides multiple benefits, including reusability, better problem solving, and enhanced communication.