C Programming Fundamentals Assessment

C Programming Fundamentals Assessment

University

17 Qs

quiz-placeholder

Similar activities

Основы Python

Основы Python

University

19 Qs

Repaso Programacion I

Repaso Programacion I

University

18 Qs

Algo-Unlock

Algo-Unlock

University

20 Qs

UMANG QUIZ

UMANG QUIZ

University

20 Qs

Round 2

Round 2

University

20 Qs

CSC264 Javascript Basic

CSC264 Javascript Basic

University

15 Qs

functions

functions

University

15 Qs

Round 1

Round 1

University

20 Qs

C Programming Fundamentals Assessment

C Programming Fundamentals Assessment

Assessment

Quiz

Other

University

Medium

Created by

Sunny Saxena

Used 2+ times

FREE Resource

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.

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?