c_programming_1

c_programming_1

University

14 Qs

quiz-placeholder

Similar activities

Recursions

Recursions

University

11 Qs

Python - Functions

Python - Functions

University

11 Qs

invicta

invicta

University

15 Qs

Python - Data Types

Python - Data Types

12th Grade - University

11 Qs

1.0 Introduction To Fundamentals Of Programming

1.0 Introduction To Fundamentals Of Programming

University

10 Qs

C program

C program

University

10 Qs

DSA Quiz 2 Set 1

DSA Quiz 2 Set 1

University

10 Qs

Codigo with C

Codigo with C

University

10 Qs

c_programming_1

c_programming_1

Assessment

Quiz

Education

University

Medium

Created by

coding everyone

Used 1+ times

FREE Resource

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

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?