├── src ├── assets │ ├── .gitkeep │ └── icons │ │ ├── php128.png │ │ ├── php16.png │ │ ├── php32.png │ │ ├── php38.png │ │ ├── php48.png │ │ └── apple-icon-76x76.png ├── environments │ ├── .gitignore │ ├── environment.prod.ts │ └── configPHP.ts ├── app │ ├── core │ │ ├── utils │ │ │ └── index.ts │ │ ├── guards │ │ │ └── index.ts │ │ ├── interfaces │ │ │ ├── countdown-time.interface.ts │ │ │ ├── score.interface.ts │ │ │ ├── navigation.interface.ts │ │ │ ├── question-row.interface.ts │ │ │ ├── config.interface.ts │ │ │ ├── answer-row.interface.ts │ │ │ ├── deactivate.interface.ts │ │ │ ├── data-service.interface.ts │ │ │ ├── exam.interface.ts │ │ │ └── index.ts │ │ ├── models │ │ │ ├── index.ts │ │ │ ├── countdown-time.model.ts │ │ │ └── score.model.ts │ │ ├── index.ts │ │ └── services │ │ │ └── index.ts │ ├── about │ │ ├── about.component.scss │ │ ├── about.module.ts │ │ └── about-routing.module.ts │ ├── shared │ │ ├── layout │ │ │ └── footer │ │ │ │ └── footer.component.scss │ │ └── confirm │ │ │ └── confirm.component.html │ ├── home │ │ ├── home.component.scss │ │ ├── home.module.ts │ │ └── home-routing.module.ts │ ├── exam │ │ └── exam.module.ts │ ├── preload-selected-module-strategy.ts │ └── prepare │ │ ├── prepare.module.ts │ │ ├── prepare.component.html │ │ └── prepare-routing.module.ts ├── favicon.ico └── main.ts ├── aplications ├── images │ └── capture.png ├── firefox │ ├── background.js │ └── README.md ├── chrome │ ├── background.js │ └── README.md └── gitHubPage │ └── README.md ├── e2e ├── tsconfig.json └── src │ └── app.po.ts ├── tsconfig.app.json ├── .editorconfig ├── questions ├── 0209.md ├── 0518.md ├── 0046.md ├── 0054.md ├── 0462.md ├── 0464.md ├── 0272.md ├── 0436.md ├── 0440.md ├── 0176.md ├── 0196.md ├── 0378.md ├── 0770.md ├── 0010.md ├── 0047.md ├── 0191.md ├── 0199.md ├── 0480.md ├── 0509.md ├── 0052.md ├── 0233.md ├── 0031.md ├── 0066.md ├── 0235.md ├── 0452.md ├── 0580.md ├── 0748.md ├── 0772.md ├── 0121.md ├── 0128.md ├── 0175.md ├── 0183.md ├── 0237.md ├── 0412.md ├── 0672.md ├── 0763.md ├── 0667.md ├── 0018.md ├── 0053.md ├── 0171.md ├── 0409.md ├── 0442.md ├── 0474.md ├── 0043.md ├── 0318.md ├── 0444.md ├── 0453.md ├── 0460.md ├── 0548.md ├── 0559.md ├── 0627.md ├── 0753.md ├── 0806.md ├── 0041.md ├── 0363.md ├── 0419.md ├── 0655.md ├── 0752.md ├── 0067.md ├── 0289.md ├── 0433.md ├── 0439.md ├── 0056.md ├── 0113.md ├── 0446.md ├── 0478.md ├── 0483.md ├── 0520.md ├── 0591.md ├── 0732.md ├── 0106.md ├── 0119.md ├── 0147.md ├── 0151.md ├── 0227.md ├── 0543.md ├── 0609.md ├── 0619.md ├── 0624.md ├── 0656.md ├── 0657.md ├── 0017.md ├── 0173.md ├── 0357.md ├── 0448.md ├── 0540.md ├── 0568.md ├── 0574.md ├── 0600.md ├── 0713.md ├── 0733.md ├── 0794.md ├── 0064.md ├── 0401.md ├── 0494.md ├── 0596.md ├── 0654.md ├── 0747.md ├── 0118.md ├── 0174.md ├── 0258.md ├── 0262.md ├── 0314.md ├── 0339.md ├── 0450.md ├── 0513.md ├── 0730.md ├── 0750.md ├── 0764.md ├── 0792.md ├── 0026.md ├── 0155.md ├── 0160.md ├── 0257.md ├── 0353.md ├── 0374.md ├── 0567.md ├── 0579.md ├── 0677.md ├── 0737.md ├── 0796.md ├── 0002.md ├── 0324.md ├── 0407.md ├── 0721.md ├── 0807.md ├── 0045.md ├── 0057.md ├── 0060.md ├── 0063.md ├── 0206.md ├── 0369.md ├── 0544.md ├── 0552.md ├── 0640.md ├── 0757.md ├── 0025.md ├── 0059.md ├── 0094.md ├── 0126.md ├── 0208.md ├── 0335.md ├── 0528.md ├── 0637.md ├── 0647.md ├── 0007.md ├── 0116.md ├── 0146.md ├── 0248.md ├── 0264.md ├── 0266.md ├── 0315.md ├── 0476.md ├── 0477.md ├── 0602.md ├── 0062.md ├── 0327.md ├── 0361.md ├── 0383.md ├── 0583.md ├── 0633.md ├── 0746.md ├── 0005.md ├── 0068.md ├── 0228.md ├── 0408.md ├── 0449.md ├── 0634.md ├── 0665.md ├── 0719.md ├── 0766.md ├── 0802.md ├── 0024.md ├── 0065.md ├── 0136.md ├── 0214.md ├── 0224.md ├── 0325.md ├── 0347.md ├── 0443.md ├── 0486.md ├── 0504.md ├── 0521.md ├── 0648.md ├── 0699.md ├── 0736.md ├── 0019.md ├── 0028.md ├── 0040.md ├── 0082.md ├── 0145.md ├── 0220.md ├── 0277.md ├── 0329.md ├── 0456.md ├── 0588.md ├── 0644.md ├── 0646.md ├── 0715.md ├── 0776.md ├── 0021.md ├── 0055.md ├── 0075.md ├── 0142.md ├── 0198.md ├── 0222.md ├── 0232.md ├── 0424.md ├── 0463.md ├── 0566.md ├── 0575.md ├── 0606.md ├── 0797.md ├── 0803.md ├── 0081.md ├── 0140.md ├── 0254.md ├── 0406.md ├── 0437.md ├── 0497.md ├── 0549.md ├── 0592.md ├── 0599.md ├── 0628.md ├── 0717.md ├── 0727.md ├── 0741.md ├── 0212.md ├── 0466.md ├── 0475.md ├── 0500.md ├── 0530.md ├── 0604.md ├── 0653.md ├── 0013.md ├── 0044.md ├── 0050.md ├── 0112.md ├── 0177.md ├── 0180.md ├── 0344.md ├── 0441.md ├── 0542.md ├── 0595.md ├── 0805.md ├── 0003.md ├── 0185.md ├── 0296.md ├── 0351.md ├── 0386.md ├── 0423.md ├── 0451.md ├── 0493.md ├── 0511.md ├── 0512.md ├── 0556.md ├── 0557.md ├── 0601.md ├── 0038.md ├── 0156.md ├── 0313.md ├── 0398.md ├── 0438.md ├── 0467.md ├── 0553.md ├── 0720.md ├── 0767.md ├── 0042.md ├── 0048.md ├── 0137.md ├── 0320.md ├── 0328.md ├── 0333.md ├── 0404.md ├── 0534.md ├── 0546.md ├── 0593.md ├── 0144.md ├── 0161.md ├── 0188.md ├── 0287.md ├── 0334.md ├── 0341.md ├── 0411.md ├── 0458.md ├── 0459.md ├── 0481.md ├── 0498.md ├── 0662.md ├── 0669.md ├── 0673.md ├── 0682.md ├── 0033.md ├── 0095.md ├── 0167.md ├── 0218.md ├── 0219.md ├── 0226.md ├── 0240.md ├── 0295.md ├── 0389.md ├── 0457.md ├── 0489.md ├── 0527.md ├── 0570.md ├── 0660.md ├── 0744.md ├── 0103.md ├── 0154.md ├── 0455.md ├── 0471.md ├── 0514.md ├── 0532.md ├── 0638.md ├── 0649.md ├── 0671.md ├── 0676.md ├── 0687.md ├── 0012.md ├── 0037.md ├── 0049.md ├── 0072.md ├── 0290.md ├── 0332.md ├── 0430.md ├── 0447.md ├── 0472.md ├── 0758.md ├── 0004.md ├── 0032.md ├── 0086.md ├── 0141.md ├── 0152.md └── 0164.md ├── tsconfig.spec.json └── browserslist /src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/environments/.gitignore: -------------------------------------------------------------------------------- 1 | configFirebase.ts 2 | -------------------------------------------------------------------------------- /src/app/core/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from './helper'; 2 | -------------------------------------------------------------------------------- /src/app/core/guards/index.ts: -------------------------------------------------------------------------------- 1 | export * from './exam/exam.guard'; 2 | -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alvesdouglaz/zce/HEAD/src/favicon.ico -------------------------------------------------------------------------------- /src/assets/icons/php128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alvesdouglaz/zce/HEAD/src/assets/icons/php128.png -------------------------------------------------------------------------------- /src/assets/icons/php16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alvesdouglaz/zce/HEAD/src/assets/icons/php16.png -------------------------------------------------------------------------------- /src/assets/icons/php32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alvesdouglaz/zce/HEAD/src/assets/icons/php32.png -------------------------------------------------------------------------------- /src/assets/icons/php38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alvesdouglaz/zce/HEAD/src/assets/icons/php38.png -------------------------------------------------------------------------------- /src/assets/icons/php48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alvesdouglaz/zce/HEAD/src/assets/icons/php48.png -------------------------------------------------------------------------------- /aplications/images/capture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alvesdouglaz/zce/HEAD/aplications/images/capture.png -------------------------------------------------------------------------------- /src/app/core/interfaces/countdown-time.interface.ts: -------------------------------------------------------------------------------- 1 | export interface ICountdownTime { 2 | time: string; 3 | } 4 | -------------------------------------------------------------------------------- /src/assets/icons/apple-icon-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alvesdouglaz/zce/HEAD/src/assets/icons/apple-icon-76x76.png -------------------------------------------------------------------------------- /src/app/core/interfaces/score.interface.ts: -------------------------------------------------------------------------------- 1 | export interface IScore { 2 | total: number; 3 | correct: number; 4 | percentage: number; 5 | } 6 | -------------------------------------------------------------------------------- /aplications/firefox/background.js: -------------------------------------------------------------------------------- 1 | browser.browserAction.onClicked.addListener(() => { 2 | browser.tabs.create({"url": "./index.html"}); 3 | }); 4 | -------------------------------------------------------------------------------- /src/app/core/interfaces/navigation.interface.ts: -------------------------------------------------------------------------------- 1 | export interface INavigation { 2 | url: string; 3 | label: string; 4 | icon?: string; 5 | } 6 | -------------------------------------------------------------------------------- /src/app/core/interfaces/question-row.interface.ts: -------------------------------------------------------------------------------- 1 | export interface IQuestionRow { 2 | text: string; 3 | language: string; // enum PhpHighlightingLanguage 4 | } 5 | -------------------------------------------------------------------------------- /src/app/core/models/index.ts: -------------------------------------------------------------------------------- 1 | export * from './countdown-time.model'; 2 | export * from './exam.model'; 3 | export * from './question.model'; 4 | export * from './score.model'; 5 | -------------------------------------------------------------------------------- /src/app/core/interfaces/config.interface.ts: -------------------------------------------------------------------------------- 1 | export interface IConfig { 2 | counter: number; 3 | timestamp: number; 4 | version: string; // fixme - deprecated @ 2.1.0 5 | } 6 | -------------------------------------------------------------------------------- /src/app/core/interfaces/answer-row.interface.ts: -------------------------------------------------------------------------------- 1 | export interface IAnswerRow { 2 | text: string; 3 | language: string; 4 | isCorrect: boolean; 5 | _isCheckedByUser?: boolean; 6 | } 7 | -------------------------------------------------------------------------------- /aplications/chrome/background.js: -------------------------------------------------------------------------------- 1 | chrome.browserAction.onClicked.addListener((request, sender, sendResponse) => { 2 | chrome.tabs.update({url: chrome.extension.getURL('index.html')}); 3 | }); 4 | -------------------------------------------------------------------------------- /src/app/core/interfaces/deactivate.interface.ts: -------------------------------------------------------------------------------- 1 | import { Observable } from 'rxjs'; 2 | 3 | export interface IDeactivate { 4 | canExit: () => Observable | Promise | boolean; 5 | } 6 | -------------------------------------------------------------------------------- /src/app/core/index.ts: -------------------------------------------------------------------------------- 1 | export * from './guards'; 2 | export * from './interfaces'; 3 | export * from './models'; 4 | export * from './services'; 5 | export * from './utils'; 6 | export * from './core.module'; 7 | -------------------------------------------------------------------------------- /aplications/chrome/README.md: -------------------------------------------------------------------------------- 1 | ### CHROME extension 2 | 3 | ``` 4 | ng build --prod --aot=true --buildOptimizer=true --extractLicenses=true --optimization=true 5 | COPY manifest.js && background.js TO dist/zce 6 | ``` 7 | -------------------------------------------------------------------------------- /src/app/core/interfaces/data-service.interface.ts: -------------------------------------------------------------------------------- 1 | import { Observable } from 'rxjs'; 2 | 3 | export interface IDataService { 4 | currentValue: Observable; 5 | 6 | getValue(): any; 7 | 8 | setValue(value: any): void; 9 | } 10 | -------------------------------------------------------------------------------- /src/app/about/about.component.scss: -------------------------------------------------------------------------------- 1 | li { 2 | font-size: 1rem; 3 | } 4 | 5 | h3, h5 { 6 | font-size: 1.35em; 7 | line-height: 1.4em; 8 | } 9 | 10 | a { 11 | text-decoration: underline; 12 | background-color: transparent; 13 | color: #51bcda; 14 | } 15 | -------------------------------------------------------------------------------- /src/app/shared/layout/footer/footer.component.scss: -------------------------------------------------------------------------------- 1 | a { 2 | padding: 10px; 3 | color: #000; 4 | } 5 | 6 | footer { 7 | bottom: 0; 8 | width: 100%; 9 | background: #fafafa; 10 | z-index: 100; 11 | height: 64px; 12 | margin: 0; 13 | padding: 0 1em; 14 | } 15 | -------------------------------------------------------------------------------- /e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | import { configFirebase } from '@env/configFirebase'; 2 | import { configPHP } from '@env/configPHP'; 3 | 4 | export const environment = { 5 | appVersion: '3.0.2', 6 | production: true, 7 | firebase: configFirebase, 8 | configPHP 9 | }; 10 | -------------------------------------------------------------------------------- /tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "files": [ 8 | "src/main.ts", 9 | "src/polyfills.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.d.ts" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /aplications/gitHubPage/README.md: -------------------------------------------------------------------------------- 1 | # GitHub Page 2 | 3 | ### ngh 4 | 5 | ``` 6 | npm install -g angular-cli-ghpages 7 | 8 | ng build --prod --aot=true --buildOptimizer=true --optimization=true --extractLicenses=true --base-href="./" 9 | ngh --dir dist/zce --message="V 3.0.2" 10 | ``` 11 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /src/app/core/models/countdown-time.model.ts: -------------------------------------------------------------------------------- 1 | import { ICountdownTime } from '../interfaces'; 2 | 3 | export class CountdownTime implements ICountdownTime { 4 | time: string = ''; 5 | 6 | constructor(values?: ICountdownTime) { 7 | if (values) { 8 | Object.assign(this, values); 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/app/core/interfaces/exam.interface.ts: -------------------------------------------------------------------------------- 1 | import { Question } from '@app/core'; 2 | 3 | export interface IExam { 4 | startAt: number; 5 | endAt?: number; 6 | questionsArray?: Array; 7 | questions?: { 8 | [key: number]: Question | null 9 | }; 10 | score?: number; 11 | isFinished?: boolean; 12 | } 13 | -------------------------------------------------------------------------------- /src/app/core/models/score.model.ts: -------------------------------------------------------------------------------- 1 | import { IScore } from '@app/core/interfaces'; 2 | 3 | export class Score implements IScore { 4 | total: number = 0; 5 | correct: number = 0; 6 | percentage: number = 0; 7 | 8 | constructor(values?: IScore) { 9 | if (values) { 10 | Object.assign(this, values); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/app/home/home.component.scss: -------------------------------------------------------------------------------- 1 | h1 { 2 | margin: 1em 0; 3 | font-size: 2em; 4 | font-weight: 300; 5 | } 6 | 7 | mat-icon { 8 | width: 15em; 9 | height: 15em; 10 | margin-top: 0.7em; 11 | } 12 | 13 | button { 14 | font-size: 1em; 15 | font-weight: 500; 16 | margin: 0.5em 1em; 17 | width: 95%; 18 | color: #000; 19 | } 20 | -------------------------------------------------------------------------------- /e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo(): Promise { 5 | return browser.get(browser.baseUrl) as Promise; 6 | } 7 | 8 | getTitleText(): Promise { 9 | return element(by.css('app-root .content span')).getText() as Promise; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /questions/0209.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0208.md) Question ID#0209.md [>>> Next question >>>](0210.md) 2 | --- 3 | 4 | All variables in PHP start with which symbol? 5 | 6 | - [ ] A) $ 7 | - [ ] B) ? 8 | - [ ] C) & 9 | - [ ] D) var 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0518.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0517.md) Question ID#0518.md [>>> Next question >>>](0519.md) 2 | --- 3 | 4 | In PHP the error control operator is _______ 5 | 6 | - [ ] A) @ 7 | - [ ] B) ! 8 | - [ ] C) * 9 | - [ ] D) & 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /questions/0046.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0045.md) Question ID#0046.md [>>> Next question >>>](0047.md) 2 | --- 3 | 4 | Which of the following is used to set a constant? 5 | 6 | - [ ] A) define 7 | - [ ] B) new 8 | - [ ] C) con 9 | - [ ] D) set 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0054.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0053.md) Question ID#0054.md [>>> Next question >>>](0055.md) 2 | --- 3 | 4 | Which of the following is NOT a strongly typed language? 5 | 6 | - [ ] A) PHP 7 | - [ ] B) C 8 | - [ ] C) C++ 9 | - [ ] D) Java 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0462.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0461.md) Question ID#0462.md [>>> Next question >>>](0463.md) 2 | --- 3 | 4 | ArrayAccess is an example of a: 5 | 6 | - [ ] A) interface 7 | - [ ] B) design pattern 8 | - [ ] C) object 9 | - [ ] D) class 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0464.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0463.md) Question ID#0464.md [>>> Next question >>>](0465.md) 2 | --- 3 | 4 | Which of the following is a valid namespace operator in PHP? 5 | 6 | - [ ] A) \ 7 | - [ ] B) :: 8 | - [ ] C) @ 9 | - [ ] D) / 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0272.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0271.md) Question ID#0272.md [>>> Next question >>>](0273.md) 2 | --- 3 | 4 | Which of the following header codes is used for redirection? 5 | 6 | - [ ] A) 3XX 7 | - [ ] B) 5XX 8 | - [ ] C) 1XX 9 | - [ ] D) 4XX 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0436.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0435.md) Question ID#0436.md [>>> Next question >>>](0437.md) 2 | --- 3 | 4 | How many parameters does array_merge() accept? 5 | 6 | - [ ] A) As many as you want 7 | - [ ] B) 3 8 | - [ ] C) 2 9 | - [ ] D) 1 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0440.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0439.md) Question ID#0440.md [>>> Next question >>>](0441.md) 2 | --- 3 | 4 | Which HTTP status code asks a user to provide credentials? 5 | 6 | - [ ] A) 401 7 | - [ ] B) 404 8 | - [ ] C) 204 9 | - [ ] D) 200 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0176.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0175.md) Question ID#0176.md [>>> Next question >>>](0177.md) 2 | --- 3 | 4 | Which of the following protocols is used for mail transfer? 5 | 6 | - [ ] A) SMTP 7 | - [ ] B) FTP 8 | - [ ] C) HTTP 9 | - [ ] D) SFTP 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0196.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0195.md) Question ID#0196.md [>>> Next question >>>](0197.md) 2 | --- 3 | 4 | All of the following are the pre-defined entities except for which one? 5 | 6 | - [ ] A) ; 7 | - [ ] B) < 8 | - [ ] C) & 9 | - [ ] D) > 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0378.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0377.md) Question ID#0378.md [>>> Next question >>>](0379.md) 2 | --- 3 | 4 | How do you determine the number of elements in array? 5 | 6 | - [ ] A) count 7 | - [ ] B) max 8 | - [ ] C) sizeOf 9 | - [ ] D) on_array 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0770.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0769.md) Question ID#0770.md [>>> Next question >>>](0771.md) 2 | --- 3 | 4 | Which class of HTTP status code is used for error conditions? 5 | 6 | - [ ] A) 5xx 7 | - [ ] B) 2xx 8 | - [ ] C) 1xx 9 | - [ ] D) 3xx 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /src/app/shared/confirm/confirm.component.html: -------------------------------------------------------------------------------- 1 | 2 |

{{message}}

3 |
4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /questions/0010.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0009.md) Question ID#0010.md [>>> Next question >>>](0011.md) 2 | --- 3 | 4 | Which one of the following four logical operators of PHP is not binary? 5 | 6 | - [ ] A) NOT 7 | - [ ] B) AND 8 | - [ ] C) XOR 9 | - [ ] D) OR 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0047.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0046.md) Question ID#0047.md [>>> Next question >>>](0048.md) 2 | --- 3 | 4 | What is the length of the hash generated by the crc32() crypto function? 5 | 6 | - [ ] A) 32 7 | - [ ] B) 512 8 | - [ ] C) 128 9 | - [ ] D) 64 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0191.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0190.md) Question ID#0191.md [>>> Next question >>>](0192.md) 2 | --- 3 | 4 | Which of the following protocols is normally used by Webservices? 5 | 6 | - [ ] A) HTTP 7 | - [ ] B) POP3 8 | - [ ] C) FTP 9 | - [ ] D) SFTP 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0199.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0198.md) Question ID#0199.md [>>> Next question >>>](0200.md) 2 | --- 3 | 4 | Which of the following was not a built-in terminology before PHP5? 5 | 6 | - [ ] A) SOAP 7 | - [ ] B) XML 8 | - [ ] C) XSL 9 | - [ ] D) CURL 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0480.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0479.md) Question ID#0480.md [>>> Next question >>>](0481.md) 2 | --- 3 | 4 | Which function would you use to re-order an array by its keys? 5 | 6 | - [ ] A) ksort 7 | - [ ] B) sort 8 | - [ ] C) asort 9 | - [ ] D) usort 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0509.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0508.md) Question ID#0509.md [>>> Next question >>>](0510.md) 2 | --- 3 | 4 | Which of the following is not a valid fopen() access mode: 5 | 6 | 7 | 8 | 9 | - [ ] A) b 10 | - [ ] B) x 11 | - [ ] C) a 12 | - [ ] D) w 13 | 14 |
Answer 15 |

