حل اسئلة تفاعلية - قسم الحاسوب - الجامعة المستنصرية نموذج رقم 1

codinglabsolution

 حل اسئلة تفاعلية - قسم الحاسوب - الجامعة المستنصرية نموذج  رقم1

حل اسئلة تفاعلية - قسم الحاسوب - الجامعة المستنصرية نموذج  رقم1



Q1: Choose the correct answer (in each point there is only one correct answer)

(Answer only 15) (15 Marks)

1. There are three parts in HCI: the user, the computer, and the ways they work

together. (the ways they work together represents ---------.)

A. the domain

B. the interaction

C. the tasks

D. the intention

2. A human can be viewed as information processing system. In humans the input

occurs mainly through --------.

A. senses

B. memory

C. environment

D. All of the above.

3. When we find a solution to a math equation by the help of the lectures we

learned during the course, we are actually doing a ---------

A. deductive reasoning

B. reasoning

C. inductive reasoning

D. None of the above

4. There are number of studies which showed indications that long-term memory

possible to be encoded by ------.

A. tenth of a second

B. vibrations movement in the air

C. meaning

D. All of the above

5. The processes that are used manipulate the experience and the known

information about certain activity, are representing--------.

A. scenarios

B. use cases

C. task cases

D. tasks

6. Prototype is used to --------.

A. build the product

B. check the analysis

C. evaluate the design

D. All of the above

7. Comparing to the sight and hearing, the touch system is different, because it is

not localized and the stimuli can be received by --------.

A. information about the environment

B. skin

C. changes in vibrations

D. All of the above

8. If a person is unable to distinguish between red and green, that means she/he is -

-------------.

A. having a problem with the Cones

B. having a problem with the Rods

C. color blind

D. having a problem with the Cornea

9. We can compute regression analysis using----------.

A. calculating eye’s movement.

B. analysing the jerky movement of the eye

C. SPSS

D. Both a and b are true

10. It is possible to consider human as an information processing system, but the

difference is that people are unlike computer, as they can influenced by ---------.

A. five senses

B. memory

C. external factors

D. None of the above

11. How information is received and responses given via a number of input and

output channels?

A. visual channel

B. auditory channel

C. haptic channel

D. All of the above

12. In order to have products with different designs, we should --------.

A. study documentations

B. make interviews, observations and questioners

C. do research on similar products

D. All of the above

13. ----------- is the process by which we use the knowledge we have to draw

conclusions or infer something new about the domain of interest.

A. Reasoning

B. Memory

C. IO channels

D. All of the above

14. Scenarios are stories for -----------.

A. design

B. analysis

C. implementation

D. None of the above

15. Command line are used to _______.

A. whole-word commands

B. function keys

C. Both a and b are true

D. None of the above

16. In the following data set, which number is the mode? 4 5 5 5 6 7 8 8_______

A. 5

B. 5.5

C. 6

D. None of the above


Q2: Write (True) if the statement is correct and (False) if the statement is wrong. (Choose only 10)  (10 Marks)

1. Virtual reality considers an example of indirect interaction. False

2. Studying documentation is good for understanding legislation and getting some

background information on the work. True

3. Being fully aware of the capabilities and all the related aspects of computers and humans

can have an insignificant impact on the process of design. False

4. When designing a new interactive project, the initial set requirements are neglected, and

we start with new requirements at the beginning. False

5. When gathering data for requirements, it is enough to involve one stakeholder even in the

case of large groups. False

6. When I read a book that is quite difficult to understand, my eye movement might not

include a lot of regressions. False

7. During the process of the design validation, we are making sure that the software product

after development meets the requirements. True

8. It is very important to designing interactive computer systems to be effective, efficient,

easy, and enjoyable to use, so that people can enjoy their time and have fun. True

9. Some thinking activities require a vast amount of knowledge from different domains. True

10. In second generation was no interaction between the human-computer. False

11. The task cases are considered as types of task descriptions. True


Q3: Fill in the blanks with suitable words: (Choose only 10) (10 Marks)

1) In order to design systems that are easy to learn, use and to make it entertaining, we

