<
=
>=
<=
start()
printf()
main()
getch()
Constants
Keywords
Operators
Tokens
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
Both can occur multiple times, but a declaration must occur first.
A definition occurs once, but a declaration may occur many times.
Both can occur multiple times, but a definition must occur first.
A declaration occurs once, but a definition may occur many times.
2 bytes
4 bytes
8 bytes
1 byte
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
It returns the size of the variable in bits
It returns the size of the variable in bytes
It returns the size of the variable in kilobytes
It returns the number of elements in an array
4
8
16
1
2
Depends on the system
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
Algorithm
Flow-Charts
Procedural
Object Oriented
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
infomax
info_max
info max
All of these
“programming Trick”
“programming"
‘programming'
$ programming $
1return
return1
return
$return_1
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
System programming language
General purpose language
Data processing language
None of the above
scanf()
getche()
gets()
What will be output if you compile and execute the following ‘C’ code?
void main(){int i=4,x;x=++i + ++i + ++i;printf("%d",x);}
21
18
19
Compilation error
3
float
real
int
double
Input data
The program does not require any function.
Output data
The program must have at least one function.
Compiler
Interpreter
Assembler
None of These
Find the output of following code :
int main() { int i=-2; printf (“-i=%d”,-i); return b; }
–i=2
i=-2
–i=-2
–i=+2
Either True or False
is less than or is more than
is equal or less or more
All of the above
-1
0
They can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(like goto, static)
Variable names cannot start with a digit
Variable can be of any length
-5
+5
put together the file and functions that are required by the program
translate the instructions into a form suitable for execution by the program
load the executable code into the memory and execute them
allow the user to type the program
5
6
Undefined
What will be the output of the following code?
int main(){int x,y,z;x='1'-'0'; /* line-1 */y='a'-'b'; /* line-2 */z=x+y;printf("%d",z);}
Error because of incorrect line-1 only.
Error because of incorrect line-1 and line-2.
Error because of incorrect line-2 only.
final
constant
const
static
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
What is the output of the following code?
int a = 5;printf("%d", a == 5);
immutable
mutable
volatile
An Editor
A compiler
An operating system
10
20
None
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
&&
| |
!
What is the output of the following code:
int x = 5;
printf("%d", x++);
They execute programs faster than compilers
They translate the entire program at once
They translate and execute code line by line
They are not used in modern programming
It is used to define global variables
It is used to define a macro
It is used to include standard or user-defined header files in the program
It is used to include comments in the code
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
getchar()
cin.get()
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
&
||