C Programming Quiz (Entry for Data Structures)

C Programming Quiz (Entry for Data Structures)

University

30 Qs

quiz-placeholder

Similar activities

Placa-Mãe

Placa-Mãe

3rd Grade - University

25 Qs

Aptitude Competition(FY)

Aptitude Competition(FY)

University

25 Qs

Operating system

Operating system

7th Grade - University

25 Qs

Round 1-S1

Round 1-S1

University

25 Qs

PRANATA KOMPUTER

PRANATA KOMPUTER

University

31 Qs

Atividade sobre Modelos de Processo de Software

Atividade sobre Modelos de Processo de Software

University

25 Qs

P03JARKOM

P03JARKOM

University

25 Qs

Module 3 - Security Architecture

Module 3 - Security Architecture

University

25 Qs

C Programming Quiz (Entry for Data Structures)

C Programming Quiz (Entry for Data Structures)

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Marcus Birkenkrahe

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?