Input data
The program does not require any function.
Output data
The program must have at least one function.
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
//
/
#
/*
What will be the output of the following code?
int x = 5;printf("%d", ++x);
4
5
6
7
int num;
integer num;
num int;
num integer;
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.
float
double
long double
far double
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
getchar()
gets()
scanf()
cin.get()
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
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.
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
&&
| |
!
All of the above
A number
A special symbol other than underscore
Both of the above
An alphabet
Compiler
Interpreter
Assembler
None of These
2.5
2
2.000000
2.500000
Constants
Keywords
Operators
Tokens
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 will be the output of the following pseudo code ?
Integer aSet a =4do print a + 2 a = a-1while (a not equals 0)end while
6 6 6 6
6 5 4 3
6 7 8 9
6 8 10 12
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
-5
1
0
+5
“programming Trick”
“programming"
‘programming'
$ programming $
1return
return1
return
$return_1
char
int
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
signed short
unsigned short
long
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
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.
What is the output of the following code?
int a = 5;printf("%d", a == 5);
Undefined
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
compare two numeric values
combine two numeric values
compare two boolean values
None of the above
Logical Operator
Conditional Operator
typecast
Ternary
world
addition23
test-name
factorial
Binary operator
Unary operator
Ternary operator
auto
case
main
default
int a = 10, b = 5;printf("%d", a / b);
0.5
15
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
LowerCase letters
UpperCase letters
CamelCase letters
None of these
*
&
%
-4
-2.8
+2.8
+3
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
-1
no of students
7th
myName
||
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
volatile
true
friend
export
immutable
mutable
const