What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
5
2
0.5
15
immutable
mutable
const
volatile
&
&&
||
!
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
4
8
16
1
print()
scanf()
input()
All of the above
Compiler
Interpreter
Assembler
None of These
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
Algorithm
Flow-Charts
Procedural
Object Oriented
Easier to maintain and update.
Greater consistency in design.
More formatting options.
LowerCase letters
UpperCase letters
CamelCase letters
None of these
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
Notepad
Notepad++
Adobe Dreamweaver
“programming Trick”
“programming"
‘programming'
$ programming $
void
endl
float
switch
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
Either True or False
is less than or is more than
is equal or less or more
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
Personal Hyper Pretext
Pretext Hypertext Processor
Hypertext Preprocessor
Preprocessor Home Page
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);}
0
Error because of incorrect line-1 only.
Error because of incorrect line-1 and line-2.
Error because of incorrect line-2 only.
int x = 5;printf("%d", ++x);
6
7
A
B
ADA
C++
final
constant
static
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
-1
char
int
double
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
30
32
36
40
Logical Operator
Conditional Operator
typecast
Ternary
CSS
jQuery
JavaScript
PHP
Apply styles for the web page
Define structure of the web page
Provide meaning to the sections of the web page
None of the above
Apache
IIS
| |
Easier to maintain and update
Greater consistency in design
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.
-4
-2.8
+2.8
+3
float, double
short int, double, long int
float, double, long double
double, long int, float
Spaces
Digits
Underscores
Letters
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
-5
+5
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
Rich Decorations
Faster download times.
No need to write HTML Tags
long double
far double
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
Undefined
1return
return1
return
$return_1
_infomax
3infomax
infomax_ica
infomax123
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;