Softwareknowlege Exam

2
Name ____________________________________________________________ _____ Date________________________________________________________ ___________ Software Exam 1. What is the equivalent hex value for 11010111 and 11110110 2. An eeprom cell has the following data 10X1011X and the test sotware saves it in a parameter A. 'X' means, that you don´t know the value of that bit . Change its value with on line of code ( using AND and OR functions ) to get 10110110. Please show the operations in the binary number system. 3. What is the MSB, LSB high nibble and low nibble of &HA3 4. Compare the two data types Bytes in memory Integer Word Min Value range Max Value range 5. Why does &H8000 in some programming languages results in a negative number 6. See the code example below and calculate the values after the procedure call Private Sub command1_click() Dim Result1 as Integer Dim Result2 as Integer Dim Start1 as Integer Dim Start2 as Integer Start1=3 Start2=2 Result1=0 Result2=0 Calc1 Start1, Result1 Calc2 Start2, Result2 End Sub Sub Calc1 (ByVal A as Integer, ByRef B as Integer) A=A*4 B=A/2 End Sub Sub Calc2 (ByRef C as Integer, ByVal D as Integer) C=C*4 D=D/2 End Sub

description

examen de pruebas funcionales

Transcript of Softwareknowlege Exam

Page 1: Softwareknowlege Exam

Name _________________________________________________________________Date___________________________________________________________________

Software Exam1. What is the equivalent hex value for 11010111 and 11110110

2. An eeprom cell has the following data 10X1011X and the test sotware saves it in a parameter A. 'X' means, that you don´t know the value of that bit . Change its value with on line of code ( using AND and OR functions ) to get 10110110. Please show the operations in the binary number system.

3. What is the MSB, LSB high nibble and low nibble of &HA34. Compare the two data types

Bytes in memory Integer WordMin Value rangeMax Value range

5. Why does &H8000 in some programming languages results in a negative number 6. See the code example below and calculate the values after the procedure call

Private Sub command1_click()Dim Result1 as Integer Dim Result2 as IntegerDim Start1 as IntegerDim Start2 as Integer

Start1=3Start2=2Result1=0Result2=0Calc1 Start1, Result1Calc2 Start2, Result2End Sub

Sub Calc1 (ByVal A as Integer, ByRef B as Integer)A=A*4B=A/2End Sub

Sub Calc2 (ByRef C as Integer, ByVal D as Integer)C=C*4D=D/2End Sub

7. Describe the reason for the result in Question 68. what is the major difference between a while (condition) ….wend and Do…Loop until(condition)9. What is a BCD number?, What is Decimal value of BCD 13?