Skip to content

Category Archives: Program Output

Prerequisite : Static keyword in Java Question 1. what is the output of this question? class Test1 { public     static void main(String[] args)     {         int… 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 : Loops in C Q.1 What is the output of this program? #include <iostream> using namespace std; int main() {     int i, j, var… Read More
Prerequisite : C Constants and Strings Q.1 What is the output of this program? #include<iostream> using namespace std; int main() {     const char *s =… Read More
Prerequisite : Multi-threading in Java 1. What will be the output of the program? class Test extends Thread { public     void run()     {         System.out.println("Run");     }… Read More
Prerequisite : Control Statements Q.1 What is the output of this program? #include <iostream> using namespace std; int main() {     char i = 0;     for… Read More
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
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 Handling 1. What will be the output of the following program? 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