Search Header Logo

M-01_CP_2025-26

Authored by Mohd. Ashfaque Shaikh

Science

Professional Development

M-01_CP_2025-26
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

In C programming, which category of characters would include `!`, `@`, and `$`?

Digits
Keywords
Special Characters
Letters

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement correctly describes the use of keywords in C programming?

Keywords can be used interchangeably with identifiers.
Keywords are primarily used for comments in the code.
Keywords are names given to variables by the programmer.
Keywords are reserved words with special predefined meanings.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A programmer wants to name a variable for a customer's total orders. Which of the following is a valid identifier in C?

1st_order
if
customer_orders
total-orders

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is selecting the correct data type important when declaring a variable in C?

It dictates whether the variable can be modified or not.
It automatically initializes the variable to a random value.
It specifies the kind of data the variable can store.
It speeds up the program's execution by 50%.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To store the precise value of a calculation involving division, like 10 \div 3 or 3.3333333333, which C data type is generally preferred?

`char`
`double`
`int`
`void`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pair of methods can be used to define a constant in C, ensuring its value does not change?

Using `auto` or the `typedef` keyword.
Using `volatile` or the `static` keyword.
Using `#define` or the `const` keyword.
Using `register` or the `extern` keyword.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A program declares `int score;`. Which line correctly initializes `score` to zero after its declaration?

int score = 0;

score = 0;

`score -> 0;`
`0 = score;`

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?