CTS Company Numerical Ability Arithmetic

20. What is the max possible 3 digit prime number?

Read Solution (Total 6)

CTS Other Question

Questions 21-25: A cube painted red on two adjecent faces and black on the faces opposite to the red faces and green on the remaining faces is cut into sixty-four smaller cubes of equal size. 21. How many cubes are there which have no face painted ? 1. Create a method GetMax() with two integer (int) parameters, that returns maximal of the two numbers. Write a program that reads three numbers from the console and prints the biggest of them. Use the GetMax() method you just created. Write a test program that validates that the methods works correctly. Note: This is not a recursive method.

2. write a program that contains a method that reads a string, reverses it and prints it to the console. for example: "introduction" -> "noitcudortni." note: this is not a recursive method.

3. Write a program to generate and print all combinations with duplicates of k elements from a set with n elements. Sample input:
N=3
K=2