double
float
char
array
void
endl
switch
A
B
ADA
C++
Either True or False
is less than or is more than
is equal or less or more
All of the above
What is the output of the following code?
main(){ int a, b; a=b=4; b=a++; printf("%d %d %d %d", a++, --b, ++a, b--);}
5 3 7 3
Syntax error
5 4 5 3
6 2 6 4
Logical Operator
Conditional Operator
typecast
Ternary
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
print("Hello World");
echo("Hello World");
printf("Hello World");
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.
System programming language
General purpose language
Data processing language
None of the above
Input data
The program does not require any function.
Output data
The program must have at least one function.
_infomax
3infomax
infomax_ica
infomax123
2
4
1
Depends on the system
immutable
mutable
const
volatile
1return
return1
return
$return_1
int
“programming Trick”
“programming"
‘programming'
$ programming $
&
&&
||
!
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
3
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
What will be the output of the following code?
int x = 5;printf("%d", ++x);
5
6
7
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
8
16
//
/
#
/*
-1
0
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
no of students
7th
myName
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.
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
true
friend
export
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
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
include
real
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
-5
+5
What will be output if you will compile and execute the following c code?
int main(){ int a=5; float b; printf("%d",sizeof(++a+b)); printf(" %d",a); return 0;}
2 6
4 6
2 5
4 5
Decimal
Binary
Octal
Hexadecimal
final
constant
static
A number
A special symbol other than underscore
Both of the above
An alphabet
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
10
20
None
int number;
float rate;
int variable_count;
int $main;
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
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
Algorithm
Flow-Charts
Procedural
Object Oriented
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith