C Programming Fundamentals

C Programming Fundamentals

Professional Development

23 Qs

quiz-placeholder

Similar activities

MSBTE Quiz

MSBTE Quiz

Professional Development

20 Qs

NMC-IT PD 2024

NMC-IT PD 2024

Professional Development

20 Qs

Remote Support and Scripting Best Practices

Remote Support and Scripting Best Practices

Professional Development

21 Qs

Pelatihan KKA LPD KodeKiddo Fase C

Pelatihan KKA LPD KodeKiddo Fase C

Professional Development

25 Qs

CompTIA Security+ (SYO-701) Obj 5

CompTIA Security+ (SYO-701) Obj 5

Professional Development

24 Qs

Prelim: Networking II

Prelim: Networking II

Professional Development

20 Qs

Exploring AI Tools for Educators

Exploring AI Tools for Educators

Professional Development

20 Qs

SOHO Router and Security Practices Quiz

SOHO Router and Security Practices Quiz

Professional Development

20 Qs

C Programming Fundamentals

C Programming Fundamentals

Assessment

Quiz

Information Technology (IT)

Professional Development

Medium

Created by

SABARISH K S

Used 3+ times

FREE Resource

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet: int a = 5; if(a > 3) { printf("Hello"); } else { printf("World"); }

Greetings

Salutations

Hello

Hi

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the data type of the variable 'x' in the following code: float x = 10.5;

int

float

string

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following expression: 10 / 3?

4.0

2.5

3.5

3.3333

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: int a = 10; a++; printf("%d", a);

11

10

9

12

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the switch statement in C?

To create loops in C programming.

To define functions in C.

To handle errors in C code.

The purpose of the switch statement in C is to simplify multi-way branching based on the value of a variable.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: int a = 5; int b = 10; int c = (a > b) ? a : b; printf("%d", c);

15

10

5

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following operation: 5 + 2 * 3?

11

8

9

10

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?