Showing posts with label May 2018. Show all posts
Showing posts with label May 2018. Show all posts

Wednesday, May 6, 2020

What do you mean by response time

Q.What do you mean by response time? Explain.  (MAY 16 / MAY 18)  5M

[A] Response time: Response times with a GUI systems fairly stable. It not nearly instantaneous web response times can be quite variable and often aggravatingly slow. Line transmission speeds, system loads and page content can have a dramatic importance long response times can upset and frustrate user.
Methodologies adopted by feedback and guidance.
1] Providing proper feedback.
·         Response time
·         Dealing with time delays
·         Blinking for attention
·         Use of sound

2] Guidance and assistance.
·         Preventing errors
·         Problem management
·         Providing guidance and assistance
·         Problem with documentation
·         How users interact with documentation
·         Instruction or prompting
·         Help facility
·         Help facility guidelines
·         Contextual help
·         Help command buttons
·         Status bar message
·         Tool tip
·         Task oriented help
·         Reference help
·         Wizards
·         Hints or tips.

Explain what do you mean by keyboard Accelerators

Q. What do you mean by keyboard accelerators? Explain (DEC 16 / MAY 16/ MAY 19) 5M
Q,Explain what do you mean by keyboard Accelerators? (DEC 17 / MAY 18) 10M
1.      Menus often offer keyboard accelerators, key combinations that have the same effect as selecting the menu item.
2.      This allows more expert users, familiar with the system, to manipulate things with-out moving off the keyboard, which is often faster.
3.      The accelerators are often displayed alongside the menu items so that frequent use makes them familiar.
4.      Unfortunately most systems do not allow you to use the accelerators while the menu is displayed. So, for example. the menu might say
Find        F3                  
5.      However when the user presses function key F3 nothing happens. F3 only works when the menu is not displayed- when the menu is there you must press ‘F’ instead.

Friday, May 1, 2020

What do you mean by device based and screen based control, Explain

Q. Write short note on: Device Based Control (5 M)(MAY 18/MAY 19)
Q. Write short note on: Screen Based Control (5 M) (MAY 18)
Q. What do you mean by device based and screen based control, Explain? (10 M)(DEC 16)
Q. Provide different device based and screen based control for following.   (10 M) (MAY 17)
           (i) Filling up Online Application for Admission to Engineering Course.
          (ii) Online payment of Utility Bills such as Telephone, Electricity and Water charges etc.              
Ans:-

1.Device Based Control:
  • Are nothing but input devices,are the mechanisms through which people communicate their desires to the system.
  • There are two types of Devices:- 
    •  Direct Devices :-operated on the screen itself. e.g. the light pen, the finger, and voice
    • Indirect Devices :-operated in a location other than the screen, most often on the desktop
  • Some Characteristics of  Device-Based Controls:
    • point at an object on the screen.
    • For select the object or identify it as the focus of attention.
    • Drag an object across the screen.
    • Draw something free form on the screen.
    • To track or follow a moving object.
    • To orient or position an object.
    • To enter or manipulate data or information.
  • Trackball:-
    • A spherical object (ball) that rotates freely in all directions in its socket.
    • Direction and speed is tracked and translated into cursor movement.
      • Advantages:-
        • Direct relationship between hand and pointer movement in terms of direction and speed.
        • Does not obscure vision of screen.
        • Does not require additional desk space (if mounted on keyboard).
      • Disadvantages:-
        • No direct relationship exists between hand and pointer movement in terms of distance.
        • Requires a degree of eye-hand coordination.
        • Requires hand to be removed from keyboard keys.
        • Requires different hand movements.
  • Graphic Tablet:-
    • Pressure-, heat-, light-, or light-blockage-sensitive horizontal surfaces that lie on the desktop or keyboard.
    • May be operated with fingers, light pen, or objects like a stylus or pencil.
    • Pointer imitates movements on tablet.
      • Advantages:-
        • Direct relationship between touch movements and pointer movements in terms of direction, distance, and speed.
        • More comfortable horizontal operating plane.
        • Does not obscure vision of screen.
      • Disadvantages:-
        • Movement is indirect, in a plane different from screen.
        • Requires hand to be removed from keyboard.
        • Requires hand to be removed from keyboard keys.
        • Requires different hand movements to use.
        • Requires additional desk space.
