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

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

系統 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在线精品一区二区 | 四虎影院永久免费观看 | 99久久精品久久久久久婷婷 | 国产婷婷色一区二区三区 | 久久国产视频在线观看 | aaaaaa国产毛片孕妇版 | 欧美日韩一级片在线观看 | 亚洲视频免费看 | 国产精品免费视频一区 | 一级欧美日韩 | 草久久 | 中文字幕有码在线观看 | 一级毛片视频播放 | 亚洲一区中文字幕在线 | 国产福利视频一区二区三区四区 | 精品国产呦系列在线看 | 综合网伊人 | 成人性一级视频在线观看 | 天天干天天曰 | jizz美女18 | 99热这里只有精品5 99热这里只有精品66 | 国产在线看不卡一区二区 | 亚洲日本一区二区三区高清在线 | 在线播放精品视频 | 4hu四虎最新免费地址 | 免费av一区二区三区 | 黄色国产视频 | 国产精品一区二区在线播放 | 免费精品久久久视频 | 狠狠做深爱婷婷久久一区 | 日本不卡免费高清视频 | 亚洲天堂一区二区三区 | 久久亚洲视频 | 日韩中文字幕在线观看 | 久久91精品牛牛 | 久久九九久精品国产 | 亚洲国产精品a一区二区三区 | 午夜一级毛片免费视频 | avav国产|