need to apply the concept of --------.

2) We can consider --------------- as the major source of information for human.

3) --------- can be a result from the process of transferring information received in short-

term memory to the long-term memory

4) The ------ is used for color vision.

5) The design of a product can be resulted from the iterative process of design, ---------,

design again.

6) Some views that are used to solve our problems are: -----------, --------- and --------.

7) ---------- may be used for getting initial responses that can then be analysed to choose

people to interview

8) The size of the spectral wavelength of the light is defined as ------------

9) ------ sense tell us vital information about our environment, something hot or cold,

and can therefore act as a warning

10) During the process of interface design --------- is rarely used to its potential, usually

confined to warning sounds and notifications.

11) The research field which studies how computers are developed to achieve successful

interaction, is known as -------.

Sol//

1) usability

2) experience

3) encoding

4) retina

5) design, test

6) deductive, inductive, abductive

7) questionnaires

8) wavelength

9) touch

10) sound

11) Human-Computer Interaction


Q4: Answer only One branch (10 Marks)

A) Does handwriting recognition considered as an input or output activity? What is the main function of handwriting recognition? How it is different from speech recognition? What do you thing the main challenges about these two activities (i.e., handwriting and voice recognition)?

Sol//

Handwriting recognition is primarily considered an input activity. Its main function is to convert handwritten text into digital format that can be processed by a computer. This conversion allows handwritten documents to be edited, stored, and shared electronically.

Handwriting recognition differs from speech recognition in several ways:

- Input modality: Handwriting recognition deals with handwritten text, while speech recognition deals with spoken language.

- Data representation: Handwriting recognition converts handwritten text into digital characters, while speech recognition converts spoken words into text.

- Context: Handwriting recognition is often used in situations where handwriting is the preferred or only means of input, such as writing notes or filling out forms. Speech recognition, on the other hand, is often used in hands-free or voice-controlled interfaces, such as virtual assistants or dictation software.


Some of the main challenges in handwriting recognition include:

1. Variability in handwriting styles: People have different handwriting styles, making it difficult to create algorithms that accurately recognize all variations.

2. Ambiguity: Handwriting can be ambiguous, especially when characters are poorly formed or closely resemble each other.

3. Noise and distortions: Handwriting may be affected by noise, smudging, or other distortions that can make recognition difficult.

B) What are the techniques of data analysis? Explain and give examples.

Sol//

Data analysis involves various techniques to extract meaningful insights and patterns from data. Some common techniques include:

1. Descriptive Analysis: This involves summarizing and describing the main characteristics of a dataset. Techniques such as mean, median, mode, standard deviation, and frequency distributions are used to understand the central tendency, variability, and distribution of the data. For example, calculating the average income of a population or creating a histogram to visualize the distribution of customer ages.

2. Inferential Analysis: This involves making inferences and predictions about a population based on sample data. Techniques such as hypothesis testing, confidence intervals, and regression analysis are used to draw conclusions about relationships and patterns in the data. For example, conducting a t-test to compare the means of two groups or using linear regression to predict sales based on advertising spending.

3. Exploratory Data Analysis (EDA): This involves exploring and visualizing data to understand its structure and uncover relationships between variables. Techniques such as scatter plots, box plots, and heatmaps are used to identify patterns, trends, and outliers in the data. For example, creating a scatter plot to examine the relationship between temperature and ice cream sales.

4. Predictive Modeling: This involves building mathematical models to predict future outcomes or behavior based on historical data. Techniques such as machine learning algorithms, time series analysis, and decision trees are used to develop predictive models that can forecast trends or make recommendations. For example, using a neural network to predict stock prices or using logistic regression to predict customer churn.

5. Prescriptive Analysis: This involves recommending actions or decisions based on data analysis and optimization techniques. Techniques such as optimization algorithms, simulation models, and decision support systems are used to identify the best course of action given various constraints and objectives. For example, using linear programming to optimize production schedules or using a decision tree to recommend personalized marketing strategies.

--------------------------------------------------------------------------------------------------------------------

*** Practical Questions***

--------------------------------------------------------------------------------------------------------------------

