Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

# Basics Programs in JAVA

11 / 265

Write a program to find the given number is even or odd.

INPUT: 14
OUTPUT: Even

INPUT: 13
OUTPUT: Odd

Input : NA

Output : NA

|  Basics | | | |  Fresher

12 / 265

Write a program to create a calculator using switch cases.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:Wipro

13 / 265

Write a program to check a String is palindrome or not? How many minimum number of control variable you need.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:Wipro Virtusa

14 / 265

Write a program to reverse a string using minimum control variable and minimum iteration and with and without temporary variable.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:Wipro

15 / 265

Write a program to print pattern of numbers as below:

1
121
12321

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:Wipro

16 / 265

Write code for swapping two variables without using 3rd variable.

Input : NA

Output : NA

|  Basics | | | |  Fresher

17 / 265

Write a program to print prime numbers upto 10.

Input : NA

Output : NA

|  Basics | | | |  Fresher

18 / 265

Write a program to check Armstrong number.

Input : NA

Output : NA

|  Basics | | | |  Fresher

19 / 265

Write a program to print reverse of a number?

Input : NA

Output : NA

|  Basics | | | |  Fresher

20 / 265

Write a program to check whether the entered year is leap year or not?

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:Wipro

+ Contribute Programming Qs.

Baig
1