Prerequisite: Lists and Tuples 1) What is the output of the following program? PYTHON List = [True, 50, 10] List.insert(2, 5) print(List, "Sum is: ",… Read More
Category Archives: Program Output
Prerequisite – Constructors in C++ 1. What is the output of following program? CPP #include <iostream> using namespace std; class construct { int a,… Read More
Prerequisite: List and Tuples Note: Output of all these programs is tested on Python3 1) What is the output of the following program? PYTHON L1 =… Read More
Pre-requisite: List in python 1) What is the output of the following program? Python data = [2, 3, 9] temp = [[x for x in[data]]… Read More
Pre-requisite: Exception Handling in Python Note: All the programs run on python version 3 and above. 1) What is the output of the following program?… Read More
Prerequisite: Inheritance in Java 1) What is the output of the following program? Java public class A extends B { public static String sing() {… Read More
Prerequisite: Pointers in C/C++ Question 1 What will be the output? C #include<stdio.h> int main() { int a[] = { 1, 2, 3, 4,… Read More
Prerequisite – Overloading in Java1) What is the output of the following program? Java public class Test { public int getData() //getdata() 1 { return… Read More
Prerequisite – Type Conversions in Java with Examples 1) What is the output of the following program? public class Test { public static void main(String[]… Read More
Prerequisite: Dictionary 1) What is the output of the following program? Python3 dictionary = {'GFG' : 'geeksforgeeks.org', 'google' : 'google.com', 'facebook' : 'facebook.com' } del dictionary['google'];… Read More
Prerequisite – Inheritance in Java Predict the output of following Java Programs. Program 1 : class A { public A(String s) { System.out.print("A"); } }… Read More
Predict the output of following Java Programs. Program 1 : public class RuntimePolymorphism { public static void main(String[] args) { A a = new B();… Read More
Prerequisite – Overriding in Java 1) What is the output of the following program? class Derived { protected final void getDetails() { System.out.println("Derived class"); }… Read More
Predict the output of the following C++ programs. Program 1 CPP #include <iostream> using namespace std; int main() { char array[3] = "abc"; cout <<… Read More
Question 1 What will be the output? #include <iostream> using namespace std; int main() { int x = 0; for (int i = 0;… Read More