A "C" Event-the backbone of modern coding.

Quiz
•
Computers
•
University
•
Medium
haritha Surisetti
Used 3+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between "int" and "float" data types in C?
"int" is used for integer numbers, while "float" is used for real numbers with decimal points.
"int" is used for text, while "float" is used for numeric data.
"int" is used for single-precision floating-point numbers, while "float" is used for double-precision floating-point numbers.
There is no difference; "int" and "float" are equivalent.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the "break" statement in a loop in C?
To exit the program
To skip the next iteration of the loop
To end the loop completely and continue with the next statement after the loop
To jump to a specific label within the loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, what is the purpose of the "include" directive?
To include external libraries
To declare variables
To define data types
To comment out code
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an infinite loop in C?
for (int i = 0; i < 10; i++)
while (1)
do { /* code / } while (0)
if (condition) { / code */ }
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the "if" statement in C?
To declare variables
To perform conditional execution
To loop through a block of code
To define a new function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the scope of a variable declared inside a function in C?
Global scope
Local scope
Static scope
Constant scope
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of the "int main" function in C?
void
int
char
float
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Quiz #1

Quiz
•
University
20 questions
C Programming Upto Loops

Quiz
•
University
20 questions
C Programming Unit-1 Test-2

Quiz
•
University
15 questions
Array Java

Quiz
•
University
21 questions
Introduction to CS

Quiz
•
7th Grade - University
20 questions
ROUND 1 QUIZ FOR 1ST YEAR

Quiz
•
University
12 questions
Array

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University