C Programming Factorial Quiz

Quiz
•
Computers
•
10th Grade
•
Hard
Karen Tan
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What is the purpose of the findFactorial() function?
To find the sum of a given integer
To find the factorial of a given integer
To find the square root of a given integer
To find the average of a given integer
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which memory allocation function can be used to store the factorial of each number to a dynamic array?
malloc()
realloc()
calloc()
free()
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What type of parameter does the findFactorial() function accept?
Character pointer
Float pointer
Double pointer
Integer pointer
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of the following is not a valid purpose of the findFactorial() function?
Finding the factorial of a given number
Finding the sum of a given array
Finding the product of a given array
Finding the average of a given array
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What is the use of the calculateAverage() function?
To calculate the sum of a given array
To calculate the average of a given array
To calculate the factorial of a given number
To calculate the product of a given array
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What type of parameter does the calculateAverage() function accept?
Character pointer
Float pointer
Double pointer
Integer pointer
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of the following is not a valid purpose of the calculateAverage() function?
Finding the average of a given array
Finding the sum of a given array
Finding the product of a given array
Finding the factorial of a given number
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
AP CS A Unit 6 Exam PRACTICE

Quiz
•
9th - 12th Grade
12 questions
0478 Quiz - Command words

Quiz
•
9th - 12th Grade
15 questions
Array

Quiz
•
10th - 12th Grade
18 questions
STATIC KEYWORD IN JAVA

Quiz
•
9th - 12th Grade
12 questions
Arrays Intro

Quiz
•
9th - 12th Grade
20 questions
8525 AQA GCSE 3.2.6 Data Structures

Quiz
•
10th Grade
20 questions
LOOKUP

Quiz
•
9th Grade - University
15 questions
Python and PseudoCode Quiz

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade