Algorithm
Flow-Charts
Procedural
Object Oriented
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
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
_infomax
3infomax
infomax_ica
infomax123
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
What will be the output of the following code segment?
int x = 24, y = 39, z = 45;z = x + y;y = z - y;x = z - y;printf("\n%d %d %d", x, y, z);
24 39 63
39 24 63
24 39 45
39 24 45
What is the output of the following code?
int a = 5;printf("%d", a == 5);
0
1
5
Undefined
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.
int a = 10, b = 5;printf("%d", a / b);
2
0.5
15
3
4
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
//
#
/* */
All of the above
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
What will be the output of the following code?
int x = 5;printf("%d", ++x);
6
7
An Editor
A compiler
An operating system
None of these
System programming language
General purpose language
Data processing language
None of the above
Constants
Keywords
Operators
Tokens
“programming Trick”
“programming"
‘programming'
$ 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
world
addition23
test-name
factorial
Some selectors can lead to cross-browser issues
Cannot request a webpage through CSS
Parent Selector tag is always available
Cannot always assure compatibility with every browser
float
real
int
double
char > int > float
int > char > float
char < int < double
double > char > int
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
Compiler
Interpreter
Assembler
None of These
void
endl
switch
char
Easier to maintain and update
Greater consistency in design
More formatting options.
Depends on the system
final
constant
const
static
CSS
jQuery
JavaScript
PHP
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
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.
LowerCase letters
UpperCase letters
CamelCase letters
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
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
.html
.xml
.php
.ph
< php >
< ? php ?>
?>
32
36
40
Martin Richards
Ken Thompson
Herman Hellorith
auto
case
main
default
&&
| |
!
long double
far double
Decimal
Binary
Octal
Hexadecimal
Spaces
Digits
Underscores
Letters
Style sheets allow content to be optimized for more than one type of device.
CSS can store web applications locally With the help of an offline cache
Using CSS, we can view online website. In cache also ensures faster loading and better overall performance of the website.
All of the above.
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