0% found this document useful (0 votes)
777 views2 pages

ThoughtWorks Practice Test

The document is a practice test paper from ThoughtWorks, divided into three sections: Aptitude, Logical Reasoning, and C Programming, each worth 10 marks. It includes various questions such as calculating speed, work completion time, salary, relationships, and programming tasks. The test assesses mathematical skills, logical reasoning, and programming knowledge in C.

Uploaded by

23022cm002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
777 views2 pages

ThoughtWorks Practice Test

The document is a practice test paper from ThoughtWorks, divided into three sections: Aptitude, Logical Reasoning, and C Programming, each worth 10 marks. It includes various questions such as calculating speed, work completion time, salary, relationships, and programming tasks. The test assesses mathematical skills, logical reasoning, and programming knowledge in C.

Uploaded by

23022cm002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ThoughtWorks - Practice Test Paper

SECTION A: Aptitude (10 Marks)

1. A train travels 360 km at a uniform speed. If the speed had been 5 km/h more, it would have

taken 48 minutes less. Find the speed of the train.

2. A can do a piece of work in 10 days, and B can do it in 15 days. If they work together, how many

days will it take to finish the work?

3. A person spends 40% of his salary on rent, 20% on food, and saves the rest. If he saves

Rs.12,000, find his salary.

4. A boat can travel 20 km downstream in 2 hours and the same distance upstream in 5 hours. What

is the speed of the boat in still water?

5. A container has 40 liters of milk. 8 liters are removed and replaced with water. This process is

repeated two more times. What is the amount of milk left?

SECTION B: Logical Reasoning (10 Marks)

6. Pointing to a man, Raju said, "He is the son of my mother's brother." How is the man related to

Raju?

7. If in a certain language, "MANGO" is written as "NZOHF", how is "APPLE" written in that

language?

8. Five people (A, B, C, D, E) are sitting in a row. A is to the left of B but right of C. D is to the right of

B but left of E. Who is sitting in the middle?

9. Statements:

- All laptops are computers.

- Some computers are tablets.

Conclusion:

- I: Some laptops are tablets.

- II: All computers are laptops.


Which is correct?

10. If it is Monday on 1st March 2021, what day of the week will it be on 1st March 2022?

SECTION C: C Programming (10 Marks)

11. Output-based question:

#include <stdio.h>

int main() {

int a = 5;

printf("%d", a++ + ++a);

return 0;

12. Write a C program to check whether a number is prime or not.

13. Write a C program to reverse a string without using strrev().

14. What is the output of the following code?

#include <stdio.h>

void main() {

int i = 0;

for(i = 0; i < 5; i++) {

if(i == 3)

continue;

printf("%d ", i);

15. Explain the difference between call by value and call by reference in C with an example.

You might also like