亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

深圳易高科技有限公司面試題目

系統 1946 0












RecruitmentQuiz

PaperA






PrepareBy

2GoTradeLtd.

Version:
1.0

6 Jan 2006

Pleasecompletethefollowing
8 questionswithin 2 hours.

Question
1

TheVB
Function,() function ,GetCurrencyCodedemonstratesthetranslationbetweenthecurrencycode and currencynumber.However,theperformanceofthis Functionis() function is not goodenough;thehigherorderof input numbertakesmuchmoretimes to calculate.Pleasesuggestaway to improvetheprogramperformance:

FunctionGetCurrencyCode() Function GetCurrencyCode( ByVal input As String ) As String
If input = " 01 " Then
return = " AFA "
ElseIf input = " 02 " Then
return = " ALL "
ElseIf input = " 03 " Then
return = " DZD "
ElseIf input = " 04 " Then
return = " USD "
ElseIf input = " 05 " Then
return = " HKD "
ElseIf input = " 75 " Then
return = " EUR "
ElseIf input = " 76 " Then
return = " XCD "
ElseIf input = " 77 " Then
return = " AMD "
End If
EndFunction


Answer:
FunctionGetCurrencyCode() Function GetCurrencyCode( ByVal input As String ) As String Select Case input Case " 01 " :
return = " AFA " Case " 02 " :
return = " ALL " Case " 03 " :
return = " DZD " Case " 04 " :
return = " USD " Case " 05 " :
return = " HKD "
Case " 75 " :
return = " EUR "
Case " 76 " :
return = " XCD "
Case " 77 " :
return = " AMD "
Case Else :
return = " unknown " End Select EndFunction



Question
2

Write a Functionthat() function thatreversestheorderofthewords in a string . For instance,your Functionshould() function shouldtransformthe string Do or do not ,there is no try .” To try .No is there not , do or Do ”.Assumethatallwordsare space delimited and treatpunctuationthesame as letters.

Useyourmosthands
- on programminglanguage.

Answer:

JavaScriptVersion:
FunctionReversesOrder() function ReversesOrder()
{
varOldStr
= " Doordonot,thereisnotry. "
varNewStr
= "" ;
varArrayStr
= OldStr.split( " " );

for (vari = ArrayStr.length - 1 ;i >= 0 ;i -- )
{
NewStr
+= ArrayStr[i] + " " ;
}
return NewStr;
}
Question
3

StudythefollowingVBprogram:

Imports System
Imports System.IO
ModuleModule1 Module Module1
Public ArtList As ArrayList
EndModule


Public ClassForm1 Class Form1
Inherits System.Windows.Forms.Form

WindowsFormDesignergeneratedcode #Region "WindowsFormDesignergeneratedcode"

#EndRegion


< [Serializable]() > Public ClassArt Class Art
Public Title As String
Public Des As String
Public Value As Integer
Public Price As Double
Public Picture As String
EndClass


Private SubButton1_Click_1() Sub Button1_Click_1( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myArt As New Object
Dim hashtable As New Collections.Hashtable
Dim key As String

Try
myArt
= New Art
With myArt
.Title
= " Title "
.Des
= " Desc "
.Value
= 123
.Price
= 321.05
End With
key
= myArt.Title & myArt.Des & CStr (myArt.Value) & CStr (myArt.Price)
hashtable.Add(key,myArt)
ArtList.Add(myArt)

Catch ex As Exception ' Thisistheline94’
MsgBox (ex.Message & vbCrLf & ex.StackTrace)
End Try
EndSub

EndClass

Aform
is created on whichabuttoncontrol is placed.WhentheButton1_Click is fired,amessagebox is popup:



What
is theproblem and how to fix it?

Answer:


Question
4

In thefollowingVBprogram,pleasestatesanypotentialproblem(s) and how to correct.

Private SubbtnCalc_Click() Sub btnCalc_Click()
Dim result As Integer
Try
Me .Cursor = Windows.Forms.Cursors.WaitCursor
result
= Convert.ToInt32(txtInput1.Text) / Convert.ToInt32(txtInput2.Text)
txtResult.Text
= result
Me .Cursor = Windows.Forms.Cursors.Default
Catch ex As Exception
MsgBox (ex.StackTrace)
Catch ex As ArgumentNullException
MsgBox ( " InputTestboxcannotbenull. " )
Catch ex As OverflowException
MsgBox ( " InputTestbox2cannotbezero! " )
Catch ex As FormatException
MsgBox ( " InputTestboxshouldbenumericformat! " )
End Try
EndSub


Answer:


Question
5

GetRecordset()
is aVB Functionthat() function thatreturnsaADODB.Recordset object :

Ref_IDQtyPrice
Row
0 00123 1000 60.50
Row
1 00123 2000 60.00
Row
2 00123 3500 59.50
Row
3 00124 3000 60.50
Row
4 00125 2000 59.50
Row
5 00125 1000 58.00

(Thisrecordset
is sortedbyRef_ID)

Thefollowingprogram

Dim rst as ADODB.Recordset
Rst
= GetRecordset
Do While Not rst.EOF
Console.writeline(rst.Fields(
" Ref_ID " ) & vbcrlf & rst.Fields( " Qty " ) & vbcrlf & rst.Fields( " Price " ))
rst.MoveNext()
Loop

Cangeneratethefollowingoutput:

Output:

00123 1000 60.50
00123 2000 60.00
00123 3500 59.50
00124 3000 60.50
00125 2000 59.50
00125 1000 58.00

Pleasesuggesthow
to modifytheaboveprogram to generatethefollowingoutput:

Output:
00123
1000 60.50
2000 60.00
3500 59.50
---- -----
6500 60.00
00124
3000 60.50
---- -----
3000 60.50
00125
2000 59.50
1000 58.00
---- --
分享到:
評論

深圳易高科技有限公司面試題目


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 免费在线视频一区 | 亚洲视频在线观看 | 午夜婷婷 | 青草小视频 | 成熟热自由日本语亚洲人 | 日本一级片在线观看 | 欧美亚洲一区二区三区在线 | 特黄日韩免费一区二区三区 | 亚洲图片欧美日韩 | 日韩成人在线视频 | 一区二区三区不卡免费视频97 | 久久国产色 | 玖玖爱精品 | 大学生一级毛片 | 免费欧美日韩 | 久久婷五月综合 | 天天操天天舔天天射 | 一级毛片高清大全免费观看 | 99热.com| 久久视频免费 | 波多野结衣 一区二区 | 成年女人永久免费观看片 | 亚欧成人一区二区 | 国产成人免费午夜性视频 | 免费精品国产福利片 | 欧美日本另类xxx乱大交 | www神马我不卡影院免费观看 | 国产免费一区二区三区 | 999久久狠狠免费精品 | 日本一本一道久久香蕉免费 | 精品视频在线一区 | 青青福利视频 | 成人免费播放视频777777 | 美女私人影院 | 精品四虎| 神马午夜不卡影院 | 黄色小视频在线免费观看 | 亚洲精品在线免费看 | 婷婷99精品国产97久久综合 | 国产aⅴ精品一区二区三区久久 | 精品无人区乱码1区2区3区在线 |