C Language Proficiency

C Language Proficiency

12th Grade

15 Qs

quiz-placeholder

Similar activities

History of the computer

History of the computer

12th Grade

20 Qs

phần mềm trình chiếu

phần mềm trình chiếu

1st - 12th Grade

10 Qs

การสร้างสื่อดิจิตอล Quiz

การสร้างสื่อดิจิตอล Quiz

9th - 12th Grade

10 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

k12 bai4

k12 bai4

12th Grade

10 Qs

ICT as Social Change

ICT as Social Change

12th Grade

10 Qs

C Language Proficiency

C Language Proficiency

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Pratham Pratham

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?