Skip to content

Category Archives: Program Output

Prerequisite: Loops Note: Output of all these programs is tested on Python3 1. What is the output of the following? mylist = ['geeks', 'forgeeks'] for… Read More
Prerequisite : Boolean Note: Output of all these programs is tested on Python31. What is the output of the code:   Python3 print(bool('False')) print(bool()) False, True None,… Read More
Prerequisite : Tuples Note: Output of all these programs is tested on Python3 1. What will be the output of the following program ? tuple… Read More
1) What is the output of the following program? #include <stdio.h> #include <string.h> int main(void) {     char* p = "geeks";     printf("%lu %lu %lu ", sizeof(p),… Read More
Prerequisite : Declaration & Initialization in C programmingQ1. Consider the following code:   C #include <stdio.h> void main() {     extern int i;     i = 20;     printf("%d",… Read More
Prerequisite : Inner Classes in Java  1. What will be the .class file name of the Inner class?  JAVA class Outer {     class Inner {… Read More
Prerequisite : Structure padding, integer promotion and sequence points. Q1. Consider the following code:   C #include<stdio.h> struct geeks{   int i;   char c; } obj;   int… Read More
Q 1.What is the output of this program? class Test { public final int a; } class Example { public static void main(String args[])     {… Read More
Find the output of below java program Q 1. What is the output of this program?  Java public class Example {     int x = 10;… Read More
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 StringsQ.1 What is the output of this program?   CPP #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 StatementsQ.1 What is the output of this program?   CPP #include <iostream> using namespace std; int main() {     char i = 0;     for… Read More

Start Your Coding Journey Now!