16 | Answer: A 17 |

18 |
19 | -------------------------------------------------------------------------------- /questions/0052.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0051.md) Question ID#0052.md [>>> Next question >>>](0053.md) 2 | --- 3 | 4 | Which of the following operators has the highest precedence order? 5 | 6 | 7 | 8 | - [ ] A) [ 9 | - [ ] B) -- 10 | - [ ] C) - 11 | - [ ] D) ++ 12 | 13 |
Answer 14 |

15 | Answer: A 16 |

17 |
18 | -------------------------------------------------------------------------------- /questions/0233.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0232.md) Question ID#0233.md [>>> Next question >>>](0234.md) 2 | --- 3 | 4 | Which of the following metacharacters can be used to find a non-word character? 5 | 6 | - [ ] A) \W 7 | - [ ] B) . 8 | - [ ] C) \d 9 | - [ ] D) \w 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0031.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0030.md) Question ID#0031.md [>>> Next question >>>](0032.md) 2 | --- 3 | 4 | Which of the following data types are compound data types? 5 | 6 | - [ ] A) Array 7 | - [ ] B) Objects 8 | - [ ] C) Booleans 9 | - [ ] D) Strings 10 | 11 |
Answer 12 |

13 | Answer: A, B 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0066.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0065.md) Question ID#0066.md [>>> Next question >>>](0067.md) 2 | --- 3 | 4 | Which of the following will you use to iterate a PHP associative array? 5 | 6 | - [ ] A) foreach 7 | - [ ] B) for in 8 | - [ ] C) for 9 | - [ ] D) while 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0235.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0234.md) Question ID#0235.md [>>> Next question >>>](0236.md) 2 | --- 3 | 4 | Which of the following PCRE expressions is used to match any white space character? 5 | 6 | - [ ] A) \s 7 | - [ ] B) . 8 | - [ ] C) ^ 9 | - [ ] D) $ 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0452.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0451.md) Question ID#0452.md [>>> Next question >>>](0453.md) 2 | --- 3 | 4 | Which of the following are valid constant names? (Choose three) 5 | 6 | - [ ] A) R7yu 7 | - [ ] B) ablwesc_99 8 | - [ ] C) AEN 9 | - [ ] D) 8rutil 10 | 11 |
Answer 12 |

