

MCQOPTIONS
Saved Bookmarks
This section includes 411 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
351. |
Which of the below symbols is a newline character? |
A. | |
B. | |
C. | /n |
D. | /r |
Answer» C. /n | |
352. |
What will be the output of the following PHP code? |
A. | 5 === 5 |
B. | Error |
C. | 1 |
D. | False |
Answer» D. False | |
353. |
. What will be the output of the following PHP code? |
A. | get |
B. | true |
C. | false |
D. | clueget |
Answer» E. | |
354. |
What will be the output of the following code? |
A. | 123 |
B. | 111 |
C. | 000 |
D. | 011 |
Answer» B. 111 | |
355. |
Which statement will output $x on the screen? |
A. | echo “$x”; |
B. | echo “$$x”; |
C. | echo “/$x”; |
D. | echo “$x;”; |
Answer» B. echo “$$x”; | |
356. |
Which of the below statements is equivalent to $add += $add ? |
A. | $add = $add |
B. | $add = $add +$add |
C. | $add = $add + 1 |
D. | $add = $add + $add + 1 |
Answer» C. $add = $add + 1 | |
357. |
What will be the output of the following PHP code? |
A. | Error |
B. | 35 students |
C. | 35 |
D. | 25 students |
Answer» D. 25 students | |
358. |
What will be the output of the following PHP code? |
A. | 1 |
B. | Error |
C. | 1234 |
D. | 2 |
Answer» D. 2 | |
359. |
What will be the output of the following PHP code? |
A. | a |
B. | Error |
C. | $var |
D. | r |
Answer» E. | |
360. |
Which of the following PHP statements will output Hello World on the screen? i) echo (“Hello World”); ii) print (“Hello World”); iii) printf (“Hello World”); iv) sprintf (“Hello World”); |
A. | i) and ii) |
B. | i), ii) and iii) |
C. | All of the mentioned |
D. | i), ii) and iv) |
Answer» C. All of the mentioned | |
361. |
What will be the output of the following code? |
A. | Error |
B. | My name is BobBob |
C. | My name is BobMy name is Bob |
D. | My name is Bob Bob |
Answer» D. My name is Bob Bob | |
362. |
Which of following variables can be assigned a value to it? i) $3hello ii) $_hello iii) $this iv) $This |
A. | All of the mentioned |
B. | Only ii) |
C. | ii), iii) and iv) |
D. | ii) and iv) |
Answer» E. | |
363. |
What will be the output of the following php code? |
A. | 3 |
B. | 1+2 |
C. | erorr |
D. | 12 |
Answer» B. 1+2 | |
364. |
What will be the output of the following php code? |
A. | 3 |
B. | 1+2 |
C. | 1.+.2 |
D. | Error |
Answer» C. 1.+.2 | |
365. |
Which of the following php statement/statements will store 111 in variable num? i) int $num = 111; ii) int mum = 111; iii) $num = 111; iv) 111 = $num; |
A. | Both i) and ii) |
B. | All of the mentioned |
C. | Only iii) |
D. | Only i) |
Answer» D. Only i) | |
366. |
We can use ___ to comment a single line? i) /? ii) // iii) # iv) /* */ |
A. | Only ii) |
B. | i), iii) and iv) |
C. | ii), iii) and iv) |
D. | Both ii) and iv) |
Answer» D. Both ii) and iv) | |
367. |
Which version of PHP introduced Try/catch Exception? |
A. | PHP 4 |
B. | PHP 5 |
C. | PHP 5.3 |
D. | PHP 6 |
Answer» C. PHP 5.3 | |
368. |
Which of the following must be installed on your computer so as to run PHP script? i) Adobe Dreamweaver ii) PHP iii) Apache iv) IIS |
A. | All of the mentioned. |
B. | Only ii) |
C. | ii) and iii) |
D. | ii), iii) and iv) |
Answer» E. | |
369. |
Which of the following is/are a PHP code editor? i) Notepad ii) Notepad++ iii) Adobe Dreamweaver iv) PDT |
A. | Only iv) |
B. | All of the mentioned. |
C. | i), ii) and iii) |
D. | Only iii) |
Answer» C. i), ii) and iii) | |
370. |
A PHP script should start with ___ and end with ___ |
A. | < php > |
B. | < ? php ?> |
C. | <? ?> |
D. | <?php ?> |
Answer» D. <?php ?> | |
371. |
PHP files have a default file extension of_______ |
A. | .html |
B. | .xml |
C. | .php |
D. | .ph |
Answer» D. .ph | |
372. |
What does PHP stand for? i) Personal Home Page ii) Hypertext Preprocessor iii) Pretext Hypertext Processor iv) Preprocessor Home Page |
A. | Both i) and iii) |
B. | Both ii) and iv) |
C. | Only ii) |
D. | Both i) and ii) |
Answer» E. | |
373. |
What will be the output of the following PHP code if date is 24/02/2008? |
A. | Sunday, February 24th 2008 |
B. | Sunday, 02 24 2008 |
C. | Sunday, 24 02 2008 |
D. | Sunday, 24th February 2008 |
Answer» B. Sunday, 02 24 2008 | |
374. |
Which of the following is the right way to use the DateTime class? |
A. | $date = get_Class(DateTime); |
B. | $date = class DateTime; |
C. | $date = new DateTime(); |
D. | $date = new class DateTime(); |
Answer» D. $date = new class DateTime(); | |
375. |
To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed? |
A. | $date = Date(“22 JUNE 2013”) |
B. | $date = new Date(“JUNE 22 2013”) |
C. | $date = DateTime(“22 JUNE 2013”) |
D. | $date = new DateTime(“22 JUNE 2013”) |
Answer» E. | |
376. |
Which one of the following function is capable of reading a specific number of characters form a file? |
A. | fgets() |
B. | fget() |
C. | fileget() |
D. | filegets() |
Answer» B. fget() | |
377. |
What will be the output of the following PHP code? |
A. | Array ( [0] => pasta [1] => steak [2] => fish [3] => potatoes ) |
B. | Array ( [3] => potatoes ) |
C. | Array ( [1] => steak ) |
D. | Array ( [0] => potatoes ) |
Answer» D. Array ( [0] => potatoes ) | |
378. |
What will be the output of the following PHP code? |
A. | Error |
B. | Username must be all lowercase! |
C. | Username is all lowercase! |
D. | No Output is returned |
Answer» C. Username is all lowercase! | |
379. |
What will be the output of the following PHP code? |
A. | Peter_is_a_great_guy! |
B. | Peterisagreatguy! |
C. | Peter is a great guy! |
D. | Error |
Answer» D. Error | |
380. |
A Master Page contains a ScriptManager control and a user wants the AJAX functionality on content page then which control is necessary on content page. |
A. | AsyncPostBackTrigger |
B. | ScriptManager |
C. | ScriptManagerProxy |
D. | None of the above |
Answer» D. None of the above | |
381. |
All of the following are controls of Ajax except |
A. | ScriptManager |
B. | ScriptManagerProxy |
C. | UpdateData |
D. | UpdatePanel |
Answer» D. UpdatePanel | |
382. |
Which of the following is true ? 1. AJAX is a platform-independent technology 2. AJAX can work with web application 3. AJAX can only work with ASP.NET 4. AJAX is a platform-dependent technology |
A. | 1,2 |
B. | 1,2,3 |
C. | 1,3,4 |
D. | None of the above mentioned |
Answer» B. 1,2,3 | |
383. |
Which method is used to dynamically register client script from code? |
A. | Page.ClientScript.RegisterClientScriptBlock |
B. | RegisterScript |
C. | Page.ClientScript |
D. | None of the above |
Answer» B. RegisterScript | |
384. |
What will be the output of the following PHP code? |
A. | No output is returned |
B. | Integer is not valid |
C. | Integer is valid |
D. | Error |
Answer» D. Error | |
385. |
1. Which of the following is/are an external data? i) Cookies ii) Input data from a form iii) Server Variables iv) Web services data |
A. | Only ii |
B. | ii and iii |
C. | None of the above mentioned |
D. | All of the above mentioned |
Answer» E. | |
386. |
What will be printed ? A Simple Page |
A. | "Compile Error" will be printed |
B. | "Compile" will be printed |
C. | Nothing will be printed |
D. | None of the above |
Answer» B. "Compile" will be printed | |
387. |
Multiple JS statements are written inside pair of ________ to form a statement block. |
A. | Pair of Square Brackets |
B. | Pair of Round Brackets |
C. | Pair of Curly braces |
D. | None of the above. |
Answer» D. None of the above. | |
388. |
Which of the following method scopes is/are not supported by PHP? i) private ii) final iii) static iv) abstract |
A. | Only ii |
B. | Only IV |
C. | II and IV |
D. | None of the above. |
Answer» E. | |
389. |
Which of the following Attribute is used to include External JS code inside your HTML Document ? |
A. | link |
B. | script |
C. | src |
D. | ext |
Answer» D. ext | |
390. |
JavaScript is ______ Side Scripting Language. |
A. | Server |
B. | ISP |
C. | Browser |
D. | None of the above. |
Answer» D. None of the above. | |
391. |
Which of the following is the correct syntax to redirect a url using JavaScript? |
A. | document.location='http://www.newlocation.com'; |
B. | browser.location='http://www.newlocation.com'; |
C. | navigator.location='http://www.newlocation.com'; |
D. | window.location='http://www.newlocation.com'; |
Answer» E. | |
392. |
Which of the following function of String object creates an HTML anchor that is used as a hypertext target? |
A. | anchor() |
B. | link() |
C. | blink() |
D. | big() |
Answer» B. link() | |
393. |
SOAP is an _________ to let applications exchange information over HTTP. |
A. | XML-based protocol |
B. | JAVA-based protocol |
C. | PHP-based protocol |
D. | .NET-based protocol |
Answer» B. JAVA-based protocol | |
394. |
__________ is the basis for Web services |
A. | PHP |
B. | XML |
C. | CGI |
D. | CSS |
Answer» C. CGI | |
395. |
The basic Web Services platform is combination of _____ and _______. |
A. | CSS + HTTP |
B. | XML + HTML |
C. | XML + HTTP |
D. | CSS + JAVA |
Answer» D. CSS + JAVA | |
396. |
The search results are generally presented in a line of results often referred to as ___________. |
A. | Tag List |
B. | Search Engine Results Pages |
C. | Search Engine Pages |
D. | Category List |
Answer» C. Search Engine Pages | |
397. |
Which of the following objects can be used in expression and scriplets in JSP without explicitly declaring them? |
A. | Request and response only |
B. | Response and session only |
C. | Session and request only |
D. | Session,request and response |
Answer» D. Session,request and response | |
398. |
Whenever crawler crawls the website then any page not having a link is called as ________. |
A. | Dead End Page |
B. | Absolute Page |
C. | Home Page |
D. | Doorway Page |
Answer» B. Absolute Page | |
399. |
Which of the following layer in Web Service Protocol Stack is responsible for describing the public interface to a specific web service? |
A. | Service Transport |
B. | XML Messaging |
C. | Service Description |
D. | Service Discovery |
Answer» D. Service Discovery | |
400. |
A script is a |
A. | Program or sequence of instructions that is interpreted or carried out by processor directly |
B. | Program or sequence of instruction that is interpreted or carried out by another program |
C. | Program or sequence of instruction that is interpreted or carried out by web server only |
D. | None of the above. |
Answer» C. Program or sequence of instruction that is interpreted or carried out by web server only | |