Skip to content

Program Output and Loops — ISRO Scientist/Engineer CSE PYQs

Program Output and Loops is a topic in Programming in C. GateIQ has published 14 ISRO Scientist/Engineer CSE questions under it — 26.9% of the Programming in C questions, and 14 of them carry a written solution.

Try Program Output and Loops PYQs free

Attempt the 5 most recent published questions on this topic right here, with the answer and its explanation after each check. No account is needed and nothing is saved. Answers and explanations are study aids, not an official answer key.

0 of 5 checked
  1. 1Previous year question

    Consider the following program

    {
        int x=1;
        printf("%d",(*char(char*)&x));
    }

    Assuming required header files are included and if the machine in which this program is executed is little endian, then the output will be

    Choose an option to check it.
  2. 2Previous year question

    A language with string manipulation facilities uses the following operations.

    head(s)(s)- returns the first character of the string ss

    tails(s)(s)- returns all but the first character of the string ss

    concat(s1,s2)(s1, s2)- concatenates string s1s1 with s2.s2.

    The output of concat(head(s)(s), head(tail(tail(s)(s)))), where s is acbcacbc is:

    Choose an option to check it.
  3. 3Previous year question

    What is the output of tho following program?

    main(){
        int x=2, y=5;
        if(x<y) return (x=x+y);
                else printf("z1");
        printf("z2");
    }
    Choose an option to check it.
  4. 4Previous year question

    What does the following program do when the input is unsigned 16 bit integer?

    #include<stdio.h>
    main(){
      unsigned int num;
      int i;
      scanf("%u", &num);
      for(i=0;i<16;i++){
        printf("%d", (num<<i&1<<15)?1:0);
      }
    }
    Choose an option to check it.
  5. 5Previous year question

    What is the output of the following program?

    #include<stdio.h>
    int tmp=20;
    main()
    {
      printf("%d", tmp);
      func();
      printf("%d", tmp);
    
    }
    func()
    {
     static int tmp=10;
     printf("%d", tmp);
    }
    Choose an option to check it.

9 more questions on Program Output and Loops

These 5 are free to try without an account. Create a free account to practise the rest of the Program Output and Loops questions with structured solutions, and to keep your progress.

Program Output and Loops: questions people ask

How many ISRO Scientist/Engineer CSE questions are asked on Program Output and Loops?

GateIQ has published 14 ISRO Scientist/Engineer Computer Science previous year questions on Program Output and Loops, and 14 of them carry a written solution. That is 26.9% of the Programming in C questions.

Which subject is Program Output and Loops part of?

Program Output and Loops is a topic of Programming in C in the ISRO Scientist/Engineer Computer Science question archive.

Can I practise Program Output and Loops PYQs for free?

Yes. The 5 most recent published questions on this topic are free on this page with no signup. A free ISRO IQ account lets you practise the rest with structured solutions and keeps your progress.

Related topics in Programming in C

All Programming in C questions · All ISRO subjects