
C Programming Fundamentals Assessment
Authored by priyanka shelar
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to initialize an array in C?
int arr(3) = {1, 2, 3};
int arr = {1, 2, 3};
int arr[] = {1, 2, 3};
int arr[3] = new int[3]{1, 2, 3};
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a function prototype in C?
functionName(int, int) int;
functionName(int, int): int;
void functionName(int, int){}
int functionName(int, int);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which control flow statement is used to execute a block of code multiple times?
Function
Switch
Loop
Condition
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring a two-dimensional array in C?
type arrayName[rows][columns];
arrayName[rows, columns];
type arrayName(rows, columns);
arrayName{rows}{columns};
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you pass an array to a function in C?
Use 'functionName(arrayName, size)' without specifying data type.
Declare the array globally and access it directly in the function.
Use the syntax 'functionName(dataType arrayName[], int size)' to pass the array and its size.
Pass the array as a pointer without its size.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'if' statement in C?
To declare variables in C.
To create loops in C.
To execute code conditionally based on a boolean expression.
To define a function in C.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you initialize a multi-dimensional array in C?
int arr[2][3] = {{1, 2, 3}, {4, 5, 6}};
int arr[2][3] = {1, 2, 3; 4, 5, 6};
int arr[3][2] = {1, 2, 3, 4, 5, 6};
int arr[2][3] = {{1, 2}, {3, 4}, {5, 6}};
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
SENATIC Parcial Guía 3_PseInt
Quiz
•
10th Grade - University
15 questions
ENGINEERING DATA ANALYSIS PRELIM
Quiz
•
University
20 questions
SPCC ISE 2 Quiz TE B
Quiz
•
University
15 questions
Introduction to Django Framework Quiz
Quiz
•
University
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
15 questions
Python
Quiz
•
University
20 questions
WML & WAP
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University