Computer Science MCQs · PHP What does array_map(fn($x) => $x * 2, [1, 2, 3]) return? A [1, 2, 3, 2] B [2, 2, 2] C 12 D [2, 4, 6] Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which PHP function should be used to store user passwords securely? A md5() B base64_encode() C password_hash() Correct answer D sha1() MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP What is the most effective way to prevent SQL injection when querying MySQL from PHP? A PDO prepared statements Correct answer B Escaping quotes with addslashes() C Hiding error messages from users D Converting all input to uppercase MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP What does explode(",", "red,green,blue") return? A An array of three strings Correct answer B A boolean true value C A single joined string D The number 3 MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which superglobal contains form data submitted with method="post"? A $_SERVER B $_FILES C $_POST Correct answer D $_GET MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP In PHP, what does "5" === 5 evaluate to? A null B 5 C true D false Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · PHP Which PHP function returns the number of bytes in a string? A sizeof() B length() C count() D strlen() Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Bootstrap What major dependency change did Bootstrap 5 make compared with Bootstrap 4? A It dropped support for the grid B It switched from CSS to Flash C It removed the jQuery dependency Correct answer D It made jQuery a required library MCQSEXAM Show answer Read explanation
Computer Science MCQs · Bootstrap In Bootstrap 5, the 'md' breakpoint applies at viewport widths of: A 768px and above Correct answer B 1200px and above C 992px and above D 576px and above MCQSEXAM Show answer Read explanation
Computer Science MCQs · Bootstrap Which Bootstrap 5 utility class hides an element on all screen sizes? A invisible-all B d-none Correct answer C hidden D no-display MCQSEXAM Show answer Read explanation
Computer Science MCQs · Bootstrap How many columns does the standard Bootstrap grid system use? A 24 B 10 C 16 D 12 Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery Which jQuery method gets the current value of a form input? A .html() B .text() C .attr() D .val() Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery Why use $('#list').on('click', 'li', handler) instead of $('li').click(handler)? A It works only on the first li element B It also handles li items added later Correct answer C It prevents the click event from firing D It runs the handler twice for safety MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery What does the jQuery selector $('.item') select? A All elements with class 'item' Correct answer B Only the first 'item' element C The element with id 'item' D All <item> tag elements MCQSEXAM Show answer Read explanation
Computer Science MCQs · Jquery When does code inside $(document).ready() run? A When the user first clicks B When every image has loaded C When the DOM is fully built Correct answer D Before the HTML is parsed MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL What does prefixing a SELECT query with EXPLAIN do in MySQL? A Translates the query into English B Runs the query twice for accuracy C Adds comments to the result set D Shows the query execution plan Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL What is the key difference between CHAR and VARCHAR in MySQL? A CHAR allows NULL; VARCHAR does not allow NULL B CHAR is for Unicode; VARCHAR is ASCII only C CHAR stores numbers; VARCHAR stores text D CHAR is fixed-length; VARCHAR is variable-length Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL Which MySQL function joins values from multiple rows of a group into one string? A CONCAT_WS() B STRING_AGG() C GROUP_CONCAT() Correct answer D JOIN_ROWS() MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL In MySQL, which rows does SELECT * FROM t LIMIT 5 OFFSET 10 return (in the given order)? A Rows 11 to 15 Correct answer B Rows 5 to 10 C Rows 1 to 5 D Rows 10 to 15 MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL What is the default port number of a MySQL server? A 3306 Correct answer B 5432 C 1433 D 8080 MCQSEXAM Show answer Read explanation
Computer Science MCQs · Software Engineering Which UML diagram shows how external actors interact with a system's functions? A Deployment diagram B Component diagram C Class diagram D Use case diagram Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Software Engineering In Git, what is the difference between commit and push? A Both only stage files without saving them B Commit uploads to a remote; push saves locally C Both send changes straight to the remote D Commit saves locally; push uploads to a remote Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Software Engineering In software development, 'technical debt' refers to: A Unpaid licence fees for third-party tools B Future rework caused by shortcuts now Correct answer C Money borrowed to buy development hardware D Salaries owed to the development team MCQSEXAM Show answer Read explanation
Computer Science MCQs · Software Engineering The Agile Manifesto values individuals and interactions over: A Working software B Processes and tools Correct answer C Responding to change D Customer collaboration MCQSEXAM Show answer Read explanation
Computer Science MCQs · Software Engineering A program's control flow graph has 9 edges, 7 nodes and 1 connected component. What is its cyclomatic complexity? A 2 B 16 C 3 D 4 Correct answer MCQSEXAM Show answer Read explanation