Note: Answer Only One Question (15 Marks)

Q1) Design and coding a project in VB such that:

1- Start Button to create an even random number in range 2 to 20.

2- Guess the Number Button to check the user’s guess in only;

8 iterations.

3- Exit Button to end the project.

Sol//



Form1.Designer.VB

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
Partial Class Form1
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()>
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing AndAlso components IsNot Nothing Then
            components.Dispose()
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()>
    Private Sub InitializeComponent()
        Me.btnStart = New System.Windows.Forms.Button()
        Me.btnGuess = New System.Windows.Forms.Button()
        Me.btnExit = New System.Windows.Forms.Button()
        Me.SuspendLayout()
        '
        'btnStart
        '
        Me.btnStart.Location = New System.Drawing.Point(12, 12)
        Me.btnStart.Name = "btnStart"
        Me.btnStart.Size = New System.Drawing.Size(75, 23)
        Me.btnStart.TabIndex = 0
        Me.btnStart.Text = "Start"
        Me.btnStart.UseVisualStyleBackColor = True
        '
        'btnGuess
        '
        Me.btnGuess.Location = New System.Drawing.Point(12, 41)
        Me.btnGuess.Name = "btnGuess"
        Me.btnGuess.Size = New System.Drawing.Size(75, 23)
        Me.btnGuess.TabIndex = 1
        Me.btnGuess.Text = "Guess"
        Me.btnGuess.UseVisualStyleBackColor = True
        '
        'btnExit
        '
        Me.btnExit.Location = New System.Drawing.Point(12, 70)
        Me.btnExit.Name = "btnExit"
        Me.btnExit.Size = New System.Drawing.Size(75, 23)
        Me.btnExit.TabIndex = 2
        Me.btnExit.Text = "Exit"
        Me.btnExit.UseVisualStyleBackColor = True
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(204, 115)
        Me.Controls.Add(Me.btnExit)
        Me.Controls.Add(Me.btnGuess)
        Me.Controls.Add(Me.btnStart)
        Me.Name = "Form1"
        Me.Text = "Guess the Number"
        Me.ResumeLayout(False)

    End Sub

    Friend WithEvents btnStart As Button
    Friend WithEvents btnGuess As Button
    Friend WithEvents btnExit As Button
End Class





































Code for Form1

Public Class Form1

    Dim randomNumber As Integer
    Dim attemptsLeft As Integer = 8

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Randomize()
    End Sub

    Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click
        randomNumber = CInt(Math.Ceiling(Rnd() * 19)) + 2
        MessageBox.Show("A random number between 2 and 20 has been generated.", "Number Generated")
        btnStart.Enabled = False
    End Sub

    Private Sub btnGuess_Click(sender As Object, e As EventArgs) Handles btnGuess.Click
        If attemptsLeft > 0 Then
            Dim guess As Integer
            If Integer.TryParse(InputBox("Enter your guess:", "Guess the Number"), guess) Then
                If guess = randomNumber Then
                    MessageBox.Show("Congratulations! You guessed the correct number.", "Success")
                    ResetGame()
                Else
                    MessageBox.Show($"Incorrect guess! Attempts left: {attemptsLeft - 1}", "Incorrect Guess")
                    attemptsLeft -= 1
                End If
            Else
                MessageBox.Show("Please enter a valid number.", "Invalid Input")
            End If
        Else
            MessageBox.Show($"You have used all your attempts. The correct number was {randomNumber}.", "Game Over")
            ResetGame()
        End If
    End Sub

    Private Sub ResetGame()
        attemptsLeft = 8
        btnStart.Enabled = True
    End Sub

    Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click
        Me.Close()
    End Sub

End Class





































Q2) Design and coding a project in VB such that:

1- Start Button to create two random numbers X, Y in range 0 to 9.

2- Test Your Answer Button to check the user’s test in following

operators:

X+Y, X-Y, X*Y, X/Y, Highest (X, Y), X^Y

3- Exit Button to end the project.

Sol//


