Week 4 Flashcards

1
Q

How do you manually compute RT?

A

t1 =now();
awaitkey(‘s,l’);
t2 =now(); RT =t2 -t1;
text(“Yourreactiontime was: “+RT);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why can you not show a stimulus for 26ms?

A

becausescreensrefreshat specificrates

–E.g., aboutevery16.7 ms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

await() records the intended and actual presentation time, as well as other times

give four of these event variable e structures

A
● e.intendedTime: the intended waiting time, which is 33 (ms) here
● e.duration: the actual duration of waiting time, which may have been, for example, 34
or 39 (ms)
● e.delta: this is simply e.duration - e.intendedTime, included for convenience 
● e.timestamp: low-resolution time in ms that can be converted into a date and time of day
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can you get RT quicker?

A

e.RT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you know which key is pressed?

A

e.key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the difference between log and store?

A

If you call log(e.RT,”RT”)many times, each time a new line of data is added, The store() function also works in the background, but overwrites its variable in the table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How may store() be useful?

A

store(1,”where”); // store bookmark. You can also use retrieve(“where”) to retrieve the last stored value. This is handy because ‘stored()’ values are available even after the subject has moved away from the experiment half-way through.

Sometimes you need to be absolutely surea piece of data is stored, before you want the script to proceed. Use store_now() for that

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does the increase function work?

A

Increases the valuable of the variable by 1 e.g for assigning subjects to conditions

varsubject_id=increase(“Subject ID”,”script”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the following code do?

b.style(“color”,”grey”);

A

Make the text colour grey

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Why should styles be used sparingly?

A

There are many subtle differences between browsers’ implementation of styles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which style is particularly variable and how do you get around this?

A

font-family is particularly variable (missing fonts will be substituted by others!). Use images of words if you must use a specific font

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you make a large header within text?

A

text(“<h1>Instruction</h1>”);
–Opening bracket is like
–Closing bracket is like

Headers: <h1> to </h1><h6>, e.g.,</h6><h3>Medium-size header</h3>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Give some other HTML tags

A
  • Paragraph: <p>my text</p>
  • Bold text: <b>bold text</b>•Italics: <i>italics</i>
  • Span: <span>does nothing</span>
  • Horizontal line: <hr> (N.B. single tag)
  • List: <ul> <li>item 1</li> <li> </li></ul>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the code

b.style(“opacity”,1);

do?

A

Makes it completely transparent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you change the background colour?

A

main.style(“body-background-color”,”black”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How would you do a wait function for either click?

A
vare, response,
left = addblock(10,80,15,10).button("Yes"),
right = addblock(75,80,15,10).button("No");
waitfor
{
e = left.await('click');
response = "yes";
} or {
e = right.await('click');
response = "no";
}
17
Q

How would you make a button for people to press?

A

var right = addblock(75,80,15,10).button(“No”)

There are more arguments (see book) and you can also style a button:
b.button(“Back”,”navigation”,”backward”,”back_button”).style(“background-color”,”red”,”#back_button”);

18
Q
What do the following functions do?
select
radio
scale 
check
A

–select(dropdown)
–radio(forced choice of one option)
–scale(as radio but horizontal; LikertScale)
–check(boxes)

19
Q

What numbers would range(11) give?

A

0,1,2,3,4,5,6,7,8,9,10

20
Q

How would you combine these on one page?

A

Using startform(); and endform();

21
Q

Given this line of code

e = await(“click”);

what is the use of the e.timestamp property?

A

For returning a relatively low-resolution time in ms that can be converted into a date and time of day.