13 | Answer: A, B, C 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0580.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0579.md) Question ID#0580.md [>>> Next question >>>](0581.md) 2 | --- 3 | 4 | What does the following code print? 5 | 6 | 7 | ```php 8 | echo 2 <=> 1; 9 | ``` 10 | 11 | - [ ] A) 1 12 | - [ ] B) -1 13 | - [ ] C) 0 14 | - [ ] D) 2 15 | 16 |
Answer 17 |

18 | Answer: A 19 |

20 |
21 | -------------------------------------------------------------------------------- /questions/0748.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0747.md) Question ID#0748.md [>>> Next question >>>](0749.md) 2 | --- 3 | 4 | Which function can be used to read and parse data from CSV file? 5 | 6 | - [ ] A) fgetcsv 7 | - [ ] B) csv 8 | - [ ] C) fgetxls 9 | - [ ] D) csv_parse 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0772.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0771.md) Question ID#0772.md [>>> Next question >>>](0773.md) 2 | --- 3 | 4 | What is the base interface all exception inherit? 5 | 6 | - [ ] A) Throwable 7 | - [ ] B) ExceptionInterface 8 | - [ ] C) Exception 9 | - [ ] D) Error 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0121.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0120.md) Question ID#0121.md [>>> Next question >>>](0122.md) 2 | --- 3 | 4 | Which of the following is used to pass an object? 5 | 6 | - [ ] A) Reference 7 | - [ ] B) Value as well as reference 8 | - [ ] C) Value 9 | - [ ] D) Handle 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0128.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0127.md) Question ID#0128.md [>>> Next question >>>](0129.md) 2 | --- 3 | 4 | Which of the following streams is used to access the compressed data? 5 | 6 | - [ ] A) compress.zlib 7 | - [ ] B) file 8 | - [ ] C) php 9 | - [ ] D) http 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0175.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0174.md) Question ID#0175.md [>>> Next question >>>](0176.md) 2 | --- 3 | 4 | What is the default timeout of a session cookie? 5 | 6 | - [ ] A) Until the browser is closed. 7 | - [ ] B) 30 min 8 | - [ ] C) 10 min 9 | - [ ] D) 45 min 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0183.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0182.md) Question ID#0183.md [>>> Next question >>>](0184.md) 2 | --- 3 | 4 | Which of the following are the methods used for producing web services? 5 | 6 | - [ ] A) REST 7 | - [ ] B) XML-RPC 8 | - [ ] C) SOAP 9 | - [ ] D) DCOM 10 | 11 |
Answer 12 |