Form1.Designer.VB

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
Partial Class Form1
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()>
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()>
    Private Sub InitializeComponent()
        Me.btnStart = New System.Windows.Forms.Button()
        Me.btnTest = New System.Windows.Forms.Button()
        Me.btnExit = New System.Windows.Forms.Button()
        Me.cmbOperator = New System.Windows.Forms.ComboBox()
        Me.SuspendLayout()
        '
        'btnStart
        '
        Me.btnStart.Location = New System.Drawing.Point(12, 12)
        Me.btnStart.Name = "btnStart"
        Me.btnStart.Size = New System.Drawing.Size(75, 23)
        Me.btnStart.TabIndex = 0
        Me.btnStart.Text = "Start"
        Me.btnStart.UseVisualStyleBackColor = True
        '
        'btnTest
        '
        Me.btnTest.Location = New System.Drawing.Point(93, 12)
        Me.btnTest.Name = "btnTest"
        Me.btnTest.Size = New System.Drawing.Size(75, 23)
        Me.btnTest.TabIndex = 1
        Me.btnTest.Text = "Test Your Answer"
        Me.btnTest.UseVisualStyleBackColor = True
        '
        'btnExit
        '
        Me.btnExit.Location = New System.Drawing.Point(174, 12)
        Me.btnExit.Name = "btnExit"
        Me.btnExit.Size = New System.Drawing.Size(75, 23)
        Me.btnExit.TabIndex = 2
        Me.btnExit.Text = "Exit"
        Me.btnExit.UseVisualStyleBackColor = True
        '
        'cmbOperator
        '
        Me.cmbOperator.FormattingEnabled = True
        Me.cmbOperator.Items.AddRange(New Object() {"+", "-", "*", "/", "Highest", "^"})
        Me.cmbOperator.Location = New System.Drawing.Point(255, 14)
        Me.cmbOperator.Name = "cmbOperator"
        Me.cmbOperator.Size = New System.Drawing.Size(121, 21)
        Me.cmbOperator.TabIndex = 3
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(385, 47)
        Me.Controls.Add(Me.cmbOperator)
        Me.Controls.Add(Me.btnExit)
        Me.Controls.Add(Me.btnTest)
        Me.Controls.Add(Me.btnStart)
        Me.Name = "Form1"
        Me.Text = "Form1"
        Me.ResumeLayout(False)

    End Sub

    Friend WithEvents btnStart As Button
    Friend WithEvents btnTest As Button
    Friend WithEvents btnExit As Button
    Friend WithEvents cmbOperator As ComboBox
End Class




































Code for Form1

Public Class Form1
    Dim rnd As New Random()

    Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click
        Dim x As Integer = rnd.Next(0, 10)
        Dim y As Integer = rnd.Next(0, 10)
        MessageBox.Show($"Random numbers generated: X = {x}, Y = {y}", "Random Numbers")
    End Sub

    Private Sub btnTest_Click(sender As Object, e As EventArgs) Handles btnTest.Click
        Dim x As Integer = rnd.Next(0, 10)
        Dim y As Integer = rnd.Next(0, 10)
        Dim result As Double

        Select Case cmbOperator.SelectedItem.ToString()
            Case "+"
                result = x + y
            Case "-"
                result = x - y
            Case "*"
                result = x * y
            Case "/"
                result = x / y
            Case "Highest"
                result = Math.Max(x, y)
            Case "^"
                result = Math.Pow(x, y)
        End Select

        MessageBox.Show($"X = {x}, Y = {y}, Result = {result}", "Test Result")
    End Sub

    Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click
        Me.Close()
    End Sub
End Class








































إرسال تعليق

ملفات تعريف الارتباط
نستخدم ملفات تعريف الارتباط (Cookies) لفهم كيفية استخدامك لموقعنا وتحسين تجربتك في المحتوى والإعلانات. باستمرارك في تصفح الموقع، فإنك توافق على استخدامنا لملفات تعريف الارتباط وفقًا لسياسة الخصوصية لدينا.
أُووبس!
يبدو أن هناك خطأ ما في اتصالك بالإنترنت. يرجى الاتصال بالإنترنت وبدء التصفح مرة أخرى.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.