C Programming Factorial Quiz

C Programming Factorial Quiz

10th Grade

16 Qs

quiz-placeholder

Similar activities

AQA GCSE Computer Science Paper 1

AQA GCSE Computer Science Paper 1

9th - 11th Grade

20 Qs

Ujian Berpikir Komputasional Kelas 10

Ujian Berpikir Komputasional Kelas 10

10th Grade

15 Qs

Arrays in Java

Arrays in Java

9th - 12th Grade

20 Qs

C++ Recursion

C++ Recursion

8th - 12th Grade

12 Qs

Arrays += Chan

Arrays += Chan

9th - 12th Grade

12 Qs

2D Arrays

2D Arrays

9th - 12th Grade

15 Qs

C Programming Concepts

C Programming Concepts

10th Grade

15 Qs

Arrays recap

Arrays recap

9th Grade - University

17 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?