Search Header Logo

Fundamentals of C Programming

Authored by SHARMILI K

Computers

12th Grade

Used 5+ times

Fundamentals of C Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the history of C programming?

C programming was developed in the early 1970s by Dennis Ritchie at Bell Labs.

C programming was developed by Microsoft for Windows.

C programming was created in the 1980s by Bjarne Stroustrup.

C programming is a high-level language developed in the 1960s.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Describe the structure of a C program.

A C program includes only variable declarations and no functions.

A C program is structured as a single line of code.

A C program consists only of comments and whitespace.

A C program structure includes preprocessor directives, the main function, variable declarations, executable statements, and additional functions.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are pre-processor directives in C?

Pre-processor directives are part of the C runtime library.

Pre-processor directives are used for memory management in C.

Pre-processor directives are commands for the C pre-processor that manage file inclusion, macro definitions, and conditional compilation.

Pre-processor directives are commands that execute at runtime.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List the different data types available in C.

int, float, double, char, void

array

boolean

string

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the concept of constants and variables in C.

Both constants and variables can be modified during program execution.

Variables are used for memory allocation, and constants are for data types.

Constants are fixed values that cannot change, while variables are storage locations that can hold different values.

Constants can change values at runtime, while variables are fixed.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are operators in C and how are they used?

Operators in C are only applicable to integer data types.

Operators in C are reserved keywords that cannot be changed.

Operators in C are symbols that perform operations on variables and values, used in expressions for calculations, comparisons, and control flow.

Operators in C are only used for arithmetic calculations.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Define operator precedence and associativity.

Operator precedence is only relevant in programming languages.

Associativity refers to the number of operators in an expression.

Operator precedence determines the data type of variables.

Operator precedence is the order of operations in expressions, while associativity is the direction of evaluation for operators of the same precedence.

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?