Super Dream Fit - Tech 1

Super Dream Fit - Tech 1

Professional Development

10 Qs

quiz-placeholder

Similar activities

KYC_OnePLus8/S1 Pro/Oppo A12

KYC_OnePLus8/S1 Pro/Oppo A12

Professional Development

10 Qs

Little Debbie facts quiz

Little Debbie facts quiz

KG - Professional Development

10 Qs

Fini de surface et précision

Fini de surface et précision

Professional Development

10 Qs

Lietuvos geografija ir gamta

Lietuvos geografija ir gamta

Professional Development

10 Qs

Training ISO 45001 - Day 2

Training ISO 45001 - Day 2

Professional Development

10 Qs

NEOVITAL VIỆT NAM

NEOVITAL VIỆT NAM

Professional Development

12 Qs

נגד אדם

נגד אדם

Professional Development

10 Qs

The Loud House

The Loud House

Professional Development

11 Qs

Super Dream Fit - Tech 1

Super Dream Fit - Tech 1

Assessment

Quiz

Other

Professional Development

Hard

Created by

Vengatesh vengatesh

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

struct {

    short s[5];

    union {

         float y;

         long z;

    }u;

} t;

22

14

18

10

Answer explanation

The char data type takes one byte in the memory.

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#include<stdio.h>

struct st

{

    int x;

    static int y;

};

int main()

{

    printf("%d", sizeof(struct st));

    return 0;

}

1

3

4

Compilation Time Error

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Predict output of following program

int main()

{

    int i;

    int arr[5] = {1};

    for (i = 0; i < 5; i++)

        printf("%d ", arr[i]);

    return 0;

}

1 followed by four garbage values

1 0 0 0 0

1 1 1 1 1

0 0 0 0 0

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

union test

{

    int x;

    char arr[8];

    int y;

};

 

int main()

{

    printf("%d", sizeof(union test));

    return 0;

}

12

16

8

Compilation Error

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#include<stdio.h>

int main()

{

   int n;

   for (n = 9; n!=0; n--)

     printf("n = %d", n--);

   return 0;

}

9 7 5 3 1

9 8 7 6 5 4 3 2 1

Infinite Loop

9 7 5 3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

 char *ptr = "Genius";

 printf("%c", &&*ptr);

 return 0;

}

Compiler Error

Garbage Value

Runtime Error

G

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

int main()

{

    int i = 0;

    for (printf("1stn"); i < 2 && printf("2ndn"); ++i && printf("3rdn"))

    {

        printf("*n");

    }

    return 0;

}

1st 2nd * 3rd 2nd *

1st 2nd * 3rd 2nd * 3rd

1st 2nd 3rd * 2nd 3rd

1st 2nd 3rd * 1st 2nd 3rd

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?