13 | Answer: A, B, C 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0237.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0236.md) Question ID#0237.md [>>> Next question >>>](0238.md) 2 | --- 3 | 4 | Consider the following PHP code: 5 | ```php 6 | Answer 15 |

16 | Answer: A 17 |

18 | 19 | -------------------------------------------------------------------------------- /questions/0412.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0411.md) Question ID#0412.md [>>> Next question >>>](0413.md) 2 | --- 3 | 4 | What is the PHP function used to make a string all lower-case? 5 | 6 | - [ ] A) strtolower 7 | - [ ] B) lower 8 | - [ ] C) lowercase 9 | - [ ] D) lcstring 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0672.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0671.md) Question ID#0672.md [>>> Next question >>>](0673.md) 2 | --- 3 | 4 | Which SPL class implements fixed-size storage 5 | 6 | 7 | - [ ] A) SplFixedArray 8 | - [ ] B) SplObjectStorage 9 | - [ ] C) SplHeap 10 | - [ ] D) SplQueue 11 | 12 |
Answer 13 |

14 | Answer: A 15 |

16 |
17 | -------------------------------------------------------------------------------- /questions/0763.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0762.md) Question ID#0763.md [>>> Next question >>>](0764.md) 2 | --- 3 | 4 | Which of the following cannot be a part of the class definition? 5 | 6 | - [ ] A) interface 7 | - [ ] B) function 8 | - [ ] C) variable 9 | - [ ] D) constant 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /aplications/firefox/README.md: -------------------------------------------------------------------------------- 1 | ### FIREFOX extension 2 | 3 | ``` 4 | ng build --prod --aot --buildOptimizer=true --extractLicenses=true --optimization=true 5 | COPY manifest.js && background.js TO dist/zce 6 | ``` 7 | 8 | ``` 9 | cd /dist/zce 10 | 11 | npm install --global web-ext (if it is not instaled) 12 | web-ext run 13 | web-ext build 14 | web-ext sign --api-key=user:niac --api-secret=niac 15 | ``` 16 | -------------------------------------------------------------------------------- /questions/0667.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0666.md) Question ID#0667.md [>>> Next question >>>](0668.md) 2 | --- 3 | 4 | What does the following code output? 5 | ```php 6 | $i = 016; 7 | echo $i / 2; 8 | ``` 9 | 10 | - [ ] A) 7 11 | - [ ] B) an error 12 | - [ ] C) 8 13 | - [ ] D) 0 14 | 15 |
Answer 16 |

