C Programming Quiz (Entry for Data Structures)

C Programming Quiz (Entry for Data Structures)

University

30 Qs

quiz-placeholder

Similar activities

Advanced Game Design Midterm

Advanced Game Design Midterm

University

25 Qs

PAT ROBOTIC Elektronika Dasar 2019-2020

PAT ROBOTIC Elektronika Dasar 2019-2020

KG - Professional Development

25 Qs

Speed Cup de Ingeniería 2021 (Eliminatoria)

Speed Cup de Ingeniería 2021 (Eliminatoria)

1st Grade - University

25 Qs

Understanding Loops in Programming

Understanding Loops in Programming

University

25 Qs

Video Games

Video Games

KG - University

28 Qs

Copyrights issue

Copyrights issue

University

26 Qs

CCC4 Chapter 1 - Introduction to Computers

CCC4 Chapter 1 - Introduction to Computers

University

25 Qs

Arduino

Arduino

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.

Access all questions and much more by creating a free account

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?

Discover more resources for Computers