Prerequisite : Operators in C Q.1 What is the output of this program? #include <iostream> using namespace std; int main() { printf("value is = %d",… Read More
Category Archives: Program Output
Prerequisite : for loop Q.1 What is the output of this program? #include <iostream> using namespace std; int main() { for (5; 2; 2) printf("Hello\n");… Read More
Prerequisite : static and instance variables Question 1. What is the output of this question? class Test1 { int x = 10; public static void… Read More
Prerequisite : throws 1. What will be the output of the following program? class Geeks throws ArithmeticException { public static void main(String[] args) throws ArithmeticException… Read More
Prerequisite: Decision Control and Loops 1. What will be the output of the following program? class Test { public static void main(String[] args) { int… Read More
Prerequisite : Java Arrays Question 1. What is the output of this question? class Test1 { public static void main(String[] args) { int arr[] =… Read More
Prerequisite : try-catch, Exception Handling1. What will be the output of the following program? Java class Geeks { public static void main(String[] args) { try… Read More
Prerequisite : Loops in Java 1. what will be the output of the following program? public class Test { public static void main(String[] args) {… Read More
Prerequisite : Exception Handling, Throws 1. What will be the output of the following program? class Geeks { public static void main(String[] args) { throw… Read More
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