stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Security in PHP and HCI Questions Flashcards | StudBud
Explore
/
Security in PHP and HCI Questions
Security in PHP and HCI Questions
21 terms
·
StudBud Administration
·
16 plays
Imported from external platform
Flashcards
21 cards
F
Practice quiz
P
Host live
L
Questions
21
Answers
1
What is the primary purpose of hashing passwords?
To encrypt them for storage
To prevent brute force attacks
To speed up authentication
To make them irreversible
2
Which authentication protocol is commonly used in web apps?
FTP
JSON
OAuth
SMTP
3
Why is MD5 not recommended for password hashing?
It requires too much salt
It’s too slow
It’s vulnerable to collisions
It doesn’t generate hashes
4
A copywriter buys a new business laptop but forgets to enter the purchase in the books is considered an omission error.
True
False
5
Which algorithm is commonly used for password hashing?
RSA
SHA-256
AES
bcryp
6
Which of these is the safest way to store user passwords?
Plaintext storage
Encrypted storage
Hashed with bcrypt + salt
Hashed with SHA-1
7
People acquire from culture strong general expectations about the relationship between actions and consequences.
External Consistency
stimulus response compactibility
Continuity
Internal Consistency
8
When users return to the design after a period of not using it, how easily can they reestablish proficiency?
Memorability
Efficiency
Learnability
Satisfaction
9
What does bcrypt do to slow down brute-force attacks?
It uses a work factor to slow hashing
It encrypts passwords instead of hashing
It limits login attempts
It generates a random password
10
How easy is it for users to accomplish basic tasks the first time they encounter the design?
Learnability
Efficiency
Errors
Memorability
11
What is authentication in web development?
Preventing brute force attacks
Proving a user’s identity
Storing passwords securely
Encrypting user data
12
Consider this PHP code :
$Uname = GET['user_name']; echo 'Welcome ' . $Uname;
What type of XSS attack does it represent?
stored XSS
get XSS
Reflected XSS
DOM-based XSS
13
What is the main difference between hashing and encryption?
Encryption is reversible, hashing is not
Neither is secure
Both can be reversed
Hashing is reversible, encryption is not
14
Why is adding salt to a password important?
It prevents hash collisions
It encrypts the password
It makes brute force attacks harder
It speeds up authentication
15
Once
users have learned the design, how quickly can they perform tasks?
Satisfaction
Efficiency
Memorability
Errors
16
What is Multi-Factor Authentication (MFA)?
Using multiple authentication methods
Using a longer password
Encrypting passwords with two keys
Storing multiple passwords for backup
17
How does salt help prevent rainbow table attacks?
It encrypts the hash
It speeds up hashing
It makes each password hash unique
It stores passwords in plaintext
18
How many errors do users make, how severe are these errors, and how easily can they recover from the errors?
Satisfaction
Errors
Learnability
Memorability
19
"How pleasant is it to use the design?”
Learnability
Efficiency
Satisfaction
Memorability
20
Which of the following is NOT an authentication method
Password-based login
Data hashing
Multi-factor authentication
OAuth
21
It should be obvious when a control has been used. What usability principle is it?
usability
Feedback
Affordance
Visibility