C Programming Quiz

C Programming Quiz

Professional Development

•

30 Qs

quiz-placeholder

Similar activities

Basic GIS, RS, Photogrammetry

Basic GIS, RS, Photogrammetry

University - Professional Development

•

25 Qs

fun facts

fun facts

4th Grade - Professional Development

•

25 Qs

UDL, ARCS, Multimedia Learning

UDL, ARCS, Multimedia Learning

University - Professional Development

•

26 Qs

Microsoft Excel Certification Exam

Microsoft Excel Certification Exam

Professional Development

•

25 Qs

Input and Output devices

Input and Output devices

University - Professional Development

•

26 Qs

HTML5

HTML5

12th Grade - Professional Development

•

26 Qs

War Games Film Quiz

War Games Film Quiz

Professional Development

•

26 Qs

Set 1

Set 1

University - Professional Development

•

25 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

•

Computers

•

Professional Development

•

Practice Problem

•

Medium

Created by

JEEVAN KUMAR

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to declare an integer variable in C?

int a;

integer a;

var a;

int a()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid data type in C?

float

double

real

char

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

#include <stdio.h>

int main() {

printf("%d", 5 + 3 * 2);

return 0; }

16

11

8

10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to access the value at the address stored in a pointer?

&

*

->

.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an int data type on a 32-bit system?

2 bytes

4 bytes

8 bytes

Depends on the compiler

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to declare a function in C?

void myFunction() {}

function myFunction() {}

myFunction void() {}

void myFunction {}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the break statement do in a loop?

Terminates the program

Exits the loop immediately

Skips the current iteration

Restarts the loop

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?