Search Header Logo

c_programming_1

Authored by coding everyone

Education

University

Used 1+ times

c_programming_1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int a = 3.5 + 4.5;

a = 0

a = 7

a = 8.0

a = 8

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h>

int main(){

int x= 5*9/3+9;

printf("%d",x);

return 0;

}

8

24

25

None

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main()

{

float c = 3.5 + 4.5;

printf("%f", c);

return 0;

}

7

8

9

8.000000

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Is it possible to run program without main() function?

yes

no

may be

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many main() function we can have in our project?

1

2

no limit

depends on the program

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int x = 10;


int main()

{

int x = 0;

printf("%d",x);

return 0;

}

10

0

compile error

undefined

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What should be the output:

int main()

{

int a = 10/3;

printf("%d",a);

return 0;

}

3.33

3.0

3

0

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?