C Programming Factorial Quiz

C Programming Factorial Quiz

10th Grade

16 Qs

quiz-placeholder

Similar activities

GCSE Computing: Lists and Arrays

GCSE Computing: Lists and Arrays

10th - 11th Grade

15 Qs

Ulangan 2

Ulangan 2

10th Grade

20 Qs

Mảng 1 chiều

Mảng 1 chiều

8th - 11th Grade

15 Qs

AP Computer Science

AP Computer Science

10th - 12th Grade

15 Qs

1D Arrays

1D Arrays

9th Grade - University

14 Qs

Functions in python Chapter 8

Functions in python Chapter 8

10th Grade

18 Qs

Programming 2 - Arrays

Programming 2 - Arrays

10th - 12th Grade

17 Qs

CodeHS 5.3 Using Arrays

CodeHS 5.3 Using Arrays

9th - 12th Grade

11 Qs

C Programming Factorial Quiz

C Programming Factorial Quiz

Assessment

Quiz

Computers

10th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?