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
25 questions
AP CSA Unit 1&2 Test

Quiz
•
8th Grade - Professio...
30 questions
Quiz'O Mania Round 1

Quiz
•
University
30 questions
Round_1 (B)| Coding Combat 2.0

Quiz
•
University
25 questions
Assignment 2(CIVIL)

Quiz
•
University
25 questions
PYTHON CONTEST 2

Quiz
•
University
26 questions
Analysis Algorithms Introduction

Quiz
•
University
25 questions
#100 Devs - LwL - class 15

Quiz
•
10th Grade - Professi...
25 questions
DS Quiz2

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University