C Programming Coding Assessment

C Programming Coding Assessment

1st Grade

13 Qs

quiz-placeholder

Similar activities

E14 by Ja

E14 by Ja

KG - University

16 Qs

EXCEL

EXCEL

1st - 9th Grade

12 Qs

ENGLISH

ENGLISH

KG - University

10 Qs

video game

video game

KG - 6th Grade

10 Qs

HTML Quiz

HTML Quiz

KG - University

10 Qs

PRE-TEST: SYSTEM UNIT

PRE-TEST: SYSTEM UNIT

1st - 10th Grade

10 Qs

FutureICTCoders2021

FutureICTCoders2021

1st Grade - University

10 Qs

Akadmeia arduino #1

Akadmeia arduino #1

1st - 3rd Grade

10 Qs

C Programming Coding Assessment

C Programming Coding Assessment

Assessment

Quiz

Computers

1st Grade

Practice Problem

Hard

Created by

Jeyam Jacqueline S

FREE Resource

AI

Enhance your content in a minute

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

13 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What will be the output of the code? #include int main() { int a = 5, b = 10; a = a + b; b = b - a; a = a - b; printf("a = %d, b = %d\n", a, b); return 0; }

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Debug the code #include int main() { int a = 2; switch (a) { case 1: printf("One\n"); case 2: printf("Two\n"); case 3: printf("Three\n"); default: printf("Default\n"); } return 0; }

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What will be the output of the code? #include int main() { int a = 257; char b = a; printf("b = %d\n", b); return 0; }

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Fix the error #include int main() { int x = 10, y = 0; printf("%d", x / y); return 0; }

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

What will be the output of the code? #include int main() { int a = 5, b = 2; int result = a + b * 3; printf("Result = %d\n", result); return 0; }

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Identify the issue with this code and suggest a fix. #include int main() { int i = 1; while (i <= 10); { printf("%d ", i); i++; } return 0; }

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

What will be the output of the code? #include int main() { int x = 5; printf("%d ", x++); printf("%d ", ++x); printf("%d\n", x--); return 0; }

Evaluate responses using AI:

OFF

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?