C_Quiz2

C_Quiz2

University

10 Qs

quiz-placeholder

Similar activities

Quiz 1 - Intro to C

Quiz 1 - Intro to C

University

10 Qs

Basic C Knowledge Exercise

Basic C Knowledge Exercise

University

10 Qs

SLG IPC Week 7

SLG IPC Week 7

University

13 Qs

Quiz on Functions#1

Quiz on Functions#1

University

15 Qs

unidad4

unidad4

University

10 Qs

Quiz 2

Quiz 2

University

12 Qs

PYTHON DAY 2

PYTHON DAY 2

University

12 Qs

На сколько ты знаешь C#

На сколько ты знаешь C#

University

10 Qs

C_Quiz2

C_Quiz2

Assessment

Quiz

Computers

University

Medium

Created by

MARY T

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the output:

#include <stdio.h>

   int x=2;

   int main()

   {

       if (x=2)

           printf("hi");

       else

           printf("how are u");

   }

hi

how are u

hi

how are u

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the output:

#include <stdio.h>

   int x=2;

   int main()

   {

       if (x=2)

           printf("hi");

       else

           printf("how are u");

printf("ECE");

   }

hiECE

how are u

hi

hi

ECE

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the output:

#include <stdio.h>

   int x=2;

   int main()

   {

       if (x=2)

           printf("hi");

       else

{

           printf("how are u");

printf("ECE");

}

   }

hiECE

how are u

hi

hi

ECE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

   int main()

   {

       int x = 5;

       if (x >5)

           printf("hello");

       if (x == 5)

           printf("hi");

       else

           printf("no");

   }

hiECE

how are u

hi

hi

ECE

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

   int main()

   {

       int x = 5;

       if (x >1)

           printf("hello");

       if (x == 5)

           printf("hi");

       else

           printf("no");

   }

hiECE

how are u

hellohi

hi

ECE

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

    if(TRUE)

    {

        printf("India\n");

    }

    if(true)

    {

        printf("Honey\n");

    }

    printf("ZING");

 

    return 0;

}

hiECE

how are u

Error

hi

ECE

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

int x;

int main()

{

if (x)

printf("hi");

else

printf("how are u");

}

hiECE

how are u

Error

hi

ECE

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?