17 | Answer: A 18 |

19 |
20 | -------------------------------------------------------------------------------- /questions/0018.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0017.md) Question ID#0018.md [>>> Next question >>>](0019.md) 2 | --- 3 | 4 | Which of the following features are Undeprecated in PHP 5.3? 5 | 6 | - [ ] A) is_a() 7 | - [ ] B) ereg() 8 | - [ ] C) split() 9 | - [ ] D) Call-time pass-by-reference 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0053.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0052.md) Question ID#0053.md [>>> Next question >>>](0054.md) 2 | --- 3 | 4 | Which of the following is related to APC (Alternative PHP Cache)? 5 | 6 | - [ ] A) Byte code caching 7 | - [ ] B) Variable 8 | - [ ] C) Constant 9 | - [ ] D) Namespace 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0171.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0170.md) Question ID#0171.md [>>> Next question >>>](0172.md) 2 | --- 3 | 4 | Which of the following functions wraps a string to a given number of characters? 5 | 6 | - [ ] A) wordwrap 7 | - [ ] B) trim 8 | - [ ] C) ucfirst 9 | - [ ] D) ucwords 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0409.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0408.md) Question ID#0409.md [>>> Next question >>>](0410.md) 2 | --- 3 | 4 | What is the PHP function used to make a string all upper-case? 5 | 6 | - [ ] A) strtoupper 7 | - [ ] B) toupper 8 | - [ ] C) uppercase 9 | - [ ] D) upperCaseString 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0442.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0441.md) Question ID#0442.md [>>> Next question >>>](0443.md) 2 | --- 3 | 4 | What does status code 403 indicate? 5 | 6 | - [ ] A) Forbidden 7 | - [ ] B) Resource not found 8 | - [ ] C) Not modified 9 | - [ ] D) 403 is not a valid status code 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0474.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0473.md) Question ID#0474.md [>>> Next question >>>](0475.md) 2 | --- 3 | 4 | What is the output of the following? 5 | 6 | ```php 7 | echo chr((ord('a') + ord('A'))/2); 8 | ``` 9 | 10 | - [ ] A) Q 11 | - [ ] B) A 12 | - [ ] C) 0 13 | - [ ] D) 1 14 | 15 |
Answer 16 |

