C_Quiz2

C_Quiz2

University

10 Qs

quiz-placeholder

Similar activities

Object Oriented BTech

Object Oriented BTech

University

15 Qs

OCS752_CP_MODEL 1_PART B (16.10.2020)

OCS752_CP_MODEL 1_PART B (16.10.2020)

University

10 Qs

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

Lập trình trực quan

Lập trình trực quan

University

15 Qs

JSPS Competition Hackathon - Scratch Language - Grade 1

JSPS Competition Hackathon - Scratch Language - Grade 1

2nd Grade - University

10 Qs

TIC

TIC

University

10 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

SDF_B10B12Tutorial_December26

SDF_B10B12Tutorial_December26

University

10 Qs

C_Quiz2

C_Quiz2

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

MARY T

Used 1+ 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

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

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers