C Programming Quiz 2

C Programming Quiz 2

Professional Development

10 Qs

quiz-placeholder

Similar activities

NECTS- Code Debugging Elimination Round

NECTS- Code Debugging Elimination Round

Professional Development

5 Qs

Functions on C

Functions on C

Professional Development

15 Qs

T&P Test on MCQs

T&P Test on MCQs

Professional Development

10 Qs

C++ Is Fun

C++ Is Fun

Professional Development

10 Qs

Day 3 C Programming quiz

Day 3 C Programming quiz

Professional Development

10 Qs

C String Array MCQs

C String Array MCQs

Professional Development

10 Qs

C - Programming ( Output based - Loop )

C - Programming ( Output based - Loop )

Professional Development

10 Qs

BrightChamps Technical Round - C language

BrightChamps Technical Round - C language

Professional Development

15 Qs

C Programming Quiz 2

C Programming Quiz 2

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Dr. SRET

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is meaning of following declaration ? int arr[20];

A Array of Size 20

B None of these

C Integer Array of size 20

D Array of size 20 that can have integer address

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the program if the array begins 1200 in memory? #include int main() { int arr[]={2, 3, 4, 1, 6}; printf("%u, %u, %u\n", arr, &arr[0], &arr); return 0; }

1200, 1202, 1204

1200, 1200, 1200

1200, 1204, 1208

1200, 1202, 1200

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following code? main() { int a=1, b=10; swap(a,b); printf("\n%d%d", a,b); } swap(int x, int y) { int temp; temp=x; x=y; y=temp; }

1 1

1 10

10 1

None of these

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following C code? #include void main() { m(); void m() { printf("hi"); } }

hi

Compile time error

Nothing

Varies

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following C code? #include void main() { m(); } void m() { printf("hi"); m(); }

Compile time error

hi

Infinite hi

Nothing

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A function which calls itself is called a ___ function.

Self Function

Auto Function

Recursive Function

Static Function

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of C program with pointers. int main() { int a = 20; //a memory location = 1234 printf("%d %d %d %d", a, &a, *(&a)); return 0; }

20 20 20

20 1234 1234

20 1234 20

20 20 20

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?