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

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

系統 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條評論
主站蜘蛛池模板: 99久久免费视频在线观看 | 在线免费看a | 婷婷综合久久中文字幕 | 欧美一区日韩一区中文字幕页 | 欧美精品v欧洲高清 | 国产精品国产精品国产专区不卡 | 亚洲精品久久成人福利 | 91久久老司机福利精品网 | 久久精品国产精品亚洲婷婷 | 成人精品一区二区www | 欧美日韩在线观看视频 | 精品国产品香蕉在线观看75 | 色第一页 | 狠狠88综合久久久久综合网 | 一本色道久久综合狠狠躁 | 欧美一级aa天码毛片 | 日批日韩在线观看 | 九九在线免费观看视频 | 亚洲综合激情六月婷婷在线观看 | 国产99在线 | 草免费视频 | 韩国xxxx色视频在线观看 | 美女久久久久久久久久久 | 久久精品国产一区二区三区肥胖 | 午夜在线社区视频 | 久久久精品2021免费观看 | 在线免费观看亚洲视频 | 欧美日韩不卡码一区二区三区 | 国产精品视频第一区二区三区 | 涩综合 | 视频一区二区三区在线 | 老司机精品久久 | zzijzzij亚洲日本护士 | 日本一级毛片私人影院 | 国产福利在线视频 | 久国产精品久久精品国产四虎 | 日本级毛片免费观看 | 福利午夜在线 | 久久97久久97精品免视看 | 国产护士一级毛片高清 | 久久新 |