main() { float me = 1.1; double you = 1.1; if(me==you) printf("I Don't Know C"); else printf("I Know C"); }
I Know C
I Don't Know C
Compilation error
None
output of below Program public static voi main(String[] args) { ArrayList; al=new List();//1 al.add("bima");//2 al.add("hidimba");//3 System.out.println(al.size());//4 }
Runtime Exception
Compilation error at line 1
2
Compilation error at line 2
Compilation error at line 3
Compilation error at line 4
$string = "good food"; $string =~ s/o*/e/;print $string;
geod food
geed food
geed feed
egood food
Which Operator can be used in sort function for sorting array elements numerically?
<>
>
<=>
cmp
Which variable stores the parameters passed to subroutine?
$@
@
@_
$#
To repeat the iteration of loop we will use following statement ?
next
repeat
recall
redo
In perl ,if $variable="10" then what will output of print 'this is $variable'; ?
this is $10
this is $variable
this is
this is 10
How to check version of perl on your machine ?
perl -b
perl -version
perl -c
perl -k
How to remove first element of a array?
unshift
delete
shift
move
what is output of print abs("123abc") ?
0
123
abc
12