C Programming Quiz (Entry for Data Structures)

C Programming Quiz (Entry for Data Structures)

University

30 Qs

quiz-placeholder

Similar activities

Code debugging - Round 1

Code debugging - Round 1

University

30 Qs

quiz

quiz

University

30 Qs

TECH - C

TECH - C

University

30 Qs

Quiz on C

Quiz on C

University

30 Qs

C QUIZ UNIT 1

C QUIZ UNIT 1

University

30 Qs

C PROGRAMMING

C PROGRAMMING

University

25 Qs

CodeChef (Secret Snippet)

CodeChef (Secret Snippet)

University

35 Qs

CODEZILLA 2022

CODEZILLA 2022

University

30 Qs

C Programming Quiz (Entry for Data Structures)

C Programming Quiz (Entry for Data Structures)

Assessment

Quiz

Computers

University

Medium

Created by

Marcus Birkenkrahe

Used 3+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C, you can access out-of-bound elements of an array without any error being reported by the compiler.

True

False

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which command initializes the following 2 x 2 identity matrix:

10

01

double foo[2][2] = {[0][0] = 1.0, [1][1] = 1.0};

double foo[2][2] = {1.0, 0., 0., 1.0};

double foo[2][2] = {1.0, 0., 1.0, 0.0};

double foo[2][2] = {'10','01'};

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What must happen before a function can be called?

It must be declared or defined

It will automatically be recognized by the compiler

It does not affect the compilation

It causes the program to exit

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of C functions?

To reuse, recall, and modularize code

To create graphical user interfaces

To manage database connections

To enhance the speed of the processor

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the void type indicate in a function definition?

The function does not return a value

The function returns an integer

The function can return any type of value

The function must take at least one argument

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The main function can be omitted in any C program.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does * do when applied to an address like &i (where i is a variable)?

It dereferences the address to access the value.

It converts the address to a hexadecimal format.

It increases the memory address by one step.

It checks the validity of the address.

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?