Basics of C

Basics of C

University

15 Qs

quiz-placeholder

Similar activities

E-Commerce

E-Commerce

University - Professional Development

16 Qs

DCN5511: Chapter 5 - 7

DCN5511: Chapter 5 - 7

University

15 Qs

YAY! Fridate with ComSSA (Network 101)

YAY! Fridate with ComSSA (Network 101)

University

20 Qs

Process modeling

Process modeling

University

10 Qs

computer Networks

computer Networks

University

10 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

How the Internet Works

How the Internet Works

4th Grade - University

14 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Basics of C

Basics of C

Assessment

Quiz

Computers

University

Hard

Created by

Santhi Priya B

Used 20+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in C?

A function that returns a value

A type of mathematical equation

A constant value that cannot be changed

Named storage location that can hold a value

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different data types in C?

int, float, double, char, void

string, boolean, array, object, function

integer, decimal, character, void, boolean

int, float, char, double, boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the arithmetic operators in C?

+, -, *, /, %, ^

+, -, *, /, %

+, -, *, /, %, =

+, -, *, /, %, !

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the relational operators in C?

==, !=, >, <, >=, <=

[], {}, (), ., ->

+, -, *, /, %

++, --, !, &&, ||

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the logical operators in C?

EQUALS (==), NOT EQUALS (!=), GREATER THAN (>)

IF-ELSE, SWITCH, FOR

AND (&&), OR (||), and NOT (!)

ADD (+), SUBTRACT (-), MULTIPLY (*)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for do-while loop in C?

do-while (condition);

do-while (condition) {};

do-while [condition];

do-while {condition};

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a header file in C?

To declare the structure of a program

To include function prototypes and macro definitions

To define the main function of a program

To store global variables

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?