C Programming Quiz (Entry for Data Structures)

Quiz
•
Computers
•
University
•
Medium
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
Similar Resources on Wayground
30 questions
Java Programming

Quiz
•
University
25 questions
Algorytmy i jezyki programowania

Quiz
•
4th Grade - University
25 questions
Mock 2nd MCQ Python

Quiz
•
University
30 questions
IEEE VEC SB

Quiz
•
University
25 questions
Code Sprint

Quiz
•
University
25 questions
GNIDOC ROUND 1

Quiz
•
University
30 questions
C Language Quiz

Quiz
•
University
25 questions
python loop 7th

Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University