1.What properties of hash functions are necessary when used for hashing passwords?

A. It converts string of any length to a string of fixed length

B. It converts any string to the same random string each time

C. It is not possible to recover the original string from its hashed value

D. The chance of two strings giving the same hash value is very low

 Ans(s):
B.It converts any string to the same random string each time
C.It is not possible to recover the original string from its hashed value
D.The chance of two strings giving the same hash value is very low

2.How many cookies can you save for your webapp on a browser

A. 1

B. 2

C. 50

D. Depends on the browser

 Ans: D.Depends on the browser

3.Which of these are good places to keep your web app’s database credentials?

A. In a separate file in your source code

B. In a separate file on your web server host

C. In your database

D. None. The database credentials should never be stored

 Ans:B.In a separate file on your web server host

4.XSS exploits vulnerability in the

 

A. network

B. browser

C. app source code

D. web server host

 Ans:C.app source code

5.Which of the following security attacks are caused due to not sanitizing user input carefully

A. DDOS

B. XSS

C. SQL injection

D. Man in the middle

 Ans(s):
B.XSS
C.SQL injection

6.A HTML + CSS

A. web app and a native mobile app can share the same

B. API for fetching data

C. Web server

D. None of the above

 Ans(s):
B.API for fetching data
C.Web server

7.What is essential to ensure data is sent securely over the network to the right server

A. Using HTTPS protocol

B. Having an authentication token

C. Server SSL certificate verification

D. Using hash functions

 Ans(s):
A.Using HTTPS protocol
C.Server SSL certificate verification

8.Which of the following are almost completely under a developer’s control for a webapp

A. Network security

B. Browser security

C. Database security

D. Server host security

 Ans(s): 
C.Database security
D.Server host security

9.Which protocols’ headers are used for web app session management?

A. TCP

B. IP

C. HTTP

D. HTTPS

 Ans(s):
C.HTTP
D.HTTPS

10.Which of these is a good candidate for a user’s session-id

A. User’s password

B. User’s hashed password

C. A fixed random string saved in the user database

D. A newly generated random string every time the user logs in

 Ans:D.A newly generated random string every time the user logs in

Stay Hackademic , Be Hackademic(Subscribe Hackademic)

 

Categories: NPTEL solution

21 Comments

Shivam Shrivastava · August 24, 2017 at 3:24 PM

Thankyou So much please keep doing

Sagar · August 31, 2017 at 6:21 PM

Bro when you will post the solutions for 5th assignment .. please post it Asap. … And thanks a ton .. in advance

    Mit Patel · September 5, 2017 at 7:32 PM

    Thanks Sagar. Keep visiting.

Abhishek Mahalle · September 1, 2017 at 11:53 AM

Please upload assignment of week 5 of IMAD

Abhishek Mahalle · September 1, 2017 at 11:54 AM

Please upload assignment of week 5 it’s urgent

nick · September 2, 2017 at 11:47 AM

Please upload the week 5 solutions and week 6 as well asap

    Mit Patel · September 5, 2017 at 7:29 PM

    It has been posted

Geeky Ajay · September 2, 2017 at 12:05 PM

Great work bro…please keep adding IMAD related solutions and papers <3

    Mit Patel · September 5, 2017 at 7:28 PM

    Thanks for your feedback. Keep visiting.

Bitu · September 2, 2017 at 6:25 PM

Sir please provide answer keys of assignment 5

sai · September 2, 2017 at 6:39 PM

can any one upload the introduction to mobile application development week 5 MCQ’s

Srijith · September 3, 2017 at 6:37 AM

Plz upload the answers of week5 n 6 also!!

    Mit Patel · September 5, 2017 at 7:23 PM

    The solution has been posted. Keep visiting.

Sarfraz · September 4, 2017 at 8:10 AM

please upload week 5 solutions of IMAD

    Mit Patel · September 5, 2017 at 7:16 PM

    Solution has been posted. Thank you so much for visiting. Stay connected with hackademic.

Sagar · September 4, 2017 at 1:37 PM

Ya please upload the silutions for 5th Assignment of Imad

Sagar · September 4, 2017 at 1:38 PM

Ya please upload the solutions for 5th Assignment of Imad

    Mit Patel · September 5, 2017 at 7:15 PM

    The solution has been posted. Please subscribe us for more interesting content.

GTA Vice City Cheat Codes Complete List 2017 Updated · September 4, 2017 at 4:42 PM

Great, yahoo took me stright here. thanks btw for this. Cheers!

    Mit Patel · September 5, 2017 at 7:13 PM

    Thank you so much for visiting. Stay connected with hackademic.

sai · September 19, 2017 at 6:24 AM

hello mit patel can u upload intro to mobile application development MCQ 7th week answers please

Leave a Reply

Your email address will not be published. Required fields are marked *