immutable
mutable
const
volatile
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
int
float
include
char
What is the output of the following code:
int x = 5;
printf("%d", x++);
4
5
6
Undefined
int num;
integer num;
num int;
num integer;
double
What is the output of the following code?
int a = 5;printf("%d", a == 5);
0
1
&&
| |
!
All of the above
Compiler
Interpreter
Assembler
None of These
Keywords can be used as variable names
Variable names can contain digits
Variable names do not contain blank spaces
Capital letters can be used in variable names.
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
auto
case
main
default
Input data
The program does not require any function.
Output data
The program must have at least one function.
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.
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
Id_No
ID_NO
IdNo
Id No
<
=
>=
<=
10
20
None
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
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
None of the above
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
When the following piece of code is executed, what happens?
b = 3;a = b++;
a contains 3 and b contains 4
a contains 4 and b contains 4
a contains 4 and b contains 3
a contains 3 and b contains 3
long double
far double
2
Depends on the system
-4
-2.8
+2.8
+3
A number
A special symbol other than underscore
Both of the above
An alphabet
float, double
short int, double, long int
float, double, long double
double, long int, float
8
16
compare two numeric values
combine two numeric values
compare two boolean values
int number;
float rate;
int variable_count;
int $main;
int x = 5;printf("%d", ++x);
7
it Compare the variable a and the variable b are same.
The value of b is assigned to variable a but if b changes later, it will not effect the value of variable a.
The value of b is assigned to variable a but if b changes later, it will effect the value of variable a.
The value of variable a is assigned to variable b, and the value of variable b is assigned to variable a.
infomax
info_max
info max
All of these
Decimal
Binary
Octal
Hexadecimal
“programming Trick”
“programming"
‘programming'
$ programming $
-5
+5
*
&
%
#
An Editor
A compiler
An operating system
None of these
print()
scanf()
input()
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
Constants
Keywords
Operators
Tokens
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
To determine which operator evaluated first from left to right.
To determine the level of an operator in a program.
To determine how an expression involving more than one operator is evaluated.
To check the expression is valid or not.
What will be the output of the following program?
int main() { int x=5; printf(“%d %d %d”,x,x<<2,x>>2); }
1 20 5
5 1 20
5 20 1
20 1 5
world
addition23
test-name
factorial
true
friend
export