admin Oct, Fri, 2024 EXAM ANGULAR JS 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! ANGULAR JS PROGRAMMING EXAM Test your ANGULAR JS 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) What is the purpose of ng-if compared to ng-show in AngularJS? A) ng-show removes DOM elements based on the condition B) Both manage visibility of elements C) Both handle static elements D) ng-if removes DOM elements based on the condition 2 / 30 2) What is the significance of ng-bind in AngularJS? A) To bind the content of an element to a model property B) To manipulate the DOM directly C) To manage only static content D) To handle form submissions exclusively 3 / 30 3) How can you create a reusable form validation component in AngularJS? A) Using custom directives for validation B) Using built-in validation directives only C) Using controller functions for validation D) Using services to manage validation logic 4 / 30 4) How do you implement caching for HTTP requests in AngularJS? A) Use localStorage for caching B) Disable caching headers C) Use $cache service directly D) Set cache to true or provide a cache object 5 / 30 5) What is the purpose of $q.all() in AngularJS? A) To chain promises sequentially B) To reject all promises C) To run multiple promises in parallel and handle their results collectively D) To create a new promise 6 / 30 6) How can you create a filter in AngularJS? A) module.filter('filterName', function() { return function(input) { … }; }) B) angular.filter('filterName', {}) C) module.createFilter('filterName') D) module.define('filterName', function() {}) 7 / 30 7) What is the role of $controllerProvider.register() in AngularJS, and how does it facilitate dynamic controller registration? A) To compile templates with dynamic controllers B) To handle HTTP requests with controllers C) To register controllers dynamically at runtime D) To manage scope inheritance 8 / 30 8) What is the role of $locationProvider in AngularJS? A) To handle HTTP requests B) To configure deep linking paths and URL rewriting methods C) To manage state transitions D) To compile templates 9 / 30 9) What is the purpose of $parse service in AngularJS, and how can it be utilized in custom directives? A) To manage scope inheritance B) To compile and evaluate expressions within custom directives C) To bind data to the view D) To handle HTTP request parsing 10 / 30 10) What is the role of $filter in AngularJS? A) To manipulate the DOM directly B) To format and transform data for display C) To manage only static transformations D) To handle form submissions exclusively 11 / 30 11) How do you implement custom animations for directive lifecycle events in AngularJS using ngAnimate? A) By using inline styles for animations B) By defining CSS classes for lifecycle events and using ngAnimate C) By embedding animations in the controller D) By using JavaScript-based animations only 12 / 30 12) What is the purpose of $rootScope.$on(‘$routeChangeStart’, function(event, next, current)) in AngularJS? A) To handle HTTP errors during routing B) To execute logic before a route change begins C) To execute logic after a route change completes D) To manage scope inheritance 13 / 30 13) What is the purpose of $location service in AngularJS, and how is it used for URL management? A) To manipulate the browser's URL and manage routing B) To manage only query parameters C) To define static routes only D) To handle HTTP requests 14 / 30 14) How do you implement pagination with server-side data in AngularJS? A) By loading all data at once and paginating on the client B) By hiding/showing elements based on page number C) By using ng-repeat to handle pagination D) By fetching paginated data from the server using $http with page parameters 15 / 30 15) How can you implement custom routing logic in AngularJS using ui-router? A) By using $location service only B) By defining custom resolve properties and intercepting state transitions C) By using ng-include for dynamic routes D) By manually parsing URLs in controllers 16 / 30 16) What is the use of $templateCache.put() method in AngularJS? A) To clear cached templates B) To retrieve templates from the cache C) To manage cache size D) To manually add templates to the cache 17 / 30 17) How can you implement custom validation in AngularJS forms using directives? A) By embedding validation in controllers B) By hardcoding validation rules C) By creating directives with validation logic D) By using built-in AngularJS validators only 18 / 30 18) How do you implement a directive for a custom tooltip in AngularJS? A) By creating a directive that displays a tooltip on hover B) By managing tooltips exclusively in services C) By using only built-in tooltip features D) By hardcoding tooltip logic in the view 19 / 30 19) How do you implement a multi-step form in AngularJS applications? A) By using separate views and controlling navigation B) By managing steps exclusively in controllers C) By using only built-in form features D) By hardcoding all steps in a single view 20 / 30 20) What is the role of $http in AngularJS? A) To manipulate the DOM directly B) To manage only static data submissions C) To handle form submissions exclusively D) To make AJAX requests to the server 21 / 30 21) How do you implement custom CSS classes that respond to directive states in AngularJS using ngAnimate? A) By using $animate service exclusively B) By embedding styles directly in directives C) By defining CSS animations for specific classes and using ngAnimate D) By using inline styles for animations 22 / 30 22) How do you create a reusable service in AngularJS? A) By using only built-in services B) By managing all logic in the view C) By defining a factory or service with shared methods D) By hardcoding logic in controllers 23 / 30 23) What is the significance of ng-model in AngularJS? A) To manipulate the DOM directly B) To bind the value of inputs to a model property C) To handle form submissions exclusively D) To manage only static data 24 / 30 24) How can you implement a custom logging service in AngularJS? A) By managing logging exclusively in directives B) By hardcoding logging logic in controllers C) By using only built-in logging features D) By defining a service that captures and manages logs 25 / 30 25) What is the difference between $scope and this in AngularJS controllers? A) Both are the same B) $scope is the scope object; this is the controller instance C) $scope is for services; this is for controllers D) $scope is the controller; this is the scope 26 / 30 26) What is the use of $rootScope.$applyAsync in AngularJS, and how does it differ from $scope.$apply? A) To cancel pending digest cycles B) To delay the execution of $apply C) To schedule an expression for later evaluation, batching $apply calls D) To immediately execute an expression 27 / 30 27) How do you implement custom two-way data binding in AngularJS directives without using ng-model? A) By using ng-repeat for binding B) By requiring ngModel and setting up parsers and formatters C) By using ng-bind exclusively D) By using $watch without directives 28 / 30 28) What is the role of $scope.$apply() in AngularJS? A) To handle form submissions exclusively B) To trigger a digest cycle manually C) To manage only routing changes D) To manipulate the DOM directly 29 / 30 29) What is the difference between a service and a factory in AngularJS? A) Service is instantiated with new; factory is a function that returns an object B) Both are the same C) Service returns an object; factory uses new D) Factory is for data; service is for logic 30 / 30 30) What is the purpose of ng-repeat in AngularJS? A) To iterate over arrays or objects for list rendering B) To manipulate the DOM directly C) To manage only static lists D) To handle form submissions exclusively Your score is LinkedIn Facebook Twitter VKontakte 0% ExamNo post found
admin Oct, Fri, 2024 EXAM REACT JS 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! REACT JS PROGRAMMING EXAM Test your REACT JS 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 implement theme switching in React? A) By using context to manage theme state B) By using local storage C) By hardcoding styles D) By modifying the DOM directly 2 / 30 2) How do you implement a responsive image gallery in React? A) By using local storage B) By using static images only C) By managing state and using CSS for responsiveness D) By modifying the DOM directly 3 / 30 3) How do you implement theming in React? A) By using context and styled-components B) By hardcoding styles C) By ignoring theming D) By modifying the DOM directly 4 / 30 4) What is the purpose of useDeferredValue? A) To manage state B) To handle side effects C) To defer state updates D) To manage context 5 / 30 5) What does the useRef hook return? A) A new state B) A memoized value C) A mutable ref object D) A cleanup function 6 / 30 6) How can you implement a responsive navbar in React? A) By using local storage B) By managing open/close state C) By using static content only D) By using CSS and state management 7 / 30 7) What does React.lazy achieve in a React application? A) Loads components asynchronously B) Manages state C) Handles events D) Modifies the DOM directly 8 / 30 8) How do you test React components? A) By using console.log B) By using local storage C) By using Jest and React Testing Library D) By using global variables 9 / 30 9) How can you implement a modal dialog in React? A) By using local storage B) By managing open/close state C) By using static content only D) By modifying the DOM directly 10 / 30 10) How do you optimize performance for large lists in React? A) By using local storage B) By using static components C) By modifying the DOM directly D) By using libraries like react-window 11 / 30 11) What is the role of componentWillUnmount? A) To manage state B) To handle updates C) To perform cleanup tasks D) To execute code after component is rendered 12 / 30 12) What is the significance of useMemo in React? A) Returns a memoized value B) Manages state C) Handles events D) Modifies the DOM directly 13 / 30 13) What is the purpose of the useDebugValue hook in React? A) To manage state B) To handle events C) To optimize performance D) To provide a label for custom hooks in DevTools 14 / 30 14) What is a pure component? A) A component that manages state B) A component that always re-renders C) A component that only re-renders if props or state change D) A component that fetches data 15 / 30 15) How can you improve code splitting in a React application? A) By using static imports B) By loading all components upfront C) By using dynamic imports with React.lazy D) By optimizing CSS files 16 / 30 16) What does the React.StrictMode component do? A) To manage state B) To optimize performance C) To highlight potential issues D) To modify the DOM 17 / 30 17) What is the purpose of React.lazy? A) Enables dynamic import of components B) Handles state management C) Prevents re-renders D) Modifies the DOM directly 18 / 30 18) What is the purpose of React.forwardRef? A) To pass refs to child components B) To manage state C) To optimize performance D) To handle events 19 / 30 19) How can you implement a search autocomplete feature in React? A) By using local storage B) By managing search input in state C) By using static content only D) By modifying the DOM directly 20 / 30 20) What is the purpose of React.PureComponent? A) To manage state B) To handle events C) To optimize rendering D) To create context 21 / 30 21) How can you implement a tooltip in React? A) By using local storage B) By using static content only C) By modifying the DOM directly D) By managing state for visibility 22 / 30 22) What does React.createContext() do? A) Creates a Context object B) Manages state C) Handles side effects D) Modifies the DOM directly 23 / 30 23) What is the role of Redux Thunk? A) To manage state B) To allow action creators to return functions C) To optimize performance D) To modify the DOM directly 24 / 30 24) What is the role of useContext hook? A) To manage state B) To create context C) To access context values directly D) To optimize performance 25 / 30 25) How can you implement a multi-language support in React? A) Using context and react-i18next B) By hardcoding languages C) By using local storage D) By modifying the DOM directly 26 / 30 26) What is the purpose of the useTransition hook in React 18? A) To manage state B) To handle side effects C) To mark updates as urgent D) To manage rendering priority 27 / 30 27) What is the significance of the useImperativeHandle hook? A) Customizes the exposed ref value B) Prevents rendering C) Handles side effects D) Modifies the DOM directly 28 / 30 28) What does React.PureComponent do? A) Prevents unnecessary re-renders B) Manages state C) Handles events D) Modifies the DOM directly 29 / 30 29) How do you perform optimistic updates in React? A) By using useEffect B) By updating the state before receiving a response C) By using async/await D) By waiting for the server response 30 / 30 30) What is the significance of the error boundary? A) To manage state B) To handle events C) To catch errors and provide fallback UI D) To modify the DOM Your score is LinkedIn Facebook Twitter VKontakte 0% ExamNo post found
admin Oct, Fri, 2024 EXAM WEB DEVELOPMENT EXAM 123456789101112131415161718192021222324252627282930313233343536373839404142434445 Exam Instructions: Total Number of Questions: 45 You will be required to answer a total of 45 multiple-choice questions. Time Limit: 20 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! WEB DEVELOPMENT EXAM Test your WEB DEVELOPMENT 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 / 45 1) What is the purpose of the type attribute in the 2 / 45 2) How do you define keyboard shortcuts for custom elements in HTML5? A) Limit to mouse navigation B) Avoid using custom shortcuts C) Control with JavaScript only D) Hide keyboard shortcuts 3 / 45 3) How do you implement accessibility for dynamic content updates in HTML5? A) Set fixed content only B) Use JavaScript exclusively C) Avoid dynamic content D) Limit to forms only 4 / 45 4) How do you lazy load scripts in HTML5? A) Use lazyload attribute B) Use defer or async attributes C) Add scripts at the bottom of <body> D) Use srcset in script tag 5 / 45 5) What is the difference between the and elements? A) Both are interchangeable B) Both can only display media C) <embed> limits content types D) Controls layout with JavaScript 6 / 45 6) What does the srcset attribute do in the tag? A) Sets image dimensions B) Specifies image formats C) Loads images asynchronously D) Enables lazy loading 7 / 45 7) How does the contenteditable attribute in HTML5 work? A) Enables drag-and-drop B) Makes the content editable C) Allows rich text formatting D) Disables content changes 8 / 45 8) How do you implement keyboard navigation for custom controls in HTML5? A) Limit to mouse interactions B) Avoid custom controls C) Set fixed tab orders D) Hide elements from navigation 9 / 45 9) What is the use of the tag in HTML5? A) Defines styles within HTML B) Loads scripts for interactivity C) Embeds images D) Sets viewport properties 10 / 45 10) How can you manage video playback using HTML5? A) Control playback with CSS B) Use JavaScript only for loading C) Limit to audio playback only D) Set fixed durations 11 / 45 11) What is the role of the aria-label attribute in HTML5? A) Sets styles for elements B) Controls input types C) Limits user interaction D) Enhances SEO 12 / 45 12) What is the use of the tag in HTML5? A) Sets page titles B) Controls styles for icons C) Limits icon types D) Enhances SEO 13 / 45 13) Which element in HTML5 is used for embedding external interactive content like a web page? A) <iframe> B) <object> C) <frame> D) <embed> 14 / 45 14) How can you implement a fixed header in an HTML5 document? A) Set headers to position: absolute B) Use JavaScript for scrolling C) Avoid fixed headers entirely D) Limit to static headers 15 / 45 15) How do you handle accessibility in complex HTML5 layouts? A) Avoid complex layouts entirely B) Use images for navigation C) Limit content to text only D) Use JavaScript exclusively 16 / 45 16) How can you create a CSS grid layout with variable column widths? A) Use fr units for flexible widths B) Limit to fixed sizes C) Avoid using grids D) Control with JavaScript only 17 / 45 17) What does the white-space property do in CSS? A) Limits visibility B) Controls layout properties C) Controls whitespace handling D) Hides content 18 / 45 18) How do you create a CSS keyframe animation? A) Avoid using animations B) Limit to static effects C) Control with JavaScript only D) Defines animation stages with keyframes 19 / 45 19) How can you create a CSS grid with equal column widths? A) Avoid using grids B) Creates equal column widths in grid C) Limits to fixed sizes D) Control with JavaScript only 20 / 45 20) How can you create a CSS layout that uses custom properties with fallback values? A) Control with JavaScript only B) Limits to fixed values C) Uses custom properties with fallbacks D) Avoid using variables 21 / 45 21) How do you create a responsive image gallery in CSS? A) Use grid/flexbox for responsive galleries B) Avoid using galleries C) Control with JavaScript only D) Limit to static layouts 22 / 45 22) How can you create a responsive text layout using CSS? A) Limit to static text sizes B) Avoid using relative units C) Use relative units for responsive text D) Control with JavaScript only 23 / 45 23) How can you create a CSS layout with media queries for different devices? A) Avoid using media queries B) Applies styles based on device features C) Limits to fixed layouts D) Control with JavaScript only 24 / 45 24) What does the position: sticky; property do? A) Sticky position changes on scroll B) Hides elements C) Limits element positioning D) Controls stacking order 25 / 45 25) How do you create a CSS flip card effect? A) Control with JavaScript only B) Limit to hover effects only C) Avoid using flip effects D) Use transforms for flip effect 26 / 45 26) How can you create a module in JavaScript? A) Control with function encapsulation only B) Enables modular programming C) Limits to global scope D) Avoid using modules for simplicity 27 / 45 27) How can you handle errors in JavaScript? A) Avoid using try-catch B) Control with callbacks only C) Limits to runtime errors D) Catches and handles exceptions 28 / 45 28) 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 29 / 45 29) What is the output of typeof null in JavaScript? A) "null" B) "string" C) "undefined" D) "object" 30 / 45 30) What does the Object.keys() method do? A) Retrieves object keys B) Control with loops only C) Avoid using for non-enumerable properties D) Limits to values only 31 / 45 31) What does the Array.every() method do? A) Avoid using every for checks B) Control with loops only C) Limits to filtering D) Tests all elements for a condition 32 / 45 32) 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 33 / 45 33) How can you handle multiple promises in parallel? A) Executes promises in parallel B) Limits to sequential execution C) Avoid using multiple promises D) Control with callbacks only 34 / 45 34) How can you implement memoization in JavaScript? A) Control with loops only B) Avoid using for small data C) Caches function results D) Limits to single calls 35 / 45 35) What is the output of typeof [] in JavaScript? A) "object" B) "undefined" C) "array" D) "function" 36 / 45 36) How can you implement inheritance in JavaScript? A) Implements inheritance B) Control with manual methods only C) Avoid using for clarity D) Limits to prototypes only 37 / 45 37) What does === check for in JavaScript? A) Limits to value comparison B) Checks value and type equality C) Avoid using strict equality D) Control with type casting only 38 / 45 38) How can you create an object with dynamic keys? A) Limits to static keys B) Control with arrays only C) Avoid using for clarity D) Creates an object with dynamic keys 39 / 45 39) How do you create a proxy in JavaScript? A) Creates a proxy for an object B) Avoid using proxies C) Control with regular objects only D) Limits to basic objects 40 / 45 40) How can you create a closure in JavaScript? A) Limits to single execution B) Control with global variables only C) Creates a closure D) Avoid using closures for simplicity 41 / 45 41) Which Bootstrap class can you use to create a navbar that is fixed to the top of the page? A) navbar-top B) navbar-sticky C) navbar-default D) navbar-fixed-top 42 / 45 42) How can you make a table responsive in Bootstrap? A) .table-fluid B) .table-scroll C) .table-wrap D) .table-responsive 43 / 45 43) Which class would you use to make a column occupy 6 out of 12 grid spaces? A) .col-md-6 B) .col-half C) .col-sm-6 D) .col-6 44 / 45 44) What does the .g-0 class do in Bootstrap? A) Sets gutter to auto B) Adds margin C) Removes gutter D) Adds large gutter 45 / 45 45) How do you create a collapsible navbar in Bootstrap? A) .nav-collapse B) .navbar-collapse C) .collapse-nav D) .navbar-expand with data-bs-toggle="collapse" Your score is LinkedIn Facebook Twitter VKontakte 0% ExamNo post found
admin Oct, Thu, 2024 EXAM JAVA 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! JAVA PROGRAMMING EXAM Test your JAVA 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) What does System.out.println(2 + 2 == 4) output? A) 1 B) 1 C) 0 D) False 2 / 30 2) What is the output of System.out.println(3 * (4 + 5))? A) 27 B) 1 C) 12 D) 9 3 / 30 3) What is the output of System.out.println("abc".equals(null))? A) 0 B) 0 C) 1 D) 1 4 / 30 4) What is the output of System.out.println("Hello".replace("l", "x"))? A) 1 B) Hexxo C) Hello D) False 5 / 30 5) What is the output of System.out.println(5 / 2)? A) 2 B) False C) 1 D) 2.5 6 / 30 6) What does the ListIterator interface allow? A) Single-directional traversal B) Random access C) Bidirectional traversal D) No traversal 7 / 30 7) What is the output of System.out.println("Java" + 10 / 2)? A) Java5 B) 0 C) 1 D) Java10 8 / 30 8) What will System.out.println("4" + 5) output? A) 4 B) 5 C) False D) 45 9 / 30 9) What does System.out.println(3 * 3 == 9) output? A) 0 B) False C) 1 D) 1 10 / 30 10) What does System.out.println(10 % 3) output? A) 1 B) 2 C) False D) 1 11 / 30 11) What does System.out.println((10 > 5) && (5 < 3)) output? A) 1 B) 0 C) 0 D) 1 12 / 30 12) What does System.out.println(7 > 5 && 5 > 3) output? A) 1 B) 0 C) 1 D) False 13 / 30 13) What is the output of System.out.println("A" + (5 * 2))? A) 0 B) A5 C) A10 D) 1 14 / 30 14) What is the output of System.out.println(7 % 2)? A) 1 B) 1 C) 2 D) False 15 / 30 15) What does Integer.parseInt("123") do? A) Parse string to integer B) Parse string to double C) Parse string to character D) Parse string to float 16 / 30 16) What will System.out.println(10 + " + " + 20) print? A) 0 B) 10 + 20 C) 1 D) 30 17 / 30 17) What does System.out.println(9 - 3 * 2) output? A) 3 B) 1 C) 6 D) False 18 / 30 18) What is a final class in Java? A) Non-instantiable B) Non-abstract C) Non-subclassable D) Non-volatile 19 / 30 19) What is the output of System.out.println(0 + 1 + 2)? A) 3 B) True C) 2 D) False 20 / 30 20) What is a Queue in Java? A) LIFO collection B) Sorted collection C) Indexed collection D) FIFO collection 21 / 30 21) What will System.out.println(5 * 5 - 10) output? A) 25 B) 1 C) 0 D) 15 22 / 30 22) What does java.util.Collections.shuffle() do? A) Reverse order B) Sort by length C) Sort order D) Randomize order 23 / 30 23) What is the output of System.out.println(5 + 2 * 3)? A) 1 B) 0 C) 10 D) 11 24 / 30 24) What is a Map in Java? A) Key-value pairs B) Unique collection C) Single values D) Ordered collection 25 / 30 25) What is the output of System.out.println("5" + 5 + 5)? A) 1 B) 15 C) False D) 555 26 / 30 26) What will System.out.println("Java" + 5 + " rocks") print? A) 1 B) 4 C) Java5 rocks D) False 27 / 30 27) What is the output of System.out.println("Hello " + 5 + 5)? A) Hello 5 5 B) Hello 55 C) 10 D) Hello 10 28 / 30 28) What is the output of System.out.println("x".repeat(3))? A) 1 B) xxx C) False D) 3 29 / 30 29) What does System.out.println(5 + 5 + 10) output? A) 1 B) 0 C) 20 D) 10 30 / 30 30) What does the String.equalsIgnoreCase() method do? A) Case-sensitive comparison B) Length comparison C) Reference comparison D) Case-insensitive comparison Your score is LinkedIn Facebook Twitter VKontakte 0% ExamNo post found
admin Oct, Tue, 2024 EXAM PYTHON EXAMS 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! Python Exam Test your Python 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) What does the aiohttp library provide in Python? A) A file handling library B) An event-driven architecture C) A framework for building APIs D) A client and server for handling HTTP requests asynchronously 2 / 30 2) How do you create a custom iterator in Python? A) By defining the __iter__() and __next__() methods in a class B) By using the yield keyword C) By using a generator D) By using __call__() method 3 / 30 3) How do you implement a cache using a dictionary in Python? A) By using global variables B) By storing results of expensive function calls in a dictionary C) By using recursion D) By using a list 4 / 30 4) How do you create a lambda function with multiple arguments? A) lambda(x, y): x + y B) lambda x, y: x + y C) lambda x and y: x + y D) lambda: (x, y) 5 / 30 5) How do you check if a is equal to b in Python? A) a.equal(b) B) a == b C) a === b D) a = b 6 / 30 6) What is the output of print(10 // 3)? A) 3 B) 0 C) 10 D) 3.33 7 / 30 7) What are Python's built-in data classes, and how do they differ from regular classes? A) Regular classes do not have special methods B) Data classes are not customizable C) Data classes are only for immutable objects D) Data classes automatically generate special methods like __init__() and __repr__() based on class attributes 8 / 30 8) What is the output of print(3 ** 2)? A) 6 B) 5 C) 9 D) 8 9 / 30 9) How do you create a coroutine in Python? A) By using @coroutine decorator B) By using yield C) By using threading module D) By using async def 10 / 30 10) How can you implement a singleton pattern using a decorator? A) A decorator that ensures a class has only one instance B) 3 C) 2 D) True 11 / 30 11) How do you implement a singleton pattern in Python? A) By creating multiple instances B) By using global variables C) By overriding __new__ to control the instantiation of a class D) By using class variables 12 / 30 12) How do you check if a key exists in a dictionary? A) if key in dict.keys(): B) if dict.key_exists(key): C) if key in dict: D) if dict.has_key(key): 13 / 30 13) What is the purpose of the __del__ method in Python? A) It initializes class attributes B) It defines class methods C) It handles exceptions D) It defines behavior when an object is about to be destroyed 14 / 30 14) How do you reverse a string in Python? A) mystring[::-1] B) strreverse(mystring) C) reverse(mystring) D) mystring.reverse() 15 / 30 15) How do you create a class method in Python? A) @method B) @class_method C) @classmethod D) @staticmethod 16 / 30 16) What will be the output of the following code: print("A".lower())? A) a B) 1 C) None D) A 17 / 30 17) What will be the output of the following code: print("abc".title())? A) 1 B) Abc C) abc D) None 18 / 30 18) What will be the output of the following code: print([1, 2, 3].remove(2))? A) None B) None C) 1 D) [1, 3] 19 / 30 19) What will be the output of the following code: print(list(zip([1, 2, 3], ['a', 'b', 'c'])))? A) None B) [(1, 2), (3, 'a')] C) 1 D) [(1, 'a'), (2, 'b'), (3, 'c')] 20 / 30 20) What will be the output of the following code: print([x * x for x in range(3)])? A) 1 B) [0, 1, 2, 3] C) [0, 1, 4] D) [1, 4, 9] 21 / 30 21) What will be the output of the following code: print((2 + 3) * 5)? A) 15 B) 1 C) 25 D) None 22 / 30 22) What will be the output of the following code: print([1, 2, 3].pop())? A) 2 B) 1 C) None D) 3 23 / 30 23) What will be the output of the following code: print("test".capitalize())? A) Test B) TEST C) None D) 1 24 / 30 24) What will be the output of the following code: print((1, 2) * 2)? A) None B) (2, 1) C) 1 D) (1, 2, 1, 2) 25 / 30 25) What will be the output of the following code: print({1: "a", 2: "b"}.values())? A) dict_values(['a', 'b']) B) 1 C) None D) {'a', 'b'} 26 / 30 26) What will be the output of the following code: print(list(filter(lambda x: x % 2 == 0, [1, 2, 3, 4])))? A) 1 B) None C) [2, 4] D) [1, 3] 27 / 30 27) What will be the output of the following code: print("Hello, World!".split(","))? A) None B) ['Hello', ' World!'] C) 1 D) ['Hello', 'World!'] 28 / 30 28) What will be the output of the following code: print([x for x in range(4) if x % 2 == 0])? A) 1 B) None C) [0, 2] D) [1, 3] 29 / 30 29) What will be the output of the following code: print("hello" * 3 + " world")? A) 1 B) None C) hello world D) hellohellohello world 30 / 30 30) What will be the output of the following code: print([1, 2, 3] + [4, 5])? A) 1 B) None C) [1, 2, 3] D) [1, 2, 3, 4, 5] Your score is LinkedIn Facebook Twitter VKontakte 0% ExamNo post found