某公司面試題及答案
藍色局部爲我的'作答
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篇
在平平淡淡的學習、工作、生活中,我們很多時候都不得不用到自我評價,自我評價不僅影響社會中人與人的交往方式,而且影響社會中人的心理健康程度,影響人的價值觀和人生觀的合理程度。相信許多人會覺得自我評價很難寫吧,下面是小編整理的面試的自我評價,僅供參考,大家一...
-
外企面試的七個禁忌
一忌遲到失約。遲到和失約是面試中的大忌。這不但會表現出求職者沒有時間觀念和責任感,更會令面試官覺得求職者對這份工作沒有熱忱,印象分自然大減。守時不但是美德,更是面試時必須做到的事。因此,應提前10至15分鐘或準時到達。如因有要事遲到或缺席,一定要儘早打電...
-
面試簡歷自我評價集錦15篇
時間過得真快,總在不經意間流逝,又到了求職找工作的時候,此時是不是該好好寫寫簡歷呢?千萬不能認爲簡歷隨便應付就可以喔,以下是小編爲大家整理的面試簡歷自我評價,僅供參考,希望能夠幫助到大家。面試簡歷自我評價1本人自學能力很強,在校自學了很多計算機知識,能熟練組...
-
面試需注意哪些禮儀
面試需注意哪些禮儀1(1)進門時要表現得自然,不要緊張或慌張;(2)面試時要始終面帶笑容,謙恭和氣。表現出熱情、開朗、大方、樂觀的精神狀態;(3)不要無緣無故皺眉頭或毫無表情;(4)不要直盯對方,也不要以眼瞟人、漫不經心,眼光宜落在主考人的鼻子上爲佳,這樣既保持了接觸...