Question:- What is the meaning of the scope of a variable in JavaScript?
Answer:- Scope refers to the accessibility of functions and underlying variables in the running environment. There are two scopes supported in JavaScript: • Local scope: Here, values and functions declared inside the same function can only be accessed within that function and not outside it. • Global scope: If a variable is declared as global, it can be accessed from anywhere in the application.
Question:- How are comments used in JavaScript?
Answer:- JavaScript supports two types of comment insertion in the code. Single-line comments and multi-line comments. • Single-line comment: “//” is used for single-line comment insertion • Multi-line comment: “/* */” is used to add multi-line comments
Question:- How can you prioritize SEO, maintainability, performance, and security in a web application?
Answer:- This is a commonly asked question in a Web Development interview. Here, the interviewer is trying to assess your understanding of the working environment in the firm you’ve applied for. If it is a large firm, then security will get higher priority over SEO. Whereas, if it is a publication firm, SEO gets the preference. A little groundwork about the company should help you answer this question. The next web developer interview question we will look at is regarding jQuery.
Question:- What is the result if a jQuery Event Handler returns false?
Answer:- If the jQuery Event Handler returns a boolean false value, it simply means that the event will not execute further and will halt the execution for the particular action it is associated with.
Question:- What is the use of the each() function in jQuery?
Answer:- The each() function in jQuery is used to iterate over a set of elements. A function can be passed to each() method. This will result in the execution of each of the events for which the object has been called.
Question:- What is Pair Programming?
Answer:- Pair programming is a scenario where you will be working closely with a colleague on the project, and this is done to help solve the problems at hand. If the development scenario is fast-paced, Agile development might not work efficiently. The interviewer asks this question to see whether you can work with other people easily and effectively.
Question:- What is the use of the $() function in jQuery?
Answer:- The $() function is used as a wrapper to wrap objects into their jQuery counterparts. This is done to give users the ability to call any method that is defined for the jQuery object. Note: Selectors can also be passed to the $() function, resulting in the output of a jQuery object that contains matched DOM elements.
Question:- What are the advantages of using a Content Delivery Network (CDN) in jQuery?
Answer:- CDNs are widely used in jQuery as they offer an ample number of advantages for users. • CDNs cause a significant reduction in the load for the server. • They provide large amounts of savings in the bandwidth. • jQuery frameworks load faster due to optimizations. • CDNs have a caching ability that adds to quicker load times.
Question:- What are the types of CDNs supported in jQuery?
Answer:- There are two widely used CDNs with jQuery: • Microsoft: Used to load from jQuery AJAX CDN • Google: Used to load jQuery from the Google Libraries API If you are looking forward to becoming proficient in Web Development, make sure to check out Intellipaat’s latest offerings for the Web Development Online Courses. With these programs, you can become an expert in Web Development and earn a course certificate as well.
Question:- What are the characteristics of iOS?
Answer:- Criteria • Type of operating system • OS fragmentation • Security Result • Apple proprietary based on Macintosh OS X • Tightly integrated with Apple devices • Heightened security guaranteed
Question:- Which JSON framework is supported by iOS (iPhone OS)?
Answer:- • SBJson framework is supported by iOS. It is a JSON parser and generator for Objective-C (Objective-C is the primary programming language we use when writing software for OS X and iOS. It is a superset of the C programming language and provides object-oriented capabilities and a dynamic runtime). • SBJson provides flexible APIs and additional control that makes JSON handling easy.
Question:- What is an unnamed category?
Answer:- An unnamed category has fallen out of favor now that @protocol has been extended to support the @optional methods. Class Extensions @interface Foo() is designed to allow us to declare additional private API— system programming interface (SPI)—that is used to implement the class innards. This typically appears at the top of the .m file. Any methods/properties declared in the class extension must be implemented in the @implementation, just like the methods/properties found in the public @interface. Class extensions can also be used to re-declare a publicly read-only @property as read-write prior to doing @synthesize on the accessors.
Question:- Name the framework that is used to construct the application’s user interface for iOS.
Answer:- • The UIKit framework is used to develop the application’s user interface. The UIKit framework provides event handling, drawing model, windows, views, and controls, specifically designed for a touch-screen interface. • The UIKit framework (UIKit.framework) provides the crucial infrastructure needed to construct and manage iOS apps. This framework provides: • Window and view architecture to manage an app’s user interface • Event handling infrastructure to respond to the user input • An app model to drive the main run loop and interact with the system In addition to the core app behaviors, UIKit provides support for the following features: • A view controller model to encapsulate the contents of the user interface • Support for handling touch and motion-based events • Support for a document model that includes iCloud integration • Graphics and windowing support, including support for external displays • Support for managing the app’s foreground and background execution • Printing support • Support for customizing the appearance of standard UIKit controls • Support for text and web content • Cut, copy, and paste support • Support for animating user-interface content • Integration with other apps on the system through URL schemes and framework interfaces • Accessibility support for disabled users • Support for the Apple Push Notification service • Local notification scheduling and delivery • PDF creation • Support for using custom input views that behave like the system keyboard • Support for creating custom text views that interact with the system keyboard • Support for sharing content through Email, Twitter, Facebook, and other services
Question:- Which is the application thread from where UIKit classes should be used?
Answer:- Unless it’s stated, use UIKit classes only from your application’s main thread or main dispatch queue. This restriction applies in particular to classes derived from UIResponder or that require modifying the user interface of your app in some way.
