stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Chp8 Flashcards | StudBud
Explore
/
Chp8
Chp8
40 terms
·
StudBud Administration
·
22 plays
Imported from external platform
Flashcards
40 cards
F
Practice quiz
P
Host live
L
Questions
40
Answers
1
What is the representativeness heuristic?
Using formal logic to decide
Guessing based on memory
Judging based on perceived similarity
Solving by trial and error
2
People reason better with what type of data?
Formulas
Ratios
Frequencies
Percentages
3
What is the effect of bad names on bugs according to Butler’s study?
They are associated with more bugs
They improve syntax detection
They reduce memory usage
They improve comprehension
4
Which three concepts are core to natural selection?
Memory, reasoning, and learning
Heredity, environment, and mutation
Variation, inheritance, and selection
Evolution, adaptation, and survival
5
Gigerenzer and Hug found people perform better on logic tasks when:
Instructions are repeated
Cheating is involved
Time limits are removed
Symbols are used
6
Feitelson’s model suggests adding prepositions in variable names to:
Add flair
Make names sound natural
Improve performance
Reduce bugs
7
What does Feitelson's term "name molds" refer to?
Identifiers with prefixes
Common patterns in variable names
Tools for renaming code
Memory chunks
8
What is one of Simon Butler’s syntactic naming rules?
Start all variable names with numbers
Use only capital letters
Use as few characters as possible
Avoid leading or trailing underscores
9
According to Lawrie’s study, modern code uses more:
Hungarian notation
Abbreviations
Single-letter variables
Dictionary words
10
Robin Dunbar linked language evolution to what behavior in primates?
Tool use
Hunting
Vocal mimicry
Grooming
11
Which of the following letters is most strongly associated with a string?
i
s
n
a
12
What type of input does an evolved psychological mechanism process?
Random environmental noise
A narrow band of information
Only verbal input
All available sensory data
13
What percentage of characters in Eclipse's codebase are devoted to identifiers?
33%
72%
90%
50%
14
In Lawrie’s study, what made variable names easier to understand?
Use of abbreviations
Use of code comments
Single letters only
Use of full words
15
What does the gambler’s fallacy involve?
Using statistics to predict correctly
Fear of gambling
Belief that past outcomes influence future independent events
Thinking all events are equally likely
16
According to cognitive science, why are consistent naming styles helpful?
They look more professional
They support chunking
They compile faster
They reduce bugs
17
What kind of mathematical relationship explains memory recall based on frequency?
Quadratic model
Exponential decay
Linear equation
Power function
18
Which naming style led to higher comprehension in Binkley’s study?
Kebab case
Snake case
Camel case
Uppercase
19
What term refers to variable names serving as clues for understanding code?
Flags
Markers
Beacons
Signals
20
What does the abbreviation STM stand for in the context of the brain?
Systematic term memory
Short-term memory
Structured token memory
Standard tracking memory
21
The Linda problem demonstrates which fallacy?
Gambler’s fallacy
Conjunction fallacy
Base-rate neglect
Frequency bias
22
The Swiss Army knife metaphor describes the mind as:
A machine that operates without input
A collection of specific tools for specific problems
A primitive animal brain
A single general-purpose processor
23
What is the first step in Feitelson’s three-step naming model?
Choose naming style
Select concepts to include
Consult naming tools
Check for syntax errors
24
The "typicality effect" is best demonstrated by which bird example?
Robin
Penguin
Ostrich
Bat
25
What is the Environment of Evolutionary Adaptation (EEA)?
The biological environment of mammals
A period during which human psychological mechanisms evolved
A specific location in ancient Africa
The modern environment where we adapt today
26
What naming convention does Python typically use?
Pascal case
Snake case
Hungarian notation
Camel case
27
According to evolutionary psychology, fear of spiders is an example of:
A learned response
A cultural stereotype
A visual illusion
An evolved psychological mechanism
28
Sexual selection differs from natural selection in focusing on:
Reproductive success
Survival only
Cognitive development
Mutation frequency
29
What is the downside of using long word-based variable names?
Fewer characters
Less accurate
Harder to remember
More bugs
30
What advantage do typicality-based categories provide?
They reduce visual processing time
They help generalize from known to unknown items
They ignore irrelevant stimuli
They ensure language acquisition
31
According to Allamanis, the most important aspect of naming is:
Short variable length
Consistency across a codebase
Alphabetical ordering
Use of prefixes
32
According to Binkley’s study, camel case increases:
Visual strain
Accuracy
Typing speed
Syntax errors
33
What does Neural Darwinism explain?
How neural circuits form via selection
Why memory decays over time
Why humans speak
Why spiders trigger fear
34
Which researchers found memory is stronger for frequently encountered items?
Tversky and Kahneman
Anderson and Schooler
Rosch and Smith
Cosmides and Tooby
35
Which tool uses machine learning to detect inconsistent names?
AutoRename
SyntaxBot
NameFixer
Naturalize
36
Which word in a variable name would support domain knowledge?
Counter
Customer
Index
Loop
37
Why might developers choose placeholder names like “foo”?
To confuse readers
To make code compile
To reduce cognitive load
To reuse common values
38
What is the Wason Selection Task used to measure
Emotional intelligence
Memory strength
Verbal fluency
Logical reasoning ability
39
Which sex typically performs better on spatial navigation tasks?
Males
Both equally
It varies randomly
Females
40
Which type of logic problem activates cheater-detection mechanisms?
Algebra word problem
Abstract symbol problem
Probability question
Social contract with cheating