
Basics of C

Quiz
•
Computers
•
University
•
Hard

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
Similar Resources on Wayground
10 questions
Array in C

Quiz
•
University
10 questions
Quiz 8: Arrays&Vector

Quiz
•
University
20 questions
CCE-III Programming in C Language

Quiz
•
University
15 questions
BASIC C PROGRAMMING QUIZ

Quiz
•
University
13 questions
Array of Structure

Quiz
•
University
17 questions
Coding Titans

Quiz
•
University
20 questions
Quiz 1_DSA

Quiz
•
University
15 questions
Bootcamp Day 3 - Java Array

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade