main function arguments
main arguments
Command-Line arguments
Parameterized arguments
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
Easier to maintain and update.
Greater consistency in design.
More formatting options.
All of the above
PHP 4
PHP 5
PHP 5.3
PHP 6
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
2 bytes
4 bytes
8 bytes
1 byte
-4
-2.8
+2.8
+3
Notepad
Notepad++
Adobe Dreamweaver
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
Input data
The program does not require any function.
Output data
The program must have at least one function.
auto
case
main
default
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
10
20
0
None
2
4
1
Depends on the system
start()
printf()
main()
getch()
Algorithm
Flow-Charts
Procedural
Object Oriented
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
5
0.5
15
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
None of the above
30
32
36
40
Apply styles for the web page
Define structure of the web page
Provide meaning to the sections of the web page
Constants
Keywords
Operators
Tokens
Either True or False
is less than or is more than
is equal or less or more
8
16
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
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.
volatile
true
friend
export
A
B
ADA
C++
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
int
float
include
char
LowerCase letters
UpperCase letters
CamelCase letters
None of these
//
#
/* */
compare two numeric values
combine two numeric values
compare two boolean values
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
Structural
Presentational
Markup
Behavioral
int a = 5;printf("%d", a == 5);
Undefined
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
int number;
float rate;
int variable_count;
int $main;
Easier to maintain and update
Greater consistency in design
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
*
+
++
&&
print()
scanf()
input()
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
Creating Style Sheets
Cascading Style Sheets
Computer Style Sheets
Colorful Style Sheets
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
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
-1
real
double