17 | Answer: A 18 |

19 |
20 | -------------------------------------------------------------------------------- /src/app/core/interfaces/index.ts: -------------------------------------------------------------------------------- 1 | export * from './answer-row.interface'; 2 | export * from './config.interface'; 3 | export * from './countdown-time.interface'; 4 | export * from './data-service.interface'; 5 | export * from './deactivate.interface'; 6 | export * from './exam.interface'; 7 | export * from './question.interface'; 8 | export * from './question-row.interface'; 9 | export * from './score.interface'; 10 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from '@app/app.module'; 5 | import { environment } from '@env/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.error(err)); 13 | -------------------------------------------------------------------------------- /questions/0043.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0042.md) Question ID#0043.md [>>> Next question >>>](0044.md) 2 | --- 3 | 4 | Which of the following files can be used to modify PHP configurations? 5 | 6 | - [ ] A) php.ini 7 | - [ ] B) httpd_php.conf 8 | - [ ] C) isset.ini 9 | - [ ] D) config.ini 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0318.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0317.md) Question ID#0318.md [>>> Next question >>>](0319.md) 2 | --- 3 | 4 | What is the output of the following PHP script? 5 | ```php 6 | $a = 25; 7 | echo $a % 10; 8 | ``` 9 | 10 | - [ ] A) 5 11 | - [ ] B) 15 12 | - [ ] C) 250 13 | - [ ] D) 25 14 | 15 |
Answer 16 |

17 | Answer: A 18 |

19 |
20 | -------------------------------------------------------------------------------- /questions/0444.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0443.md) Question ID#0444.md [>>> Next question >>>](0445.md) 2 | --- 3 | 4 | What is the output of this line of code? 5 | 6 | ```php 7 | 8 | ``` 9 | 10 | - [ ] A) 224 11 | - [ ] B) 156 12 | - [ ] C) 88 13 | - [ ] D) 72 14 | 15 |
Answer 16 |

17 | Answer: A 18 |

19 |
20 | -------------------------------------------------------------------------------- /questions/0453.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0452.md) Question ID#0453.md [>>> Next question >>>](0454.md) 2 | --- 3 | 4 | What is the output of the following code? 5 | 6 | ```php 7 | $a = 42 & 05 + 17; 8 | echo $a; 9 | ``` 10 | 11 | - [ ] A) 2 12 | - [ ] B) 17 13 | - [ ] C) 0 14 | - [ ] D) 64 15 | 16 |
Answer 17 |

18 | Answer: A 19 |

20 |
21 | -------------------------------------------------------------------------------- /questions/0460.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0459.md) Question ID#0460.md [>>> Next question >>>](0461.md) 2 | --- 3 | 4 | Is this statement true or false? "Methods declared as static must be called statically" 5 | 6 | 7 | 8 | - [ ] A) False 9 | - [ ] B) True 10 | - [ ] C) 0 11 | - [ ] D) 1 12 | 13 |
Answer 14 |

15 | Answer: A 16 |

17 |
18 | -------------------------------------------------------------------------------- /questions/0548.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0547.md) Question ID#0548.md [>>> Next question >>>](0549.md) 2 | --- 3 | 4 | Which of the following extensions are no longer part of PHP 5 and have been moved to PECL? 5 | 6 | - [ ] A) w32api 7 | - [ ] B) dio 8 | - [ ] C) tidy 9 | - [ ] D) mysql 10 | 11 |
Answer 12 |

13 | Answer: A, B 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0559.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0558.md) Question ID#0559.md [>>> Next question >>>](0560.md) 2 | --- 3 | 4 | SimpleXML objects can be created from what types of data sources? 5 | 6 | - [ ] A) A String 7 | - [ ] B) A DomDocument object 8 | - [ ] C) A URI 9 | - [ ] D) An array 10 | 11 |
Answer 12 |

13 | Answer: A, B, C 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0627.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0626.md) Question ID#0627.md [>>> Next question >>>](0628.md) 2 | --- 3 | 4 | Event-based XML parsing is an example of which parsing model? 5 | 6 | 7 | 8 | 9 | - [ ] A) SAX 10 | - [ ] B) DOM 11 | - [ ] C) XML Object Mapping 12 | - [ ] D) XPath 13 | 14 |
Answer 15 |

16 | Answer: A 17 |

18 |
19 | -------------------------------------------------------------------------------- /questions/0753.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0752.md) Question ID#0753.md [>>> Next question >>>](0754.md) 2 | --- 3 | 4 | Which of the following functions does not accept a stream $context parameter? 5 | 6 | - [ ] A) fgets 7 | - [ ] B) fopen 8 | - [ ] C) file_get_contents 9 | - [ ] D) file 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0806.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0805.md) Question ID#0806.md [>>> Next question >>>](0807.md) 2 | --- 3 | 4 | Which of the following types can be used as an array key? (Select three.) 5 | 6 | - [ ] A) Integer 7 | - [ ] B) Floating-point 8 | - [ ] C) Boolean 9 | - [ ] D) Array 10 | 11 |
Answer 12 |

13 | Answer: A, B, C 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0041.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0040.md) Question ID#0041.md [>>> Next question >>>](0042.md) 2 | --- 3 | 4 | What is the value of $x in the following code snippet? 5 | ```php 6 | $x = 123 == 0123; 7 | ``` 8 | 9 | - [ ] A) FALSE 10 | - [ ] B) NULL 11 | - [ ] C) 123 12 | - [ ] D) TRUE 13 | 14 |
Answer 15 |

16 | Answer: A 17 |

18 |
19 | -------------------------------------------------------------------------------- /questions/0363.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0362.md) Question ID#0363.md [>>> Next question >>>](0364.md) 2 | --- 3 | 4 | What PHP function is used to create a new array pre-filled with a sequential series of values? 5 | 6 | - [ ] A) range 7 | - [ ] B) random 8 | - [ ] C) onload 9 | - [ ] D) is_set 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0419.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0418.md) Question ID#0419.md [>>> Next question >>>](0420.md) 2 | --- 3 | 4 | What is the output of the following PHP script? 5 | 6 | ```php 7 | echo strcmp(5678, '5678'); 8 | ``` 9 | 10 | - [ ] A) 0 11 | - [ ] B) -1 12 | - [ ] C) 1 13 | - [ ] D) false 14 | 15 |
Answer 16 |

17 | Answer: A 18 |

