
C Programing Quiz

Quiz
•
Computers
•
University
•
Easy
Muntazim Alam
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop guarantees that the loop body will be executed at least once?
A) for
B) while
C) do-while
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
int arr[5] = {1, 2, 3, 4, 5}; printf("%d", arr[3]);
A) 3
B) 4
C) 5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly defines a function with no return value and no parameters?
A) void func() {}
B) func(void) {}
C) int func() {}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code snippet print?
int i; for (i = 0; i < 5; i++) { printf("%d ", i); }
A) 0 1 2 3 4
B) 1 2 3 4 5
C) 0 1 2 3 4 5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to access the last element of an array arr with 10 elements?
A) arr[9]
B) arr[10]
C) arr[8]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
int i = 10; while (i > 5) { i--; } printf("%d", i);
A) 6
B) 5
C) 10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about functions in C?
A) Functions cannot return arrays.
B) Functions can only have one parameter.
C) Functions cannot call other functions.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Quiz Pemrograman Lanjut 2022/2023

Quiz
•
University
20 questions
Java Coding Questions

Quiz
•
University
18 questions
Array_to be discussF3

Quiz
•
University
18 questions
Java Programming Quiz

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
12 questions
Arrays C++

Quiz
•
University
20 questions
DSA quiz

Quiz
•
University
12 questions
Swift Fundamentals

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