2nd C Programming Quiz

2nd C Programming Quiz

University

50 Qs

quiz-placeholder

Similar activities

SNB_SSY

SNB_SSY

University

49 Qs

C Language

C Language

University

50 Qs

CA Test 2

CA Test 2

University

50 Qs

first quiz ICT

first quiz ICT

University

48 Qs

Orientation  Quiz

Orientation Quiz

University - Professional Development

50 Qs

CC 101 Final Exam

CC 101 Final Exam

University

50 Qs

Java Programming Quiz 2-6

Java Programming Quiz 2-6

University

50 Qs

Quiz

Quiz

University

50 Qs

2nd C Programming Quiz

2nd C Programming Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Tech Ninjas

Used 15+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

int main()

{

function();

return 0;

}

void function()

{

printf("Function in C is awesome");

}

Function in C is awesome

No output

Runtime Error

Compilation Error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the C program?


#include<stdio.h>

a()

{

printf("Function");

}

b()

{

printf("Function in C");

}

c()

{

printf("C function");

}

main()

{

int (*ptr[3])();

ptr[0] = a;

ptr[1] = b;

ptr[2] = c;

ptr[2]();

return 0;

}

Function

Function in C

C Function

None of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the Output of this?

#include<stdio.h>

int function();

main()

{

int i;

i = function();

printf("%d", i);

return 0;

}

function()

{

int a;

a = 250;

return 0;

}

Runtime Error

0

250

No Output

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the C program?


#include<stdio.h>

int main(){

printf("%p",main);

return 0;

}

Address

Compilation Error

Garbage Value

Runtime Error

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output?

72 72 72

72 110 48

Compilation error

No output

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the C program?


#include<stdio.h>

enum colors {apple,orange,mango};

int main()

{

printf("%d %d %d",mango,apple,orange);

return 0;

}

3 1 2

2 0 1

0 1 2

1 0 2

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

4 4

8 8

Error

4 8

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?