C Coding Contest

C Coding Contest

University

20 Qs

quiz-placeholder

Similar activities

Django-quiz

Django-quiz

5th Grade - University

20 Qs

MIDTERM EXAM - IT APP

MIDTERM EXAM - IT APP

University

17 Qs

Evaluasi Pertemuan 12 DRPL TI-3B

Evaluasi Pertemuan 12 DRPL TI-3B

University

15 Qs

DreamWeaver CS6

DreamWeaver CS6

University

20 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Berpikir Komputasi - Assessment 1

Berpikir Komputasi - Assessment 1

University

20 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Multimedia Video & Animation

Multimedia Video & Animation

University

20 Qs

C Coding Contest

C Coding Contest

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

D. ECE

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

 What is the correct way to declare a variable in C?

'variable x;'

'int x;'

'x = int;'

'declare x as int;'

2.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Rank the following arithmetic operators in terms of their precedence (highest to lowest).

%, +, -, *, /

+, -, %, *, /

%, +, /, *, –

%, *, /, +, –

3.

MULTIPLE CHOICE QUESTION

20 sec • 3 pts

Among the following, which data type will throw an error during the modulus operation(%).

float

int

char

short

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the `printf` function in C?

Reading input

Writingoutput

Performing arithmetic operations

Declaring variables

5.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

How do you comment out multiple lines in C?

'// Comment'

'/* Comment */'

'# Comment #'

'/ Comment /'

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code?

  int x = 5;

printf("%d", x++);

5

6

7

4

7.

MULTIPLE CHOICE QUESTION

20 sec • 3 pts

In C, what is the correct way to dynamically allocate memory for an integer variable?

'malloc(sizeof(int));'

'new int;'

'allocate(int);'

'memory(int);'

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?

Discover more resources for Computers