C Language Quiz

C Language Quiz

University

30 Qs

quiz-placeholder

Similar activities

c programming

c programming

University

30 Qs

Introduction - Data Structures

Introduction - Data Structures

University

25 Qs

Code Carnival

Code Carnival

University

25 Qs

C Quiz 1

C Quiz 1

University

25 Qs

C Programing

C Programing

University

25 Qs

Arrays and Strings in C

Arrays and Strings in C

12th Grade - University

32 Qs

Programming Skills C/C++

Programming Skills C/C++

University

25 Qs

OCS752_CP_WEEKLY_TEST4 (08.09.2020)

OCS752_CP_WEEKLY_TEST4 (08.09.2020)

University

30 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?