Prutor CSS Quiz 3 answers

 




Q:1. Which of the following programming languages have common buffer overflow problem in the development of applications?


1.C, Ruby

2.C, C++

3.Python, Ruby

4.C, Python


Answer:- 2.C, C++


Reason - C and C++ are two languages that are Highly susceptible to buffer overflow attacks as they don't have built in safeguards.




Q:2. Which type of buffer overflows are common among attackers?


1.Memory-based

2.Queue-based

3.Stack-based

4.Heap-based


Answer:-3. Stack based


Reason - Buffer overflows can affect all types of software they typically results from malformed inputs or failure to allocate enough space for the buffer.




Q:3. In ___________ attack, malicious code is pushed into _______.


1.buffer-overflow, stack

2.buffer-overflow, queue

3.buffer-overflow,memory-card

4.buffer-overflow,external drive


Answer:-1.buffer-overflow, stack


Reason :- In Buffer overflow attack , malicious code is pushed into stack.




Q:4. In case of integer overflow, Which of the following option/s is/are true?


1.It is a result of an attempt to store a value greater than the maximum value an integer can store

2.Integer overflow can compromise a program's reliability and security

3.Both A and B

4.None of the above


Answer :- 3.Both A and B


Reason :- In case of integer overflow, so It is a result of an attempt to store a value greater than the maximum value an integer can store and Integer overflow can compromise a program's reliability and security is are true .




Q:5. A string which contains ___________ parameter/s, is called ______ string.


1.Format, text

2.Text, format

3.text and format, format

4.None of the above


Answer- 2.Text, format


Reason - The format string is the argument of the format function.



Post a Comment

0 Comments