🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

Sample Question on CSE 3154 Sessionals.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Document Details

Tags

web programming JavaScript PHP computer science

Full Transcript

CSE 3154 [Web Programming] Course Teacher: M.R.Hossain, Asst. Professor, ETE, RUET. Generalized type Questions ### 1. **Which server is included in the XAMPP bundle for local development?** - a) Nginx - b) Apache - c) Tomcat - d) IIS...

CSE 3154 [Web Programming] Course Teacher: M.R.Hossain, Asst. Professor, ETE, RUET. Generalized type Questions ### 1. **Which server is included in the XAMPP bundle for local development?** - a) Nginx - b) Apache - c) Tomcat - d) IIS **Answer:** b) Apache ### 2. **What does IIS stand for?** - a) Internet Information Server - b) Integrated Internet Service - c) Internet Information Services - d) Internet Information Source **Answer:** c) Internet Information Services ### 3. **In JavaScript, which method is used to attach an event handler to an element?** - a) `addListener()` - b) `attachEvent()` - c) `addEventListener()` - d) `setEventHandler()` **Answer:** c) `addEventListener()` ### 4. **Which of the following is NOT a built-in object in JavaScript?** - a) Array - b) Document - c) Window - d) FileSystem **Answer:** d) FileSystem 1 CSE 3154 [Web Programming] Course Teacher: M.R.Hossain, Asst. Professor, ETE, RUET. ### 5. **In HTML, which tag is used to create a form?** - a) `` - b) `` - c) `` - d) `` **Answer:** a) `` ### 6. **Which PHP superglobal is used to retrieve form data submitted using the GET method?** - a) $_POST - b) $_GET - c) $_REQUEST - d) $_FORM **Answer:** b) $_GET ### 7. **What does DHTML stand for?** - a) Data HTML - b) Document HTML - c) Dynamic HTML - d) Digital HTML **Answer:** c) Dynamic HTML ### 8. **Which of the following technologies is primarily used to create asynchronous web requests?** - a) JSON - b) AJAX - c) HTML - d) CSS **Answer:** b) AJAX 2 CSE 3154 [Web Programming] Course Teacher: M.R.Hossain, Asst. Professor, ETE, RUET. ### 9. **Which of the following is NOT a valid HTTP method?** - a) PUT - b) DELETE - c) CONNECT - d) LOAD **Answer:** d) LOAD ### 10. **Which function in PHP is used to connect to a MySQL database?** - a) `mysql_connect()` - b) `mysqli_connect()` - c) `connect_db()` - d) `db_connect()` **Answer:** b) `mysqli_connect()` ### 11. **What does AJAX stand for?** - a) Asynchronous JavaScript and XHTML - b) Automated JavaScript and XML - c) Asynchronous JavaScript and XML - d) Advanced JavaScript and XML **Answer:** c) Asynchronous JavaScript and XML ### 12. **Which method is used to handle an HTTP GET request in a Servlet?** - a) `doPost()` - b) `doGet()` - c) `service()` - d) `processRequest()` **Answer:** b) `doGet()` 3 CSE 3154 [Web Programming] Course Teacher: M.R.Hossain, Asst. Professor, ETE, RUET. ### 13. **Which attribute in HTML is used to define where form data is sent?** - a) `method` - b) `action` - c) `target` - d) `enctype` **Answer:** b) `action` ### 14. **In JavaScript, how can you prevent a form from being submitted?** - a) `preventSubmit()` - b) `stopForm()` - c) `preventDefault()` - d) `stopSubmit()` **Answer:** c) `preventDefault()` ### 15. **Which of the following is NOT a PHP data type?** - a) Integer - b) Float - c) Character - d) Boolean **Answer:** c) Character ### 16. **What is the purpose of `$_SESSION` in PHP?** - a) To store cookies - b) To manage form data - c) To store temporary data across multiple pages - d) To store environment variables **Answer:** c) To store temporary data across multiple pages 4 CSE 3154 [Web Programming] Course Teacher: M.R.Hossain, Asst. Professor, ETE, RUET. ### 17. **In Servlets, which method handles both GET and POST requests?** - a) `doProcess()` - b) `doBoth()` - c) `service()` - d) `process()` **Answer:** c) `service()` ### 18. **Which of the following is an XML-based technology used to describe web services?** - a) SOAP - b) AJAX - c) PHP - d) JSON **Answer:** a) SOAP ### 19. **Which JavaScript method can be used to update the contents of an HTML element dynamically?** - a) `updateContent()` - b) `innerHTML()` - c) `getElementById()` - d) `document.write()` **Answer:** d) `document.write()` ### 20. **Which of the following tags is used to include JavaScript in an HTML file?** - a) `` - b) `` - c) `` - d) `` **Answer:** c) `` 5 CSE 3154 [Web Programming] Course Teacher: M.R.Hossain, Asst. Professor, ETE, RUET. ### 21. **Which function is used to send data asynchronously in AJAX?** - a) `open()` - b) `send()` - c) `fetch()` - d) `get()` **Answer:** b) `send()` ### 22. **In PHP, which function is used to retrieve form data sent via POST?** - a) $_FORM - b) $_POST - c) $_DATA - d) $_REQUEST **Answer:** b) $_POST ### 23. **What is the main advantage of using AJAX?** - a) Faster server response - b) Page reloads are minimized - c) Simplifies HTML code - d) Provides real-time database updates **Answer:** b) Page reloads are minimized ### 24. **Which JavaScript method is used to retrieve the value of a form input field?** - a) `getElementById()` - b) `value()` - c) `getValue()` - d) `fetchValue()` **Answer:** a) `getElementById()` 6 CSE 3154 [Web Programming] Course Teacher: M.R.Hossain, Asst. Professor, ETE, RUET. ### 25. **Which of the following technologies allows for communication between a client and server using XML?** - a) DHTML - b) SOAP - c) HTML5 - d) CSS **Answer:** b) SOAP ### 26. **Which event occurs when a user moves the mouse over an HTML element?** - a) `onmouseover` - b) `onenter` - c) `onclick` - d) `onload` **Answer:** a) `onmouseover` ### 27. **What is the correct way to open a PHP block in an HTML file?** - a) `` - b) `` - c) `

Use Quizgecko on...
Browser
Browser