19 |
20 | -------------------------------------------------------------------------------- /questions/0655.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0654.md) Question ID#0655.md [>>> Next question >>>](0656.md) 2 | --- 3 | 4 | PHP 5 supports which of the following XML parsing methods? 5 | 6 | 7 | 8 | 9 | - [ ] A) SAX 10 | - [ ] B) DOM 11 | - [ ] C) XPath 12 | - [ ] D) XML to Object mapping 13 | 14 |
Answer 15 |

16 | Answer: A, B, C, D 17 |

18 |
19 | -------------------------------------------------------------------------------- /questions/0752.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0751.md) Question ID#0752.md [>>> Next question >>>](0753.md) 2 | --- 3 | 4 | Which of the following is NOT a default PHP input or output stream? 5 | 6 | - [ ] A) php://error 7 | - [ ] B) php://stderr 8 | - [ ] C) php://stdout 9 | - [ ] D) php://output 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0067.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0066.md) Question ID#0067.md [>>> Next question >>>](0068.md) 2 | --- 3 | 4 | You run the following script: 5 | ```php 6 | $a = 6 - 10 % 4; 7 | echo $a; 8 | ``` 9 | What will be the output? 10 | 11 | - [ ] A) 4 12 | - [ ] B) 3 13 | - [ ] C) 5 14 | - [ ] D) 2 15 | 16 |
Answer 17 |

18 | Answer: A 19 |

20 |
21 | -------------------------------------------------------------------------------- /questions/0289.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0288.md) Question ID#0289.md [>>> Next question >>>](0290.md) 2 | --- 3 | 4 | Which of the following file permissions is set by the tempnam() function for the newly created temp file? 5 | 6 | - [ ] A) 0600 7 | - [ ] B) 0700 8 | - [ ] C) 0777 9 | - [ ] D) 1777 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0433.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0432.md) Question ID#0433.md [>>> Next question >>>](0434.md) 2 | --- 3 | 4 | What is the output of the following line of code: 5 | 6 | ```php 7 | $a = 4 << 2 + 1; 8 | echo $a; 9 | ``` 10 | 11 | - [ ] A) 32 12 | - [ ] B) 9 13 | - [ ] C) 16 14 | - [ ] D) 17 15 | 16 |
Answer 17 |

18 | Answer: A 19 |

20 |
21 | -------------------------------------------------------------------------------- /questions/0439.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0438.md) Question ID#0439.md [>>> Next question >>>](0440.md) 2 | --- 3 | 4 | What is PDO::query() equivalent to? 5 | 6 | - [ ] A) prepare(), execute() 7 | - [ ] B) execute(), fetch() 8 | - [ ] C) prepare(), fetch(), execute() 9 | - [ ] D) prepare(), fetch() 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0056.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0055.md) Question ID#0056.md [>>> Next question >>>](0057.md) 2 | --- 3 | 4 | You run the following PHP script: 5 | ```php 6 | $a = 20 % -8; 7 | echo $a; 8 | ``` 9 | 10 | - [ ] A) 4 11 | - [ ] B) Script will show an error message. 12 | - [ ] C) -2 13 | - [ ] D) -4 14 | 15 |
Answer 16 |

17 | Answer: A 18 |

19 |
20 | -------------------------------------------------------------------------------- /questions/0113.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0112.md) Question ID#0113.md [>>> Next question >>>](0114.md) 2 | --- 3 | 4 | Which of the following keywords is used to prevent a method/class to be overridden by a subclass? 5 | 6 | - [ ] A) Final 7 | - [ ] B) Protected 8 | - [ ] C) Public 9 | - [ ] D) Private 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0446.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0445.md) Question ID#0446.md [>>> Next question >>>](0447.md) 2 | --- 3 | 4 | What is the output of the following line of code? 5 | ```php 6 | echo "4" + 05 + 011 + ord('a'); 7 | ``` 8 | 9 | - [ ] A) 115 10 | - [ ] B) An error 11 | - [ ] C) 18 12 | - [ ] D) 117 13 | 14 |
Answer 15 |

16 | Answer: A 17 |

18 |
19 | -------------------------------------------------------------------------------- /questions/0478.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0477.md) Question ID#0478.md [>>> Next question >>>](0479.md) 2 | --- 3 | 4 | What is the output of the following? 5 | 6 | ```php 7 | $a = 0xf2 + 0x09; 8 | $b = $a >> 3; 9 | echo $b; 10 | ``` 11 | 12 | - [ ] A) 31 13 | - [ ] B) 0 14 | - [ ] C) 27 15 | - [ ] D) 7 16 | 17 |
Answer 18 |

19 | Answer: A 20 |

21 |
22 | -------------------------------------------------------------------------------- /questions/0483.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0482.md) Question ID#0483.md [>>> Next question >>>](0484.md) 2 | --- 3 | 4 | Which of the following session save handlers are available by default in PHP? (choose 3) 5 | 6 | - [ ] A) sqlite 7 | - [ ] B) files 8 | - [ ] C) memcache 9 | - [ ] D) postgresql 10 | 11 |
Answer 12 |

13 | Answer: A, B, C 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0520.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0519.md) Question ID#0520.md [>>> Next question >>>](0521.md) 2 | --- 3 | 4 | Which of the following are examples of the new engine executor models available in PHP 5? 5 | 6 | 7 | - [ ] A) Switch 8 | - [ ] B) Goto 9 | - [ ] C) Call 10 | - [ ] D) Conditional 11 | 12 |
Answer 13 |

14 | Answer: A, B, C 15 |

16 |
17 | -------------------------------------------------------------------------------- /questions/0591.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0590.md) Question ID#0591.md [>>> Next question >>>](0592.md) 2 | --- 3 | 4 | Which of the following methods are used to fetch data from a PDO Statement? 5 | 6 | - [ ] A) fetchColumn() 7 | - [ ] B) fetchObject() 8 | - [ ] C) fetch() 9 | - [ ] D) fetchClass() 10 | 11 |
Answer 12 |

13 | Answer: A, B, C 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0732.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0731.md) Question ID#0732.md [>>> Next question >>>](0733.md) 2 | --- 3 | 4 | What is the output of the following code? 5 | 6 | ```php 7 | $a = 1; 8 | ++$a; 9 | $a *= $a; 10 | echo $a--; 11 | ``` 12 | 13 | - [ ] A) 4 14 | - [ ] B) 3 15 | - [ ] C) 5 16 | - [ ] D) 0 17 | 18 |
Answer 19 |

20 | Answer: A 21 |

