C Language Proficiency

C Language Proficiency

12th Grade

15 Qs

quiz-placeholder

Similar activities

Variables and Loops Review

Variables and Loops Review

9th - 12th Grade

20 Qs

user interface

user interface

9th - 12th Grade

20 Qs

Pointer Arithmetic in C Programming

Pointer Arithmetic in C Programming

9th - 12th Grade

15 Qs

IST P-STEM Unit 1 Hardware and Python Review

IST P-STEM Unit 1 Hardware and Python Review

8th - 12th Grade

20 Qs

SAD 1

SAD 1

9th - 12th Grade

20 Qs

Java Strings

Java Strings

9th - 12th Grade

12 Qs

C++ Pointers and Arrays Quiz

C++ Pointers and Arrays Quiz

12th Grade

18 Qs

Java Quick Reference

Java Quick Reference

9th - 12th Grade

16 Qs

C Language Proficiency

C Language Proficiency

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Pratham Pratham

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a variable and a constant in C?

A variable can change its value, while a constant cannot be used in C.

A variable is declared using 'const' keyword, while a constant is declared using 'var' keyword.

A variable can change its value, while a constant has a fixed value.

A variable is used for storing fixed values, while a constant is used for storing changing values.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the different data types available in C.

boolean

string

int, float, double, char, void

array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare and initialize an array in C?

int arr = {1, 2, 3, 4, 5};

int arr[5] = {1, 2, 3, 4, 5};

int arr[5] = {1, 2, 3, 4, 6};

int arr[5] = {1, 2, 3, 4};

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of control structures in C?

Control structures in C have no specific purpose

Control structures in C are designed to confuse programmers

The purpose of control structures in C is to manage the flow of execution in a program.

Control structures in C are used for data storage

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for defining a function in C?

function_name(parameters) { // function body }

return_type function_name(parameters) { // function body }

return_type function_name(parameters) // function body

return_type function_name(parameters) { // function body

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does recursion work in C? Provide an example.

Recursion in C is not possible

Recursion in C requires a special library

Example: void recursiveFunction(int n) { if(n > 0) { printf('%d\n', n); recursiveFunction(n-1); } }

Recursion in C can only be used with arrays

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are pointers in C? How are they different from normal variables?

Pointers in C store memory addresses, while normal variables store actual values.

Pointers in C are used for arithmetic operations, while normal variables are not.

Pointers in C can only point to variables of the same data type, unlike normal variables.

Pointers in C are always initialized to NULL, unlike normal variables.

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?