C Programming Challenge

C Programming Challenge

Professional Development

42 Qs

quiz-placeholder

Similar activities

EE Unit 2 Astronomy Test Review

EE Unit 2 Astronomy Test Review

9th Grade - Professional Development

39 Qs

Quiz PHP Dasar

Quiz PHP Dasar

Professional Development

45 Qs

Domestic Gas Legislation Quiz

Domestic Gas Legislation Quiz

Professional Development

42 Qs

space

space

5th Grade - Professional Development

37 Qs

health and safety revision 25-26

health and safety revision 25-26

Professional Development

43 Qs

Vocabulary 1

Vocabulary 1

Professional Development

40 Qs

Quiz 1

Quiz 1

Professional Development

40 Qs

Block 12

Block 12

Professional Development

43 Qs

C Programming Challenge

C Programming Challenge

Assessment

Quiz

Science

Professional Development

Hard

Created by

Mr. Atul Kumar Rai

FREE Resource

42 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the basic data types in C?

string

int, float, double, char, void

boolean

array

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in C?

var x int;

declare int x;

int x = new;

To declare a variable in C, use the syntax: type variable_name; e.g., int x;.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'if' statement?

To declare a function.

To control the flow of execution based on conditions.

To create a loop for iteration.

To define a variable's value.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the use of 'switch' in control structures.

The 'switch' statement is used to create loops in programming.

The 'switch' statement is a type of function that returns values.

The 'switch' statement can only evaluate boolean expressions.

The 'switch' statement is used to simplify multiple conditional checks by evaluating a variable against several cases.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in C and how is it defined?

A function in C is a keyword that defines a data structure.

A function in C is a block of code defined with a return type, name, and parameters, used to perform specific tasks.

A function in C is a variable that stores data.

A function in C is a type of loop used for iteration.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is recursion and provide an example?

Recursion is a technique used to create user interfaces.

An example of recursion is finding the maximum value in an array.

An example of recursion is the calculation of the factorial of a number n, defined as n! = n * (n-1)! with the base case 0! = 1.

Recursion is a method of sorting an array of numbers.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do pointers work in C?

Pointers in C cannot be used to manipulate arrays.

Pointers in C automatically manage memory allocation without user intervention.

Pointers in C are used to store string literals only.

Pointers in C are variables that hold memory addresses, allowing for direct memory access and manipulation.

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?