Work and Production Rate
Problem
A factory produces x units of a product in 24 days. How many units will it produce in 15 days?
2026 NQT
Sign in to open papers other than 2026 NQT
Sign in to download PDF or Word exports
Sign in1 sections, 58 questions
A factory produces x units of a product in 24 days. How many units will it produce in 15 days?
A man buys a shirt at a discount of 25% on its marked price and sells it at a profit of 20% on its marked price. If the marked price is $400, what is the selling price of the shirt?
If a cube has a volume of 512 cubic centimeters, what is the length of its side?
If a car travels a distance of 240 km with a speed of 60 km/h for the first 4 hours and then with a speed of 40 km/h for the next 3 hours, what is the average speed of the car for the entire journey?
If the cost price of an item is 250, what is the profit percentage?
Simplify the following expression: (8 × 4 + 6) / 2 - 5
Find the value of 'x' in the equation: 3x + 10 = 31
A bookstore gives a 15% discount on all books. If the original price of a book is $40, what will be the discounted price?
The sum of two consecutive odd numbers is 64. What are the numbers?
A train travels a distance of 240 km at a constant speed of 60 km/h. How much time will it take to cover the distance?
Choose the correct synonym for the word "Ephemeral": (a) Permanent (b) Fleeting (c) Eternal (d) Prolonged
Identify the correctly spelled word: (a) Exaggerrate (b) Exagerate (c) Exaggerate (d) Exaggarate
Choose the sentence with correct subject-verb agreement:
(a) The group of students has started their project.
(b) The group of students have started their project.
(c) The group of students is starting their project.
(d) The group of students are starting their project.
He was _____ tired that he fell asleep immediately. (a) Too (b) Two (c) To (d) 2
Identify the correct sentence with the use of articles:
(a) I have a apple.
(b) I have an apple.
(c) I have the apple.
(d) I have apple.
Choose the next number in the series: 2, 5, 11, 20, ?
If APPLE is coded as 116165 (using alphabet positions), how is ORANGE coded?
Which word does not belong to the group? (a) Square (b) Circle (c) Rectangle (d) Triangle
If CAT is coded as 3-1-20, DOG is coded as 4-15-7, how is FISH coded?
Arrange the following words in alphabetical order: Monitor, Apple, Keyboard, Mouse
Write a program to find the second largest number in an array.
Example:
Input: [12, 35, 1, 10, 34, 1]
Output: 34
Write a program to reverse an array in-place.
Example:
Input: [10, 20, 30, 40, 50]
Output: [50, 40, 30, 20, 10]
Write a program to find the duplicate values in an array of integers.
Example:
Input: [10, 20, 20, 30, 30, 30, 40, 50, 50]
Output: 20 30 30 50
Write a program to find the number of even and odd integers in a given array of integers.
Example:
Input: [10, 20, 21, 30, 31, 40, 41]
Output: Even: 4, Odd: 3
Write a program to find the common elements between two arrays of sorted elements.
Example:
Input: arr1 = [1, 3, 4, 5, 7], arr2 = [2, 3, 5, 6]
Output: 3 5
Write a program to check whether a given string is a palindrome or not.
Example:
Input: "madam"
Output: madam is a palindrome
Write a program to reverse the words in a given sentence without using any library method.
Example:
Input: "Hello World"
Output: "olleH dlroW "
Write a program to count the total number of vowels and consonants in a string.
Example:
Input: "Hello World"
Output: Vowels: 3, Consonants: 7
Write a program to check whether two strings are anagrams of each other.
Example:
Input: str1 = "Listen", str2 = "Silent"
Output: Listen and Silent are anagrams.
Write a program to convert a given string into lowercase.
Example:
Input: "HELLO WORLD"
Output: "hello world"
Write a program to print the Fibonacci series up to n terms.
Example:
Input: n = 10
Output: 0 1 1 2 3 5 8 13 21 34
Write a program to print all prime numbers up to n.
Example:
Input: n = 30
Output: 2 3 5 7 11 13 17 19 23 29
Write a program to print the Armstrong numbers between 1 and n.
Example:
Input: n = 500
Output: 1 153 370 371 407
Write a program to print the pattern series like 1, 12, 123, 1234, ..., up to n.
Example:
Input: n = 5
Output:
1
12
123
1234
12345
Write a program to print the sum of the series 1 + 1/2 + 1/3 + ... + 1/n.
Example:
Input: n = 5
Output: 2.2833333333333332
Write a program to convert a decimal number to binary.
Example:
Input: 10
Output: 1010
Write a program to convert a binary number to decimal.
Example:
Input: "1010"
Output: 10
Write a program to convert a decimal number to hexadecimal.
Example:
Input: 255
Output: ff
Write a program to convert Fahrenheit to Celsius.
Example:
Input: 100.0
Output: 37.77777777777778
Write a program to convert a string to an integer without using Integer.parseInt().
Example:
Input: "123"
Output: 123
Implement the bubble sort algorithm for a given array of integers.
Example:
Input: [64, 34, 25, 12, 22, 11, 90]
Output: [11, 12, 22, 25, 34, 64, 90]
Implement the insertion sort algorithm for a given array of integers.
Example:
Input: [12, 11, 13, 5, 6]
Output: [5, 6, 11, 12, 13]
Implement the selection sort algorithm for a given array of integers.
Example:
Input: [64, 25, 12, 22, 11]
Output: [11, 12, 22, 25, 64]
Implement the quick sort algorithm for a given array of integers.
Example:
Input: [10, 7, 8, 9, 1, 5]
Output: [1, 5, 7, 8, 9, 10]
Implement the merge sort algorithm for a given array of integers.
Example:
Input: [12, 11, 13, 5, 6, 7]
Output: [5, 6, 7, 11, 12, 13]
Write a program to solve the Towers of Hanoi problem with 'n' disks.
Example:
Input: n = 3
Output: Sequence of moves to transfer 3 disks from rod A to rod C using rod B
Write a program to find the Longest Common Subsequence (LCS) in two strings.
Example:
Input: s1 = "AGGTAB", s2 = "GXTXAYB"
Output: 4
Write a program to find all permutations of a string.
Example:
Input: "ABC"
Output: ABC ACB BAC BCA CBA CAB
Write an algorithm to implement breadth-first search (BFS) for a graph.
Write an algorithm to implement depth-first search (DFS) for a graph.
Implement an algorithm to sort an array using the heap sort method.
Write a program to find the shortest path between two nodes in a weighted graph using Dijkstra's Algorithm.
Write a program to find the InOrder, PreOrder, and PostOrder traversal of a Binary Tree.
Explain the concept of encapsulation with a coding example.
Write a program to implement polymorphism in Java.
What is the difference between overloading and overriding? Provide a code example.
Explain the concept of inheritance with an example. What are the different types of inheritance supported in Java and C++?
Write a program to implement an interface in Java. Also explain the difference between a class and an interface.