4
5
6
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.
final
constant
const
static
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.
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
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
-4
-2.8
+2.8
+3
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
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.
2
1
Depends on the system
Binary operator
Unary operator
Ternary operator
All of the above
Id_No
ID_NO
IdNo
Id No
PHP 4
PHP 5
PHP 5.3
PHP 6
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
0.5
15
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
void
endl
float
switch
float, double
short int, double, long int
float, double, long double
double, long int, float
int
include
char
auto
case
main
default
Input data
The program does not require any function.
Output data
The program must have at least one function.
char > int > float
int > char > float
char < int < double
double > char > int
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
8
int a = 5;printf("%d", a == 5);
CSS
jQuery
JavaScript
PHP
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
A
B
ADA
C++
&&
| |
!
double
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
start()
printf()
main()
getch()
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
no of students
7th
myName
16
“programming Trick”
“programming"
‘programming'
$ programming $
2 bytes
4 bytes
8 bytes
1 byte
//
/
#
/*
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
immutable
mutable
volatile
array
2.5
2.000000
2.500000
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
Notepad
Notepad++
Adobe Dreamweaver
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
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
Compiler
Interpreter
Assembler
None of These
Structural
Presentational
Markup
Behavioral
getchar()
gets()
scanf()
cin.get()
< php >
< ? php ?>
?>