C Programming Fundamentals Assessment

C Programming Fundamentals Assessment

University

17 Qs

quiz-placeholder

Similar activities

6. SINIF TÜRKÇE- SEVİYE BELİRLEME (EMİN HOCA)

6. SINIF TÜRKÇE- SEVİYE BELİRLEME (EMİN HOCA)

5th Grade - University

20 Qs

National Day Quiz

National Day Quiz

University

12 Qs

Consumer Behavior

Consumer Behavior

University

20 Qs

football of world

football of world

1st Grade - University

13 Qs

Anime 99

Anime 99

9th Grade - Professional Development

13 Qs

EMBEDDED SYSTEM DESIGN

EMBEDDED SYSTEM DESIGN

University

20 Qs

BEEE Pre-test Assessment

BEEE Pre-test Assessment

University

20 Qs

Principal of marketing chapter 2

Principal of marketing chapter 2

University

20 Qs

C Programming Fundamentals Assessment

C Programming Fundamentals Assessment

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Sunny Saxena

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?