Search Header Logo

Basics of C

Authored by Santhi Priya B

Computers

University

Used 20+ times

Basics of C
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?