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
quiz

Quiz
•
University
25 questions
Stack and Queue

Quiz
•
University
25 questions
Compro. Final 1/64 part1

Quiz
•
University
30 questions
UTS SO A1

Quiz
•
University
26 questions
String in C Programming

Quiz
•
University
35 questions
CodeChef (Secret Snippet)

Quiz
•
University
25 questions
GNIDOC ROUND 1

Quiz
•
University
30 questions
Code debugging - Round 1

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade