programming languages Online Quiz - 123
Description: programming languages Online Quiz - 123 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
my $txt = ‘I am learning Perl’; $txt =~ /(\w+)$/; print $1;
In perl, a/n -------------- is a special character or a sequence that will define the number of times the previous character or sequence appears.
$input = “abdce”; $output = $input =~ s/abc/123; print $input; print $output
splice(@array,-1)
push (@array, @sublist);
unshift (@array, @sublist);
$input = 'abc'; print --$input;
@array = (1,2,3,4,5) $scalar1, $scalar2 = @array; print “Scalar1 value is $scalar1”; print “Scalar2 value is $scalar2”;
@array= (“one”,”two”,”three”,”four”,”five”); @sublength = (1,2,3); @sub_array = @array[@sublength]; print @sub_array;
$input = “bc999”; print ++$input;
. Shifting left n bits, and right n bits, Where n is some number greater than 0 is equivalent to?
/de{3,}/ matches
@array = (1,2); ($scalar1, $scalar2, $scalar3)=@array; print $scalar1, $scalar2, $scalar3;
Is null string list (“”) equivalent to empty list()
/abc(?=def)/ matches?