2.Screen Based Control:
  • sometimes called widgets,are the elements of a screen that constitute its body.
  • These are the graphic components which we can see on the screen and can interact with them.
  • Screen based controls do can:
    • selection of a particular value.
    • Editing of a particular value.
    • Display a particular piece of text, value,or graphic.
    • Cause an action to be performed.
  • Types:
    • Buttons
      • A square or rectangular-shaped control with a label inside that indicates action to be accomplished
      • Label may consist of text,graphics or both
      • Purpose:- i] To start actions    ii] To change properties
    • Text entry/read-only controls
      • Control is usually rectangular in shape,in which text may be entered or may be displayed for read-only purposes.
    • Selection controls
      • To select a particular values
      • Type:i]Radio buttons    ii]Check boxes
    • Combinations entry/selection controls
      • A control can have characteristics of both a text field and a selection field
      • Here information is either typed or selected and placed in it.
      • Types:- 
                                           i]Spin boxes       
                                          ii]Attached combination boxes 
                                         iii]Drop-down/pop-up combination boxes
  • Others operable controls:
    • Slider
      • A scale exhibiting a range of values.
      • Used in smart phones for setting brightness,volume.In PC for setting screen size, resolution etc.
      • Best example: MX player,VLC player
    • Date picker
      • A drop-down list box that display a 1-month calendar in the drop-down list box.so that month can be changed by pressing command buttons with left-and right pointing arrows
    • Tree
      • A special list box control that displays a set of objects as hierarchical view
    • Scroll Bar
      • A vertical or horizontal bar commonly located on the far right or bottom of window with the help of which we can move the viewing area up,down,left,right.






        Explain seven stages of actions and three levels of processing

        Q.What are the three levels of processing? Explain.(5 M)(DEC 16/MAY 16/MAY 18)
        Q.What are three levels of processing and seven stages of Action? How they are interrelated to each other?(10 M) (MAY 17)
        Q.Explain seven stages of actions and three levels of processing.(10 M) (DEC 18/MAY 19)

        Ans:-Three levels of processing as follows:
        i    Visceral
        ii   Behavioral 
        iii  Reflective
        Fig: Three levels of processing 
        i. Visceral Level:
        •  The most immediate level of processing.
        •  Here the human reacts to audio, visual and other aspects of a product before experience it
        •  It is the most primitive type of mental processing
        •  Quick analysis and response to situations to determine whether there is a threat or an opportunity
        • The look and feel of the product dominates the user in this level
        • Our brain is trained to like and dislike based on our cultural belief and social upbringing
        • Sends appropriate signals to the muscles (the motor system) and alerts the rest of the brain
        • This is the start of effective processing
        • E.g. Kids like Red or dark colors

         ii. Behavioral Level:
        • Behavioral level is the site of most human behavior
        • The emotional brain takes control of the decision making
        • Allows us to analyze a situation, alter behavior
        • Semantics and usability practices are addressed in this level.
        • The behavioral level is the site of most human behavior
        • The behavioral level is common to mammals and both the visceral and behavioral level can receive direct sensory input

        iii. Reflective:
        • Reflective level is the highest level of processing 
        • All experience and its meaning is stored in human brain
        • This level does not have direct access to either sensory input or the control of behavior
        • This level does not have direct access to either sensory input or the control of behavior 
        •  Watch over sensory input and tries to bias the behavioral level.


        Seven stages of actions: The action cycle can be divided into two parts:
                  i.Execution
                  ii.Evaluation
        • Seven stages are as follows:
        1. Forming the goal
        2. Forming the intention
        3. Specifying an action
        4. Executing the action
        5. Perceiving the state of the world
        6. Interpreting the state of the world
        7. Evaluating the outcome

        Fig: Seven stages of action

        Execution part

              1.Forming the goal:
        •  This is what you want.
        •  It implies a goal-oriented design, which is very different from the task-oriented approach
        •  Specifying/forming a goal about something that you want to accomplish
              2.Forming the intention:
        • This is what would satisfy the goal
        • Forming an intention to act
              3.Specifying an action:
        • Selecting an action or a sequence of actions that will lead you to your set goal
        • What do I have to do to achieve the intention?
             4.Executing the action:
        • Execution of the actions
        • Do the steps of the action to achieve the goal


        Evaluation part

               5.Perceiving the state of the world:
        • Using the senses to gather information
        • Perceiving the state of system resulting from the action
             6.Interpreting the state of the world:
        • Interpretation of this perception based on your expectations
        • What has changed?
              7.Evaluating the outcome:
        •  Is the evaluation successful the problem is solved , goal reached and so on
        •  Did I achieve my goal?

        Example:
        1) My goal is going to a cafe across the street
        2) I form the intention of crossing the street to reach the cafe
        3) I select the action to press the button of the crosswalk signal for crossing the street
        4a) I actually do press the button of the crosswalk signal (physical action)
        4b) I do cross the street (physical action)
        5) I perceive that I’m now across the street
        6 ) I interpret this perception and..
        7) …evaluate the outcome – was this action successful in moving closer to my goal? (Y/N)

        What do you mean by persona? Mention steps in constructing persona


        Q.What do you mean by persona? Mention steps in constructing persona (MAY 16 / MAY 17)   10M
        Q.Mention steps in constructing persona (DEC16 /DEC17 /MAY18 ) 5M
        Ans -
        1. A persona is a prototypical user:
          -An imaginary, but very specific, example of a particular type of user.
          -Not “real”, but hypothetical.
        2. A persona is used to role-play through an interface design and check if the design would meet the needs of such a user.
        3. Steps in constructing persona:
          i. Personas can be adopted by various techniques.
          ii. Steps :
          a. Identify user behavioral patterns.
          b. Arrange interview as per user behavior.
          c. Recognize user behavioral patterns.
          d. Generate various user characteristics and relevant goals.
          e. Check for completeness of goals.
          f. Explain all attributes and behavior of user.
          g. Design various persona.

        Three levels of processing

        Q.What are the Three levels of processing? Explain (DEC16/ MAY 16/ MAY 18) 5M
        Q.What are three levels of processing and seven stages of Action? How they are interrelated to each other? (MAY 17) 10M
        Q.Explain seven stages of actions and three levels of processing. (DEC 18 / MAY 19) 10M
        Ans-   

        Introduction
        • The processing can be done in three steps, design is nothing but the effort to develop best user interface to communicate with machines.
        • End user can share experiences by designing models and convert them into prototype for development.
        • Three levels at which we process information available, the seven stages of our actions can be understood in simple way.
        • Every stage will perform action on a particular level.
        • Norman has given overview of such mapping.

         Level 1 :- Visceral level
        • This is initial level of processing available information.
        • In this step of processing human reacts to audio visual actions and other aspects of a product.
        • The external look and touch feel of the product will dominate the user at this visceral level.
        • A human need to decide things are good, bad, safe or dangerous.
        • Human brains is trained to like or dislike things based on their own thinking level.
        • E.g.
          • Boys like blue
          • Girls like pink
          • Kids like Red or dark colors
          • Indians like spicy food, etc.
        • Visceral design often refers to creating best user interface and graphical appearance.
        • The developer can have creative skills of a visual and graphical designs, it creates lot of impact to users.
        • Once this level is approved, we proceed towards actual work.
        • If this level is not designed properly, other levels will need more effort for product acceptance.
        • The user of a product is one of the most critical to decide about product.


        Level 2 : - Behavioral Level
        • The emotional brain is important while making decision.
        • The more detailed level of product description than visceral.
        • It is very difficult to work with complex systems, than working on simple environments.
        • Semantics and usability practices are addressed in this level.
        • It decides the behavior and feedback given by the product.
        • For example , a dialog box with an error message inform user about next step of action.
        • ON and OFF mark on an electrical switch can simply explain its operation.

        Level : - Reflective Level
        • The final level of processing is analysis and reflection of all experiences is done in reflective level.
        • All experience and its meaning is stored in human brain.
        • This level mainly deal with analyzing past user experiences and future requirements to plan for goal.
        • Then based user preferences, we choose a methods to execute plan.

        Three Level overview
        • Human emotions can affect decisions. These levels can be affected by human being.
        • At the visceral level we perform the method.
        • Physical aspects of performing the task can be considered.
        • Human senses of vision, hearing, smell, touch and taste are used to perceive human actions.

        Thursday, April 30, 2020

        What is a Data Race? Why Data Races are undesired? How Data Races can be avoided?

        Q. What is a Data Race? Why Data Races are undesired? How Data Races can be prevented? (DEC 18, MAY 18, DEC 17) 10M
        Q. Write a short note on Data Race. (MAY 19) 10M
        Q. What is a Data Race? (MAY 17) 5M
        Ans- Data race
        A data race is a situation, in which at least two threads access a shared variable at the same time. At least on thread tries to modify the variable.

        Races are typically caused by a human error: failure to follow a locking discipline or overall lack of such. Their exposure depends on non-determinism of the thread scheduler, which can interrupt threads at any time and cause their instructions to be interleaved in unpredictable ways. They can cause unpredictable crashes and data corruption. The worst property of data races is that they are notoriously hard to detect, reproduce, locate, and eliminate, which has earned them the name of Heisenbugs.

        The only way to avoid data races is to synchronize access to all mutable data that is shared between threads. There are several ways to achieve this. In Go, you would normally use a channel or a lock. (Lower-lever mechanisms are available in the sync and sync/atomic packages.)
        The preferred way to handle concurrent data access in Go is to use a channel to pass the actual data from one goroutine to the next. The motto is: “Don’t communicate by sharing memory; share memory by communicating.”

        Write a MPI program to find factorial of given number.

        Q. Write a MPI program to find factorial of given number. (MAY 18) 10M
        Ans- MPI program to find factorial of a given number
        #include <stdio.h>
        #include "mpi.h"

        int main(int argc, char *argv[]){
            int myRank;
            int size;
            int fact;
            int lower,upper;
            int i;
            double local_result = 1.0;
            double total;

            /* initialize MPI */
            MPI_Init(&argc,&argv);
            /* get my rank and the size of the communicator */
            MPI_Comm_rank(MPI_COMM_WORLD, &myRank);
            MPI_Comm_size(MPI_COMM_WORLD, &size);

            /* get the input. (only if i have rank 0) */
            if(myRank==0){
                printf("Enter a number:");
                scanf("%d",&fact);
            }
            /* since only the process with rank 0 has the input,
             * we must pass it to all the other processes. */

            MPI_Bcast(&fact, /* in/out parameter */
                      1,     /* count */
                      MPI_INT, /* datatype */
                      0,       /* root */
                      MPI_COMM_WORLD); /* communicator */

            /* calculate the upper and lower boundaries
             * for each process
             */
            if(myRank==0){
                lower = 1;
            }else
                lower = myRank * (fact / size) + 1;
            if(myRank==(size-1))
                upper = fact;
            else
                upper = (myRank + 1) * (fact / size);

            /* now that we know upper and lower, do the
             * multiplication in our local area
             */
            for(i=lower;i<=upper;i++){
                local_result = local_result * (double)i;
            }

            /* combine all the local results by multiplying them 
             * together
             */
            MPI_Reduce(&local_result, /* operand */
                       &total,        /* result */
                       1,             /* count */
                       MPI_DOUBLE,    /* datatype */
                       MPI_PROD,      /* operator */
                       0,             /* root rank */
                       MPI_COMM_WORLD); /* communicator */

            /* give the output to the user */
            if(myRank==0){
                printf("The factorial of %d is %lf, and was calculated using %d processes\n",fact,total,size);
            }

            /* shut down MPI */
            MPI_Finalize();

            return 0;

        }

        Explain characteristics of good hypothesis? Explain type 1 and type 2 errors? Level of significance? Variables in hypothesis? (MAY 18/ MAY 17) (10 Marks)


        Explain characteristics of good hypothesis? Explain type 1 and type 2 errors? Level of significance? Variables in hypothesis? (MAY 18/ MAY 17) (10 Marks)




        A hypothesis is a tentative statement about the relationship between two or more variables. It is a specific, testable prediction about what you expect to happen in a study. For example, a study designed to look at the relationship between sleep deprivation and test performance might have a hypothesis that states, "This study is designed to assess the hypothesis that sleep-deprived people will perform worse on a test than individuals who are not sleep-deprived."

        Characteristics of good hypothesis
        1    .    Clear, specific and limited in scope
        2    .    Simply stated
        3    .    Consistent with the relevant objectives of research
        4    .    Capable of being tested and related to available techniques
        5    .    States the relationship between variables, if the study is designed for that



        Variables
        1    .    A variable is a characteristic of interest that varies from one item to another and may take any one of a specified set of values or attributes.
        2    .    It can be defined as any characteristic of an individual or a thing under study.
        3    .    In other words, it means some characteristics of each number of the unit that is to be studied such as income, age, test score, land holding, etc.
        4    .    Any item or characteristic which can be observed or measured and whose observation or measurement will be useful for the study can be regarded as a variable for the study.
        5   .    A variable can take on different values for different individuals. Ex:  Heights of individuals:  Student #1: 5’ 5” Student #2: 5’ 7” Student #3:  5’ 2”


             



        Explain in brief Quantum Computers.

        Q. Explain in brief Quantum Computers. (MAY 19, DEC 18, DEC 17) 10M
        Q. Write a short note on Quantum Computers. (MAY 18) 5M
        Ans- A quantum computer is a type of computer that uses quantum mechanics so that it can perform certain kinds of computation more efficiently than a regular computer can. A quantum computer does not use bits to store information. Instead, it uses something called qubits.

        What is a qubit? 
        Today's computers use bits—a stream of electrical or optical pulses representing 1s or 0s. Everything from your tweets and e-mails to your iTunes songs and YouTube videos are essentially long strings of these binary digits.
        Quantum computers, on the other hand, use qubits, which are typically subatomic particles such as electrons or photons. Generating and managing qubits is a scientific and engineering challenge. Some companies, such as IBM, Google, and Rigetti Computing, use superconducting circuits cooled to temperatures colder than deep space. Others, like IonQ, trap individual atoms in electromagnetic fields on a silicon chip in ultra-high-vacuum chambers. In both cases, the goal is to isolate the qubits in a controlled quantum state.
        Qubits have some quirky quantum properties that mean a connected group of them can provide way more processing power than the same number of binary bits. One of those properties is known as superposition and another is called entanglement. 

        What is superposition? 
        Qubits can represent numerous possible combinations of 1 and 0 at the same time. This ability to simultaneously be in multiple states is called superposition. To put qubits into superposition, researchers manipulate them using precision lasers or microwave beams.
        Thanks to this counterintuitive phenomenon, a quantum computer with several qubits in superposition can crunch through a vast number of potential outcomes simultaneously. The final result of a calculation emerges only once the qubits are measured, which immediately causes their quantum state to “collapse” to either 1 or 0. 

        What is entanglement? 
        Researchers can generate pairs of qubits that are “entangled,” which means the two members of a pair exist in a single quantum state. Changing the state of one of the qubits will instantaneously change the state of the other one in a predictable way. This happens even if they are separated by very long distances.
        Nobody really knows quite how or why entanglement works. It even baffled Einstein, who famously described it as “spooky action at a distance.” But it’s key to the power of quantum computers. In a conventional computer, doubling the number of bits doubles its processing power. But thanks to entanglement, adding extra qubits to a quantum machine produces an exponential increase in its number-crunching ability.
        Quantum computers harness entangled qubits in a kind of quantum daisy chain to work their magic. The machines’ ability to speed up calculations using specially designed quantum algorithms is why there’s so much buzz about their potential.
        That’s the good news. The bad news is that quantum machines are way more error-prone than classical computers because of decoherence. 

        What is decoherence? 
        The interaction of qubits with their environment in ways that cause their quantum behavior to decay and ultimately disappear is called decoherence. Their quantum state is extremely fragile. The slightest vibration or change in temperature—disturbances known as “noise” in quantum-speak—can cause them to tumble out of superposition before their job has been properly done. That’s why researchers do their best to protect qubits from the outside world in those supercooled fridges and vacuum chambers.
        But despite their efforts, noise still causes lots of errors to creep into calculations. Smart quantum algorithms can compensate for some of these, and adding more qubits also helps. However, it will likely take thousands of standard qubits to create a single, highly reliable one, known as a “logical” qubit. This will sap a lot of a quantum computer’s computational capacity.
        And there’s the rub: so far, researchers haven’t been able to generate more than 128 standard qubits (see our qubit counter here). So we’re still many years away from getting quantum computers that will be broadly useful.
        That hasn’t dented pioneers’ hopes of being the first to demonstrate “quantum supremacy.”

        What is quantum supremacy?
        It’s the point at which a quantum computer can complete a mathematical calculation that is demonstrably beyond the reach of even the most powerful supercomputer.
        It’s still unclear exactly how many qubits will be needed to achieve this because researchers keep finding new algorithms to boost the performance of classical machines, and supercomputing hardware keeps getting better. But researchers and companies are working hard to claim the title, running tests against some of the world’s most powerful supercomputers.
        There’s plenty of debate in the research world about just how significant achieving this milestone will be. Rather than wait for supremacy to be declared, companies are already starting to experiment with quantum computers made by companies like IBM, Rigetti, and D-Wave, a Canadian firm. Chinese firms like Alibaba are also offering access to quantum machines. Some businesses are buying quantum computers, while others are using ones made available through cloud computing services.