Skip to content

Category Archives: Program Output

Prerequisite : Arrays in Java Question 1. What is the output of this question class Test1 { public     static void main(String[] args)     {         int arr[]… Read More
Prerequisite: if else, for loops 1. What will be the output for the following program? public class Test { public     static void main(String[] args)     {… Read More
Prerequisite : While loops Q.1 What is the output of this program? #include <iostream> using namespace std; int main() {     unsigned int x = 3;… Read More
Q.1 What Is The Output Of this program ? #include <iostream> using namespace std; int main() {     int a = 35;     int b = 12;… Read More
Prerequisite: Shift operators Q.1 What Is The Output Of this program? #include <stdio.h> int main() {     unsigned int i = 0x80;     printf("%d ", i <<… Read More
Prerequisite : while loop in Java 1. What will be the output for the following program? class Test { public     static void main(String[] args)     {… Read More
Prerequisite: Decision Making in Java Predict the Output of the following programs 1. What will be the output of the following program? public class Test… Read More
Predict the output of below programs Question 1 #include <stdio.h> int main() {     int x, a = 0;     x = sizeof(a++) ? printf("Geeks for Geeks\n")… Read More
1. What is the Output of the following Java Program?  Java import java.util.LinkedList;   class Demo { public void show()     {         LinkedList<Integer> list = new… Read More
Prerequisite: Java – Collections 1. What is the output of following Java Program? import java.util.ArrayList; class Demo { public void show()     {         ArrayList<Integer> list =… Read More
Prerequisite : Pointers in C/C++ 1. What will be the output of the following program? #include <iostream> using namespace std;    int main() {     int… Read More
Prerequisite : Decision Making in C++ Question 1. What is the output of following program? #include <iostream> #include <stdio.h> int main() {     if (!(std::cout <<… Read More
Prerequisite : Arrays in Java Question 1. What is the output of following program? class ArrayDemo { public static void main(String[] args)     {         int arr1[]… Read More
Prerequisite : Arrays in Java 1. What will be the output of the following program? public class Test { public     static void main(String[] args)     {… Read More
Q.1 What Is The Output Of this program?  CPP #include <iostream> using namespace std; int main() {     int a = b = c = 10;… Read More