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

21 / 265

Write a program, swapping function by passing value using call by reference?

Input : NA

Output : NA

|  Basics | | | |  Fresher

22 / 265

Write a program to print below pattern.
*
**
***
****

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:Wipro

23 / 265

Write a program to find the number is power of 2 or not.

Input : NA

Output : NA

|  Basics | | | |  Fresher

24 / 265

Write a program to find the LCM and GCD.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:PEOL

25 / 265

Write a recursive function to find the factorial of a number.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:PEOL

26 / 265

Write code to remove comment lines.

Input : NA

Output : NA

|  Basics | | | |  Experience, Fresher

Tags:PEOL

27 / 265

Write a program to find the sum of digits in number.

Input : 243

Output :

|  Basics | | | |  Fresher

Tags:PEOL

28 / 265

Write program for 2^n.

Input : n=42^4=

Output :

|  Basics | | | |  Experience, Fresher

Tags:PEOL

29 / 265

Write program to find out second larges number in given number.

Input : NA

Output : NA

|  Basics | | | |  Experience, Fresher

Tags:PEOL

30 / 265

Write a program to find the difference of two numbers must always be positive.

Input : Input 1: 10 15
Input 2: 45 40
Input 3: 20 34

Output :

|  Basics | | | |  Experience

+ Contribute Programming Qs.

Baig
1