admin Oct, Fri, 2024 EXAM JAVASCRIPT PROGRAMMING EXAM 123456789101112131415161718192021222324252627282930 Exam Instructions: Total Number of Questions: 30 You will be required to answer a total of 30 multiple-choice questions. Time Limit: 15 minutes for the entire exam Once the time is up, the exam will automatically submit. Passing Criteria: A minimum score of 50% is required to pass the exam Multiple Attempts: You are allowed to take the exam multiple times. Only your highest score will be considered for certification. Additional Instructions: The exam timer cannot be paused once it begins. Good luck, and feel free to retake the exam to improve your score! JAVASCRIPT PROGRAMMING EXAM Test your JAVASCRIPT skills with a challenging exam designed to evaluate your knowledge in programming, data structures, and algorithms The certificate will be generated based on the information you provide in the form, so please ensure that all details are entered correctly. NameEmailPhone NumberUniversityCollegeDegreeDepartmentPass Out YearPass Out Year2014201520162017201820192020202120222023202420252026202720282029 1 / 30 1) How can you create a singleton in JavaScript? A) Control with constructors only B) Limits to multiple instances C) Avoid using for global access D) Ensures single instance 2 / 30 2) How can you create a self-invoking function in JavaScript? A) Limits to named functions B) Control with callbacks only C) Avoid using IIFEs D) Executes immediately 3 / 30 3) What does the shift() method do in JavaScript? A) Avoid using for empty arrays B) Removes the first element C) Limits to the last element D) Control with loops only 4 / 30 4) What is the purpose of the slice() method in JavaScript? A) Creates a new array B) Limits to mutating original C) Avoid using for cloning D) Control with loops only 5 / 30 5) How can you prevent object property modification in JavaScript? A) Limits to shallow copies B) Prevents property changes C) Avoid using for inheritance D) Control with Object.seal only 6 / 30 6) What is the purpose of Object.keys() in JavaScript? A) Limits to property values B) Retrieves object keys C) Avoid using for nested objects D) Control with for…in only 7 / 30 7) What is the purpose of Object.assign() in JavaScript? A) Limits to shallow copy B) Avoid using for immutability C) Merges objects D) Control with destructuring only 8 / 30 8) What does the this keyword refer to in an arrow function? A) Lexical binding of context B) Control with bind only C) Avoid using for method calls D) Limits to global context 9 / 30 9) What is the purpose of the Object.create() method in JavaScript? A) Control with classes only B) Avoid using create for objects C) Creates an object with a prototype D) Limits to constructor functions 10 / 30 10) What does the every() method do in JavaScript? A) Tests all elements B) Avoid using for empty arrays C) Control with iteration only D) Limits to some elements only 11 / 30 11) How can you check if a value is an array in JavaScript? A) Checks if a value is an array B) Limits to type checking only C) Control with manual checks only D) Avoid using instanceof 12 / 30 12) What is the purpose of window.localStorage in JavaScript? A) Avoid using for security B) Limits to session only C) Stores data persistently D) Control with cookies only 13 / 30 13) What is the output of console.log([] + {})? A) "[object Array]" B) "" C) "[object Object]" D) "undefined" 14 / 30 14) How can you create a new object that inherits from another object? A) Control with constructor functions only B) Limits to class inheritance only C) Creates an object with a prototype D) Avoid using for complexity 15 / 30 15) What does the Symbol type represent in JavaScript? A) Avoid using for non-primitive types B) Limits to string values C) Control with arrays only D) Creates unique identifiers 16 / 30 16) What does the Object.keys() method return? A) Limits to values only B) Returns an array of keys C) Avoid using Object methods D) Control with loops only 17 / 30 17) How can you implement private methods in JavaScript classes? A) Creates private methods B) Avoid using for clarity C) Limits to public methods only D) Control with closures only 18 / 30 18) What does the filter() method do in JavaScript? A) Limits to mapping B) Avoid using for empty arrays C) Control with loops only D) Filters array elements 19 / 30 19) How do you create an object with a private variable in JavaScript? A) Control with global variables only B) Encapsulates private variables C) Avoid using closures D) Limits to public access 20 / 30 20) How can you create an asynchronous generator in JavaScript? A) Avoid using for callbacks B) Limits to synchronous functions C) Control with regular generators only D) Creates async generator 21 / 30 21) What is the purpose of the finally block in a try-catch statement? A) Control with manual error handling only B) Limits to successful execution C) Always executes after try/catch D) Avoid using finally for clarity 22 / 30 22) What is the purpose of the Function.call() method in JavaScript? A) Limits to static context B) Control with apply only C) Avoid using call for binding D) Invokes a function with context 23 / 30 23) What does the map() method return in JavaScript? A) Empty array B) Original array C) Undefined values D) A new array 24 / 30 24) What does the Promise.allSettled() method do? A) Control with race conditions only B) Limits to resolved promises only C) Waits for all promises D) Avoid using for parallel execution 25 / 30 25) What does Object.freeze() do in JavaScript? A) Makes an object immutable B) Allows property addition C) Enables property deletion D) Limits to shallow freezing 26 / 30 26) What is the purpose of Promise.race()? A) Resolves with the first promise B) Avoid using for clarity C) Control with Promise.all only D) Limits to all promises 27 / 30 27) What is the purpose of the call() method in JavaScript? A) Avoid using call for clarity B) Control with apply only C) Calls a function with context D) Limits to event handling 28 / 30 28) How can you handle multiple asynchronous operations in parallel? A) Limits to sequential execution B) Executes promises in parallel C) Control with async/await only D) Avoid using for small tasks 29 / 30 29) How can you prevent an object from being modified in JavaScript? A) Limits to shallow immutability B) Avoid using freeze for clarity C) Control with deep copies only D) Prevents modifications 30 / 30 30) How do you handle asynchronous code in a synchronous-like manner? A) Control with traditional functions only B) Limits to callback handling C) Avoid using for clarity D) Makes async code look synchronous Your score is LinkedIn Facebook Twitter VKontakte 0% ExamWEB DEVELOPMENT EXAM...Read MoreREACT JS PROGRAMMING EXAM...Read MorePYTHON FULL STACK...Read MorePYTHON EXAMS ...Read MoreMYSQL...Read MoreMACHINE LEARNING...Read MoreJAVASCRIPT PROGRAMMING EXAM...Read MoreJAVA SPRING BOOT...Read MoreJAVA PROGRAMMING EXAM...Read MoreJAVA FULL STACK...Read MoreHTML PROGRAMMING EXAM...Read MoreDEEP LEARNING...Read MoreDATA SCIENCE...Read MoreCSS PROGRAMMING EXAM...Read MoreANGULAR JS PROGRAMMING EXAM...Read More 16Share on WhatsApp10Share on LinkedIn5Share on YouTube9Share on Facebook Comments 0