C Programming Coding Assessment

C Programming Coding Assessment

1st Grade

13 Qs

quiz-placeholder

Similar activities

KOMJAR SEASON 3 PART 1

KOMJAR SEASON 3 PART 1

1st - 3rd Grade

15 Qs

Fundamentals Of Computer

Fundamentals Of Computer

1st - 6th Grade

10 Qs

TEPOO

TEPOO

1st Grade

12 Qs

KUIZ PYTHON

KUIZ PYTHON

1st - 5th Grade

15 Qs

Học C++ thật dễ

Học C++ thật dễ

1st - 3rd Grade

10 Qs

TỔNG HỢP PHẦN CỨNG MÁY TÍNH (LỚP 3.5)

TỔNG HỢP PHẦN CỨNG MÁY TÍNH (LỚP 3.5)

1st - 12th Grade

10 Qs

Introduction to Windows 7

Introduction to Windows 7

KG - 2nd Grade

15 Qs

Pemrograman Android KD 3.28/4.28

Pemrograman Android KD 3.28/4.28

1st Grade - Professional Development

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?