22 |
23 | -------------------------------------------------------------------------------- /questions/0106.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0105.md) Question ID#0106.md [>>> Next question >>>](0107.md) 2 | --- 3 | 4 | Which of the following operators will you use to check whether two variables contain the same instance of an object or not? 5 | 6 | - [ ] A) === 7 | - [ ] B) . 8 | - [ ] C) = 9 | - [ ] D) == 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0119.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0118.md) Question ID#0119.md [>>> Next question >>>](0120.md) 2 | --- 3 | 4 | Which of the following access controls specifies that a feature can be accessed by any other class? 5 | 6 | - [ ] A) Public 7 | - [ ] B) Protected 8 | - [ ] C) Abstract 9 | - [ ] D) Private 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0147.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0146.md) Question ID#0147.md [>>> Next question >>>](0148.md) 2 | --- 3 | 4 | Which of the following modes of the fopen() function opens a file in read and write mode and creates one if it does not exist? 5 | 6 | - [ ] A) w+ 7 | - [ ] B) r 8 | - [ ] C) w 9 | - [ ] D) r+ 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0151.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0150.md) Question ID#0151.md [>>> Next question >>>](0152.md) 2 | --- 3 | 4 | Which of the following data types cannot be directly manipulated by the client? 5 | 6 | - [ ] A) Session data 7 | - [ ] B) Remote IP address 8 | - [ ] C) Cookie data 9 | - [ ] D) User agent 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0227.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0226.md) Question ID#0227.md [>>> Next question >>>](0228.md) 2 | --- 3 | 4 | What will be the output of the following code snippet? 5 | ```php 6 | echo 'hello ' . 1 + 2 . '34'; 7 | ``` 8 | 9 | - [ ] A) 234 10 | - [ ] B) hello334 11 | - [ ] C) 0 12 | - [ ] D) hello1234 13 | 14 |
Answer 15 |

16 | Answer: A 17 |

18 |
19 | -------------------------------------------------------------------------------- /questions/0543.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0542.md) Question ID#0543.md [>>> Next question >>>](0544.md) 2 | --- 3 | 4 | Which of the following is not a valid default stream wrapper for PHP 5, assuming OpenSSL is enabled? 5 | 6 | - [ ] A) sftp:// 7 | - [ ] B) ftps:// 8 | - [ ] C) ftp:// 9 | - [ ] D) https:// 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0609.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0608.md) Question ID#0609.md [>>> Next question >>>](0610.md) 2 | --- 3 | 4 | Which from the following list is not an appropriate use of an array? 5 | 6 | - [ ] A) All of these uses are valid 7 | - [ ] B) As a list 8 | - [ ] C) As a Lookup Table 9 | - [ ] D) A Stack 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0619.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0618.md) Question ID#0619.md [>>> Next question >>>](0620.md) 2 | --- 3 | 4 | The MVC pattern in Web development involves which of the following components? 5 | 6 | 7 | 8 | 9 | - [ ] A) View 10 | - [ ] B) Controller 11 | - [ ] C) Model 12 | - [ ] D) Validation 13 | 14 |
Answer 15 |

16 | Answer: A, B, C 17 |

18 |
19 | -------------------------------------------------------------------------------- /questions/0624.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0623.md) Question ID#0624.md [>>> Next question >>>](0625.md) 2 | --- 3 | 4 | A fingerprint of a string can be determined using which of the following? 5 | 6 | 7 | 8 | 9 | - [ ] A) md5() 10 | - [ ] B) hash() 11 | - [ ] C) fingerprint() 12 | - [ ] D) None of the above 13 | 14 |
Answer 15 |

16 | Answer: A 17 |

18 |
19 | -------------------------------------------------------------------------------- /questions/0656.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0655.md) Question ID#0656.md [>>> Next question >>>](0657.md) 2 | --- 3 | 4 | Creating new nodes in XML documents using PHP can be done using which XML/PHP 5 technologies? 5 | 6 | 7 | 8 | - [ ] A) SimpleXML 9 | - [ ] B) DOM 10 | - [ ] C) XQuery 11 | - [ ] D) XPath 12 | 13 |
Answer 14 |

15 | Answer: A, B 16 |

17 |
18 | -------------------------------------------------------------------------------- /questions/0657.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0656.md) Question ID#0657.md [>>> Next question >>>](0658.md) 2 | --- 3 | 4 | Which function is best suited for removing markup tags from a string? 5 | 6 | 7 | 8 | 9 | - [ ] A) strip_tags 10 | - [ ] B) strip_markup 11 | - [ ] C) str_replace 12 | - [ ] D) preg_replace 13 | 14 |
Answer 15 |

16 | Answer: A 17 |

18 |
19 | -------------------------------------------------------------------------------- /questions/0017.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0016.md) Question ID#0017.md [>>> Next question >>>](0018.md) 2 | --- 3 | 4 | Which of the following types of errors halts the execution of a script and cannot be trapped? 5 | 6 | - [ ] A) Fatal error 7 | - [ ] B) Warning 8 | - [ ] C) Notice 9 | - [ ] D) Compile-time error 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0173.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0172.md) Question ID#0173.md [>>> Next question >>>](0174.md) 2 | --- 3 | 4 | Which of the following functions can be used to translate characters or replace substrings? 5 | 6 | - [ ] A) strtr 7 | - [ ] B) substr_replace 8 | - [ ] C) substr_compare 9 | - [ ] D) substr_count 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0357.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0356.md) Question ID#0357.md [>>> Next question >>>](0358.md) 2 | --- 3 | 4 | What is the function used to define a custom error handling function? 5 | 6 | - [ ] A) set_error_handler 7 | - [ ] B) set_exception_handler 8 | - [ ] C) error_handler 9 | - [ ] D) error_reporting 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0448.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0447.md) Question ID#0448.md [>>> Next question >>>](0449.md) 2 | --- 3 | 4 | Which of the following are configuration settings for PHP? (choose two) 5 | 6 | - [ ] A) open_basedir 7 | - [ ] B) allow_url_include 8 | - [ ] C) url_include_allow 9 | - [ ] D) allow_open_url 10 | 11 |
Answer 12 |

13 | Answer: A, B 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0540.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0539.md) Question ID#0540.md [>>> Next question >>>](0541.md) 2 | --- 3 | 4 | Identify the best approach to compare two variables in a binary-safe fashion. 5 | 6 | - [ ] A) Both strcmp() and $a === $b 7 | - [ ] B) $a == $b 8 | - [ ] C) $a === $b 9 | - [ ] D) str_compare() 10 | 11 |
Answer 12 |

13 | Answer: A 14 |

15 |
16 | -------------------------------------------------------------------------------- /questions/0568.md: -------------------------------------------------------------------------------- 1 | [<<< Previous question <<<](0567.md) Question ID#0568.md [>>> Next question >>>](0569.md) 2 | --- 3 | 4 | Which of the following tags are an acceptable way to begin a PHP Code block(PHP 5.3)? (Choose 3) 5 | 6 | - [ ] A)