C PROGRAMMING
Information and Communication Technology (ICT)
EXAM GUIDES
B Programming Language is predecessor to C Programming Language.
C programming language was developed by Dennis Ritchie
C was developed in the year 1972
C is a High-Level programming language
C language is available for which of the following Operating Systems: DOS, Windows, and Unix
# symbols are used to denote a pre-processor statement.
The following are tokens in C: Keywords, Variables, and Constants
-32768 to +32767 is the valid range of numbers for int type of data?
%f is the control character for "a floating-point number".
Semicolon ( ; ) symbol is used as a statement terminator in C?
\n can be used to begin a new line in C?
Character constants should be enclosed between Single quotes.
String constants should be enclosed between Double quotes.
The maximum length of a variable in C is 32
8 bytes is the maximum size of a double variable?
The size of a String variable has no limit.
The operator && is an example for Logical operator.
The equality operator is represented by ==
Multiplication operator ( * ) has the highest precedence following the Math Rule - MDAS
Operators have precedence. Precedence determines which operator is evaluated first.
What will be the output of the expression 11 ^ 5 a XOR Binary Computation which is equal to 14
The operator + in a+=4 means a=a+4
Header files in C contain. Library functions and Header information of C programs
scanf() and printf() functions below are used for single character Input/Output.
Null character is represented by \0
An Ampersand before the name of a variable denotes the Address.
File manipulation functions in C are available in stdio.h header file.
C supports 3 basic looping constructs: For Loop, Do While Loop, While Loop
A statement differs from expression by terminating with a Semicolon ( ; )
What should be the expression return value for a do-while to terminate? 0 (zero)
goto is an unconditional control structure.
Continue statement is use to go to the next iteration in a loop.
?: operator in C is called a ternary operator.
In the C language 'a’ represents a character
auto is a key word used for a storage class.
The number of the relational operators in the C language is Four (>, <, >=, <=)
A compound statement is a group of statements included between a pair of curly braces.
A Link is a compiler.
Pointers are a derived data type that can store the address of other C variables or a memory location.
The maximum number of elements in the array declaration int a [5][8] is 40.
Array subscripts in C always start at 0.
A Structure cannot be read as a single entity.
A type of cast is used to force a value to be a particular variable type.
Operator precedence determines which operator is used first.
If you don’t initialize a static array, what will be the element set to an undetermined value.
gets() is more appropriate for reading in a multi-word string.
The process of translating a source program into machine language is a function of Compiler.
Function arguments can be A structure member, A pointer variable, and A complete structure.
A “switch” statement is used to choose from multiple possibilities which may arise due to
different values of a single variable.
%c is the control character for "a single character".
A function is a subroutine that may include one or more Statements designed to perform a specific
task.
C supports the goto statement to branch unconditionally from one point to another in the program.
What is the answer of: 7%3. In C Programming the percent sign (%) is called modulo that gets
the value of remainders in division operator.
The signed chars have values from -127 to 127.
%d is the control character for "an integer".
The break is used to break out of the case statements.
%f is the control character for "a floating-point number".
It is True that using C language programmers can write their own library functions\.