Search Header Logo

C Programming Fundamentals Assessment

Authored by Sunny Saxena

Other

University

Used 2+ times

C Programming Fundamentals Assessment
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

int a = 5.5;

int b = 4.3;

int c = (double)a + (double)b;

printf("%d", c);

9.8

9

error

blank screen

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which function is used to print output in C?

puts

printf

write

display

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct syntax to declare an integer variable in C?

int myVariable;

int -myVariable;

float myVariable;

integer myVariable;

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the size of an int variable in C on a 32-bit system?

2 bytes

16 bytes

8 bytes

4 bytes

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is type conversion in C?

Type conversion in C is the process of converting a variable from one data type to another

Type conversion in C is only done implicitly.

Type conversion in C refers to changing the variable's name.

Type conversion in C is the process of changing a variable's scope.

6.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

int a='a';

int b=2;

char sum=a+b;

printf("%c",sum);

a

A

c

99

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the 'if' statement in C?

To create loops in C.

To declare variables in C.

To define a function in C.

To execute code conditionally based on a boolean expression.

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?