AnswerKey-Assignments12345-IMADSep2016
AnswerKey-Assignments12345-IMADSep2016
IMAD Sep-2016
Assignment 1
What is a webapp?
Javascript is used for:
A modern browser can
Select those options below which are web clients
What is the purpose of a URL
In the URL: https://mail.google.com/u/0/inbox what part of the URL, is the hostname?
What is a definition of a web-server
Can a browser make a request to a server without a domain name?
Choose the correct statement(s):
What is/are the benefit(s) of dedicated hosting over shared hosting?
As a webapp developer which parts of your application can you completely control:
Chrome Dev Tools can be used for:
abc.com and abc.in
What is a definition of deployment?
A browser is a software that can be installed on
Which of the following can act as a web server host?
What are the factors that affect the performance of a webapp?
Choose the correct statement(s):
How many image requests are made to the server when the page
https://www.iitm.ac.in/ is loaded
What is the URL of the IIT Madras logo on the top left corner on the page
https://www.iitm.ac.in/:
Assignment 2
Which of the below IPs is/are valid?
What protocol/protocols does the ‘ping’ command use?
For a web page, HTML represents the:
What is the ‘ping’ command useful for?
SSH is used for:
If ‘http-server’ is run, and outputs the ‘EADDR IN USE 8080’ error. It can mean:
How many ports does a computer have?
What is the IP of www.squ.edu.om
How can one SSH to a server on the cloud
What does server side templating refer to
Where is the website www.unimelb.edu.au (University of Melbourne) hosted?
What is the main reason the internet is moving towards ipv6?
Which of the following is/are valid HTML syntax
Which of the following statements are correct:
Which of the following statements are correct:
Which of the following are valid examples of css selectors
Which HTML tag is used to create a hyperlink
Which of the following is/are valid HTTP request methods
Which of the following statements is/are correct
Opening www.abc.com on a browser fetches
Assignment 3
Which SQL statement is used to update a database table schema?
Database normalisation typically
A SQL database view
Which of the following are SQL aggregate functions?
In a typical master/slave database system
A database index
Which of the following will help when a database begins to become too large to
keep on one system
Which of the following code will create an index named stu_sub_ind on the columns
roll_num and subject of the student_subjects table?
Which of the following will typically improve database write times
For table CUSTOMERS
Assignment 4
What properties of hash functions are necessary when used for hashing passwords?
How many cookies can you save for your webapp on a browser?
Which of these are good places to keep your web app’s database credentials?
XSS exploits vulnerability in the
Which of the following security attacks are caused due to not sanitizing user input
carefully
A web app and a native mobile app can share the same
What is essential to ensure data is sent securely over the network to the right server
Which of the following are almost completely under a developer’s control for a
webapp
Which protocols’ headers are used for web app session management?
Which of these is a good candidate for a user’s session-id
Assignment 5
What is a CDN?
Which statement(s) is/are true:
What can a server send as response when a browser demands a .html file
Which protocol’s job is it to transport a packet to its destination computer over the
internet
Which of the following is invalid CSS selector syntax
Which of the following can affect the usage of cookies
Which of the following methods of scaling a DB don’t require more than one
database server instance to improve performance:
What is the difference between class and id in HTML
Which of the following is invalid SQL statement where there is table name called
user with a column username
Which of the following statement(s) is/are true
Assignment 1
1. What is a webapp?
a. It is a software which lets you access websites
b. It is a software you can use in a web browser
c. It is a software you can download from the web
d. It is a software used to build websites
17. What are the factors that affect the performance of a webapp?
a. The computer configuration of the user using the webapp
b. The browser used to open the webapp
c. The quality of the network between the client and the server
d. The hardware configuration of the server
19. How many image requests are made to the server when the page
https://www.iitm.ac.in/ is loaded
a. 0-10
b. 10-20
c. 20-30
d. 30-40
Use Chrome Dev Tools (by right-clicking on the iitm.ac.in page and clicking on inspect)
and refresh the page. Record the number of requests made on the network tab.
20. What is the URL of the IIT Madras logo on the top left corner on
the page https://www.iitm.ac.in/:
a. xxx/logo.jpg
b. xxx/logo120.jpg
c. xxx/iitmlogo120.png
d. xxx/iitmlogo.png
Use Chrome Dev Tools (by right-clicking on the iitm.ac.in page and clicking on inspect).
Right click on the log on the top left corner and view the HTML element. Look at the
HTML element or the CSS attributes of an HTML element to see what image it is
loading. Alternatively, right-click on the logo and click on ‘Open Image In New Tab’ and
check the URL that is loaded for the image.
Assignment 2
1. Which of the below IPs is/are valid?
a. 23.54.23.21.32
b. 123.132.212.32
c. 234.11.265.34
d. 3ffe:1900:4545:3:200:f8ff:fe21:67cf
12. What is the main reason the internet is moving towards ipv6?
a. Ipv4 is slower
b. Ipv4 is expensive
c. Ipv4 addresses will run out
d. Ipv4 is not as secure
The query SELECT ID FROM CUSTOMERS WHERE SALARY > 5000 OR age < 25; will
produce result
a. 3 4 5 6 7
b. 6 7
c. 3 4 5
d. 1 2 3 4 5 6 7
Assignment 4
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
2. How many cookies can you save for your webapp on a browser?
a. 1
b. 2
c. 50
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