Skip to content

Category Archives: Program Output

Prerequisite – Lists in Python Predict the output of the following Python programs.  Program 1   Python list = [1, 2, 3, None, (1, 2, 3, 4,… Read More
Prerequisite – Strings in Python Predict the output of the following Python programs. These question set will make you conversant with String Concepts in Python… Read More
Prerequisite – Lists in Python Predict the output of the following Python programs. These question set will make you conversant with List Concepts in Python… Read More
1) What is the output of following program? public class Test {     private static float temp()     {         public static float sum = 21;         return(--(sum));     }… Read More
Prerequisites: multi-threading in java , Life cycle and states of a thread , Joining threads in java , start() method in java 1) What could… Read More
Prerequisite :- Local inner classes , anonymous inner classes 1) What is the output of the following java program? public class Outer  {     public static… Read More
Prerequisite – Java Constructors  1) What is the output of the following program?  Java class Helper {     private int data;     private Helper()     {         data =… Read More
Predict the output of the following C++ programs. Question 1 #include <iostream> using namespace std;    int main() {     int a = b = c… Read More
Prerequisite – Switch Case in C/C++ Interesting Problems of Switch statement in C/C++ Program 1 #include <stdio.h> int main() {     int num = 2;     switch… Read More
Prerequisite – Collections in Java 1) What is the output of the following program?  Java import java.util.*;   public class priorityQueue {     public static void… Read More
Recent Articles on C/C++ C++ articles C/C++ Programs Coding Practice   Output of C++ programs | Set 1 Output of C++ programs | Set 2… Read More
What will be the output of this program? #include<iostream> using namespace std; int x; // Global x    int main() {     int x = 10;… Read More
1) What is the output of the following program?  Java public class Test implements Runnable {     public void run() { System.out.printf("%d", 3); }     public static… Read More
Predict the output of following Java programs: Question 1 : public class Base {     private int data;        public Base()     {         data = 5;     }… Read More
Question 1 How many times main() will get called?   C main() {    printf("\n main Called Again");    main(); } Answer : Infinite loop Description : There is no… Read More