C Language Quiz

C Language Quiz

University

30 Qs

quiz-placeholder

Similar activities

2nd Class Test FEB 2021

2nd Class Test FEB 2021

University

25 Qs

OCS752_CP_MODEL 3_PART A

OCS752_CP_MODEL 3_PART A

University

30 Qs

Operators

Operators

University

32 Qs

TECHNOWIZ'S QUIDDITCH

TECHNOWIZ'S QUIDDITCH

University

25 Qs

COCSIT C language test 23_04_2023

COCSIT C language test 23_04_2023

University

30 Qs

Computer Programming-2

Computer Programming-2

University

30 Qs

String in C Programming

String in C Programming

University

26 Qs

Kuis 2

Kuis 2

University

35 Qs

C Language Quiz

C Language Quiz

Assessment

Quiz

Computers

University

Hard

Created by

seyar sawayz

Used 7+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which serves as the entry point for a C program?

void start()

start_main()

main()

void program()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pointers in C point towards

values

memory locations

indexes

data structures

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator diligently associates with memory allocation?

->

&&

malloc

sizeof

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For a variable x, what does &x represent?

Value of x

Address of x

Pointer to x

x squared

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If int num = 10;, what would ++num produce?

10

11

9

An error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is not a property of union in C?

Union uses memory efficiently by sharing memory.

All members of a union share the same memory location.

Size of a union is the sum of sizes of all members.

We can only access one member of a union at a time.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does the memory for a local variable within a function get allocated and deallocated in C?

Compile-time

Load-time

Runtime, when the function is called

Runtime, during program initialization

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?