Web Prog Test Type A
Web Prog Test Type A
(Type A)
Date: ________________
Name: ________________
[A] // this is comment [B] ## this is comment [C] <!— this is comment —>
1. How to create ajax get to retrieve banners data from server, that has error handling below:
- Internal server error
- Request timed out
- No data available
GET /api/banners?country=SG
response:
[ { data:[ {object}, {object}, {object} ] } ]
___________________________________________________________________________
___________________________________________________________________________
3. Given table below, how to select banners that available for domain fa.com.sg & singapore
country on 30 september 2017 in order (in MySQL syntax)
___________________________________________________________________________
CRITERIA:
1. The code section is html-code (not image). On copy icon click will copy “HALLOW10” to
clipboard
2. Content is centered at maximum of 1024px width
3. Appstore logo is clickable to https://itunes.apple.com/us/app/online-florist-floweradvisor/
id1185232807
4. Make someone’s day button is clickable to https://www.floweradvisor.com.ph/flowers-
philippines
5. Footer logo has link to https://www.floweradvisor.com.ph
6. Make sure all the html text is formatted as same as result (font style, line height, margin/
padding, positioning, border)
RESOURCES:
images:
/assets/halloweeen-bg.jpg
/assets/appstore.jpg
Fonts: (https://fonts.googleapis.com/css?family=Acme|Source+Sans+Pro:300,400,700)
- Acme
- Source Sans
RESULT: