FPC

What is the purpose of the #include directive in C programming?
It defines a new function.
B) It includes a library for use in the program.
It declares a variable.
It comments out code.
Which of the following data types is used to store whole numbers in C?
float
Char
Int
Double
In C, how do you declare a variable of type int with the name num?
Int = num;
Int num;
Variable int num;
Num = int;
What is the correct syntax for a single-line comment in C?
/* This is a comment */
// This is a comment
# This is a comment
!-- This is a comment --
What does the %d format specifier in printf indicate?
Double
String
Integer
Character
Which operator is used to access the address of a variable in C?
*
&
@
#
Which of the following is not a valid C data type?
Int
String
Float
Char
What is the purpose of the scanf function in C?
Printing text on the screen.
Reading input from the user.
Declaring a new variable.
Looping through a block of code.
What is the purpose of the break statement in a loop?
It ends the program.
It skips the current iteration of the loop.
It continues to the next iteration of the loop.
It exits the loop prematurely.
Which symbol is used for single-line comments in C?
//
/*
#
--
{"name":"FPC", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"What is the purpose of the #include directive in C programming?, Which of the following data types is used to store whole numbers in C?, In C, how do you declare a variable of type int with the name num?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker