某公司面試題及答案
藍色區域性為我的'作答
Software Configuration Management Question
perl
Basic
1. Which statement is wrong:
A. $_= hello world;
B. $a=hello world;
C. my $b,$a=hello world;
D. my ($a,$b)=(0,hello world);
Item C: $b is empty and $a is ‘hello world’
All of items is correct in program syntax, and can run.
2. The expression should be (B), then the following code can run correctly:
$a=0;$b=55;
while (expression)
{
$a+=2;
}
print "$a/n";
A. $a = $b
B. $a*$a <= $b
C. $a != $b
D. $b == 0
3. @array is an array variable, what is output of “print @array;” :A
A. Each element of this array
B. The size of this array
C. The first element of this array
D. Nothing
4. “$a = @array;”, what is value of $a: B
A. The first element’s value of this array
B. The size of this array
C. This line code is wrong
D. N/A
5. Which code snippet can print all elements in cd: B
A. foreach $Var (keys cd)
{
print “$Var /n”;
}
B. for ($I=0;$I
{
print “$cd{$I} /n”;
}
C. while ($Var (keys cd))
{
print “$Var /n”;
}
D. print join(‘/n’,cd);
STYLE="pAGe-BreAK-BeFore: always" CLEAR="all"
Advance:
6. After execute following code snippet, what is value of $count: B (match twice)
$Str=’hello !’;
$count=0;
while ($Str=~m/(/w+)/g)
{
$count++;
}
A. 1
B. 2
C. 3
D. 12
7. What is the result of $string? D
$string = "This string contains the number 25.11.";
$string =~ /-?(/d+)/.?(/d+)/;
A. 25.
B. .11
C. 25.11
D. 25.11.
I don’t know what is meaning of -, but perhaps the answer is D
8. What is meaning of following code snippet?
open(MYFILE,"");
while () {
while ( /(/w)/g ) {
$seen{$1}++;
}
}
foreach $word(keys %seen)
{
print "$seen{$word} $word/n";
}
close(MYFILE);
A. Delete all words in
B. Calculate the frequency of each word in
C. Wrong code
D. Calculate the sum of words in
$1 is first variable of group match of perl, it match a char here.
9. In following code,expression#1 D let $point get the reference of @ARGV, expression#1 should be:
#!/usr/contrib/bin/perl -w
expression#1
print "ARGV = ", join(",", expression#2), "/n";
A. my $point=@ARGV;
B. my $point={@ARGV};
C. my $point=ARGV;
D. my $point=/@ARGV;
10. The expression#2 A should be:
A. @$point
B. $point
C. @point
D. /@point
NOTE: Answer ofquestion 5 shoud be A
ht = height; h = width; } public synchronized Dimension getValues(){ // Ooops! Breaks encapsulation return d; } }
如何發生獲勝的QA群體(How to build a successful QA team).
爽利外包的14條分寸
-
面試簡歷自我評價集錦15篇
時間過得真快,總在不經意間流逝,又到了求職找工作的時候,此時是不是該好好寫寫簡歷呢?千萬不能認為簡歷隨便應付就可以喔,以下是小編為大家整理的面試簡歷自我評價,僅供參考,希望能夠幫助到大家。面試簡歷自我評價1本人自學能力很強,在校自學了很多計算機知識,能熟練組...
-
行政面試自我評價
在平凡的學習、工作、生活中,許多人都需要寫自我評價,自我評價是個人對自己的思想、動機、行為和個性的評價。相信寫自我評價是一個讓許多人都頭痛的問題,以下是小編為大家收集的行政面試自我評價,僅供參考,歡迎大家閱讀。行政面試自我評價11.普通話標準,表達邏輯流...
-
面試自我評價集合14篇
在日常的學習、工作、生活中,我們最熟悉的就是自我評價了,自我評價往往折射出個人對人生自我價值和社會價值的認識和態度。如何寫自我評價才合適呢?下面是小編為大家整理的面試自我評價,僅供參考,希望能夠幫助到大家。面試自我評價篇1三年的鍛鍊,給我僅是初步的經驗...
-
面試的通知書(集合15篇)
隨著社會一步步向前發展,我們都不可避免地要接觸到通知,通知是一種下行性常用公文,其使用不受機關級別的限制,可用於釋出規章、轉發公度文,佈置工作、傳達事項等。你知道通知怎樣才能寫的好嗎?以下是小編精心整理的面試的通知書,供大家參考借鑑,希望可以幫助到有需要的...