Basics of C

Basics of C

University

15 Qs

quiz-placeholder

Similar activities

Arrays

Arrays

University

20 Qs

Plot the Code

Plot the Code

University

10 Qs

Coding Titans

Coding Titans

University

17 Qs

Arrays and pointers quiz

Arrays and pointers quiz

University

20 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

Array in C

Array in C

University

10 Qs

CCE-III Programming in C Language

CCE-III Programming in C Language

University

20 Qs

PLD_Final Quiz TTH

PLD_Final Quiz TTH

University

20 Qs

Basics of C

Basics of C

Assessment

Quiz

Computers

University

Hard

Created by

Santhi Priya B

Used 19+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers