C programming test

Create an engaging and colorful illustration related to C programming, featuring symbols like code snippets, a computer, and mathematical symbols against a tech-themed background.

C Programming Mastery Quiz

Test your knowledge of C programming with our comprehensive quiz designed for programmers at all levels. This quiz covers essential topics ranging from data types to operators, macros, and more.

Prepare to challenge yourself and improve your coding skills with questions that will make you think! Here’s what you can expect:

  • 56 engaging questions
  • Multiple choice format
  • Instant scoring and feedback
56 Questions14 MinutesCreated by CodingKnight754
Which operator is used to continue the definition of macro in the next line?
#
##
$
\
Which of the following operator can be used to access value at address stored in a pointer variable?
*
#
&&
@
Is it possible to run program without main() function?
YES
NO
How many main() function we can have in our project?
1
2
No Limit
5
What is sizeof() in C?
Operator
None of these
Macro
Function
Is it true that a function may have several declaration, but only one definition.
True
False
Which of the following is not a programming language?
C
C++
Java
XML
Which of the following is not a loop?
For
While
If...then..else
Do..while
What kind of representation is a flowchart?
Graphical
Digital
Which of the following programming languages does not use data types?
C Language
Java
C++
B Language
Which of the following is an intermediate code?
Binary code
Sours code
Machine Code
Object Code
What is the extension for an executable file?
.c
.cpp
.exe
.obj
The link section provides information about _______________ to the compiler.
Built in library functions
User defined data variables
Global variables
User defined functions
Which of the following is wrong in context of C?
Functional language
Structured language
Object oriented language
Case sensitive
What kind of data does the character set contain?
Digits
Alphabets
White spaces
All of the above
Which of the following is not a token?
Keywords
Comments
Strings
Operators
How many keywords does the ANSI C support?
32
16
32
8
Which of the following is not an identifier?
Alphabets
Digits
Whitespaces
Underscore
Which of the following are used for comments?
\ and -
? and ^
# and $
// and /* ,*/
Which of the following is a user-defined data type?
Typedef int Boolean;
Typedef enum{Mon, Tue, Thu}
Struct{char name[10], int age}
All of the above
What is the size of an int data type?
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
What is short int?
Basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the above
Which of the following is not a reserved keyword for C?
Auto
Case
Default
Main
For which of the following data types is the format specifier '%i' used?
Char
Signed int
Float
Double
A variable of C cannot start with ____________________ .
A number
A special symbol other than underscore
Both A & B
An alphabet
Which of the following functions should be there in all C programs?
Start()
System()
Main()
Printf()
Which of the following statements is false?
Constant variables need not be defined as they are declared and can be defined later
Global constant variables are initialised to zero
 const keyword is used to define constant values
You cannot reassign a value to a constant variable
Which of the following functions is not a part of stdio.h header file?
Printf();
Fopen();
Scanf();
Strrev();
What is the correct format for including a header file?
#include
#include(file_name)
//include
#include"file_name";
Scanf() is a/an __________________ .
Unformatted input function
Formatted input function
Unformatted output function
Formatted output function
Select the odd one out.
Putchar();
Putch();
Gets();
Scanf();
Which of the following is not an escape sequence character?
\n
\t
\d
\f
Which of the following symbols is used as a new line character?
\L
\N
\n
\t
Which of the following functions is a format specific (formatted I/O) function?
Puts();
Scanf();
Gets();
Getchar();
Which of the following functions leaves the echo of the pressed character?
Getch();
Putchar();
Putch();
Getche();
Which of the following is not an arithmetic operation?
A*=10
A/=10
A!=10
A%=10
Which of the following data types will throw an error on modulus operation?
Char
Short
Int
Float
Which operators perform operations on data at binary level?
Logical operator
Bitwise operator
Additional operators
Relational operators
The operator '&' is used for _________________.
Bitwise AND
Bitwise OR
Logical AND
Logical OR
Are logical operators sequence points?
TRUE
FALSE
Depends on the compiler
Depends on the standard
In the expression: i=g()+f(), the first function that will be called is determined by _____________________ .
Compiler
Associativity of () operator
Precedence of () and + operator
Left to right of the expression
Associativity of an operator is _____________________.
Right to left
Left to right
Decided by the compiler
Precedence of the variable
Which of the following operators has the lowest precedence?
!=
&&
?:
,
What is the correct expression for an if-else statement?
If (condition) { statement} else { statement }
If (condition); { statement} else { statement }
If (condition) { statement} else { statement };
If (condition) { statement}; else { statement };
Which of the following is not a keyword used for decision making in conditional programming?
If
Else
Else if
For
Which of the following keywords is used to terminate a switch case?
Default
Break
End
Jump
The indexes of an array begin from __________ .
0
1
As defined by the user
Undefined
{"name":"C programming test", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of C programming with our comprehensive quiz designed for programmers at all levels. This quiz covers essential topics ranging from data types to operators, macros, and more.Prepare to challenge yourself and improve your coding skills with questions that will make you think! Here’s what you can expect:56 engaging questionsMultiple choice formatInstant scoring and feedback","img":"https:/images/course1.png"}
Powered by: Quiz Maker