Skip to content

Category Archives: Program Output

Prerequisite : Pointers in C Question 1 : What will be the output of following program? #include "stdio.h" int main() {     char a[] = {… Read More
Prerequisite: Python-Sets 1. What is the output of the code shown below? sets = {1, 2, 3, 4, 4} print(sets) Options: {1, 2, 3} {1,… Read More
Prerequisite : String Comparison in Java 1. What should be the output of this program? class GeeksforGeeks {     public static void main(String args[])     {         String… Read More
Prerequisite : Basics of Strings class in java 1. What is the Output Of the following Program class demo1 {     public static void main(String args[])… Read More
Prerequisite: Loops and String Note: Output of all these programs is tested on Python3 1. What is the output of the following? my_string = "geeksforgeeks"… Read More
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 programming Q1. Consider the following code: #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? class Outer {     class Inner {     public… 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? public class Example {     int x = 10; public… 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