aershov24/full-stack-interview-questions

🔴 More than ~3877 Full Stack, Coding & System Design Interview Questions And Answers sourced from all around the Internet to help you to prepare to an interview, conduct one, mock your lead dev or completely ignore. Find more questions and answers on 👉

1,137

33 commits

updated Aug 26, 2021

See the code

README

3877 Full-Stack, Coding and System Design Interview Questions (ANSWERED) To Land Your Next Six-Figure Job Offer from FullStack.Cafe

FullStack.Cafe is a biggest hand-picked collection of top technical interview questions for junior and experienced full-stack and web developers with more that 3877 tech interview questions and answers. Prepare for your next tech interview and land 6-figure job offer in no time.

🔴 Get All 3877 Answers + PDFs on FullStack.Cafe - Kill Your Tech & Coding Interview


Machine Learning & Data Science Interview Questions 🤖🤖🤖

👉 For 1299 ML & DataScience Interview Questions Check MLStack.Cafe - Kill Your Machine Learning, Data Science & Python Interview


Table of Contents

[⬆] .NET Core Interview Questions

Q1: What is the difference between String and string in C#? ⭐

Answer: string is an alias in C# for System.String. So technically, there is no difference. It's like int vs. System.Int32.

As far as guidelines, it's generally recommended to use string any time you're referring to an object.

string place = "world";

Likewise, it's generally recommended to use String if you need to refer specifically to the class.

string greet = String.Format("Hello {0}!", place);

Source: blogs.msdn.microsoft.com

Q2: What is .NET Standard? ⭐

Answer: The .NET Standard is a formal specification of .NET APIs that are intended to be available on all .NET implementations.

Source: docs.microsoft.com

Q3: What is .NET Core? ⭐

Answer: The .NET Core platform is a new .NET stack that is optimized for open source development and agile delivery on NuGet.

.NET Core has two major components. It includes a small runtime that is built from the same codebase as the .NET Framework CLR. The .NET Core runtime includes the same GC and JIT (RyuJIT), but doesn’t include features like Application Domains or Code Access Security. The runtime is delivered via NuGet, as part of the ASP.NET Core package.

.NET Core also includes the base class libraries. These libraries are largely the same code as the .NET Framework class libraries, but have been factored (removal of dependencies) to enable to ship a smaller set of libraries. These libraries are shipped as System.* NuGet packages on NuGet.org.

Source: stackoverflow.com

Q4: What is the .NET Framework? ⭐

Answer: The .NET is a Framework, which is a collection of classes of reusable libraries given by Microsoft to be used in other .NET applications and to develop, build and deploy many types of applications on the Windows platform including the following:

  • Console Applications
  • Windows Forms Applications
  • Windows Presentation Foundation (WPF) Applications
  • Web Applications
  • Web Services
  • Windows Services
  • Services-oriented applications using Windows Communications Foundation (WCF)
  • Workflow-enabled applications using Windows Workflow Foundation(WF)

Source: c-sharpcorner.com

Q5: What's the difference between SDK and Runtime in .NET Core? ⭐⭐

Answer:

  • The SDK is all of the stuff that is needed/makes developing a .NET Core application easier, such as the CLI and a compiler.

  • The runtime is the "virtual machine" that hosts/runs the application and abstracts all the interaction with the base operating system.

Source: stackoverflow.com

Q6: What is .NET Standard and why we need to consider it? ⭐⭐

Answer:

  1. .NET Standard solves the code sharing problem for .NET developers across all platforms by bringing all the APIs that you expect and love across the environments that you need: desktop applications, mobile apps & games, and cloud services:
  2. .NET Standard is a set of APIs that all .NET platforms have to implement. This unifies the .NET platforms and prevents future fragmentation.
  3. .NET Standard 2.0 will be implemented by .NET Framework, .NET Core, and Xamarin. For .NET Core, this will add many of the existing APIs that have been requested.
  4. .NET Standard 2.0 includes a compatibility shim for .NET Framework binaries, significantly increasing the set of libraries that you can reference from your .NET Standard libraries.
  5. .NET Standard will replace Portable Class Libraries (PCLs) as the tooling story for building multi-platform .NET libraries.

Source: stackoverflow.com

Q7: What is the difference between decimal, float and double in .NET? ⭐⭐

Details: When would someone use one of these?

Answer: Precision is the main difference.

  • Float - 7 digits (32 bit)
  • Double-15-16 digits (64 bit)
  • Decimal -28-29 significant digits (128 bit)

As for what to use when:

  • For values which are "naturally exact decimals" it's good to use decimal. This is usually suitable for any concepts invented by humans: financial values are the most obvious example, but there are others too. Consider the score given to divers or ice skaters, for example.

  • For values which are more artefacts of nature which can't really be measured exactly anyway, float/double are more appropriate. For example, scientific data would usually be represented in this form. Here, the original values won't be "decimally accurate" to start with, so it's not important for the expected results to maintain the "decimal accuracy". Floating binary point types are much faster to work with than decimals.

Source: blogs.msdn.microsoft.com

Q8: What are some characteristics of .NET Core? ⭐⭐

Answer:

  • Flexible deployment: Can be included in your app or installed side-by-side user- or machine-wide.

  • Cross-platform: Runs on Windows, macOS and Linux; can be ported to other OSes. The supported Operating Systems (OS), CPUs and application scenarios will grow over time, provided by Microsoft, other companies, and individuals.

  • Command-line tools: All product scenarios can be exercised at the command-line.

  • Compatible: .NET Core is compatible with .NET Framework, Xamarin and Mono, via the .NET Standard Library.

  • Open source: The .NET Core platform is open source, using MIT and Apache 2 licenses. Documentation is licensed under CC-BY. .NET Core is a .NET Foundation project.

  • Supported by Microsoft: .NET Core is supported by Microsoft, per .NET Core Support

Source: stackoverflow.com

Q9: What is an unmanaged resource? ⭐⭐

Answer: Use that rule of thumb:

  • If you found it in the Microsoft .NET Framework: it's managed.
  • If you went poking around MSDN yourself, it's unmanaged.

Anything you've used P/Invoke calls to get outside of the nice comfy world of everything available to you in the .NET Framwork is unmanaged – and you're now responsible for cleaning it up.

Source: stackoverflow.com

Q10: What is CTS? ⭐⭐

Answer: The Common Type System (CTS) standardizes the data types of all programming languages using .NET under the umbrella of .NET to a common data type for easy and smooth communication among these .NET languages.

CTS is designed as a singly rooted object hierarchy with System.Object as the base type from which all other types are derived. CTS supports two different kinds of types:

  1. Value Types: Contain the values that need to be stored directly on the stack or allocated inline in a structure. They can be built-in (standard primitive types), user-defined (defined in source code) or enumerations (sets of enumerated values that are represented by labels but stored as a numeric type).
  2. Reference Types: Store a reference to the value‘s memory address and are allocated on the heap. Reference types can be any of the pointer types, interface types or self-describing types (arrays and class types such as user-defined classes, boxed value types and delegates).

Source: c-sharpcorner.com

Q11: What is the difference between .NET Core and Mono? ⭐⭐

Answer: To be simple:

  • Mono is third party implementation of .Net Framework for Linux/Android/iOs
  • .Net Core is Microsoft's own implementation for same.

Source: stackoverflow.com

Q12: What is MSIL? ⭐⭐

Answer: When we compile our .NET code then it is not directly converted to native/binary code; it is first converted into intermediate code known as MSIL code which is then interpreted by the CLR. MSIL is independent of hardware and the operating system. Cross language relationships are possible since MSIL is the same for all .NET languages. MSIL is further converted into native code.

Source: c-sharpcorner.com

Q13: What is a .NET application domain? ⭐⭐

Answer: It is an isolation layer provided by the .NET runtime. As such, App domains live with in a process (1 process can have many app domains) and have their own virtual address space.

App domains are useful because:

  • They are less expensive than full processes
  • They are multithreaded
  • You can stop one without killing everything in the process
  • Segregation of resources/config/etc
  • Each app domain runs on its own security level

Source: stackoverflow.com

Q14: What is CLR? ⭐⭐

Answer: The CLR stands for Common Language Runtime and it is an Execution Environment. It works as a layer between Operating Systems and the applications written in .NET languages that conforms to the Common Language Specification (CLS). The main function of Common Language Runtime (CLR) is to convert the Managed Code into native code and then execute the program.

Source: c-sharpcorner.com

Q15: Name some CLR services? ⭐⭐

Answer: CLR services

  • Assembly Resolver
  • Assembly Loader
  • Type Checker
  • COM marshalled
  • Debug Manager
  • Thread Support
  • IL to Native compiler
  • Exception Manager
  • Garbage Collector

Source: c-sharpcorner.com

Q16: Talk about new .csproj file? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q17: Explain what is included in .NET Core? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q18: Is there a way to catch multiple exceptions at once and without code duplication? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q19: What about NuGet packages and packages.config? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q20: Why to use of the IDisposable interface? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q21: When should we use .NET Core and .NET Standard Class Library project types? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: What is the difference between Class Library (.NET Standard) and Class Library (.NET Core)? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: What is the difference between .NET Standard and PCL (Portable Class Libraries)? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: Explain the difference between Task and Thread in .NET ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: What is FCL? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: What is Kestrel? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: What is implicit compilation? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: What is JIT compiler? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: What is .NET Standard? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What is Explicit Compilation? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What are the benefits of explicit compilation? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: Explain the difference between “managed” and “unmanaged” code? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What's the difference between .NET Core, .NET Framework, and Xamarin? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is difference between .NET Core and .NET Framework? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: Explain two types of deployment for .NET Core applications ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: What does Common Language Specification (CLS) mean? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: What is CoreCLR? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: What's is BCL? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: What is the difference between CIL and MSIL (IL)? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: How to choose the target version of .NET Standard library? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: Why does .NET use a JIT compiler instead of just compiling the code once on the target machine? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What is the difference between AppDomain, Assembly, Process, and a Thread? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What are benefits of using JIT? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: What is the difference between .NET Framework/Core and .NET Standard Class Library project types? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What's the difference between RyuJIT and Roslyn? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: Why does .NET Standard library exist? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: Explain how does Asynchronous tasks (Async/Await) work in .NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Explain Finalize vs Dispose usage? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: How many types of JIT Compilations do you know? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: What is the difference between Node.js async model and async/await in .NET? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: Could you name the difference between .Net Core, Portable, Standard, Compact, UWP, and PCL? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] ADO.NET Interview Questions

Q1: What is ADO.NET? ⭐

Answer: ADO stands for Active Data Object and ADO.NET is a set of .NET libraries for ADO. NET is a collection of managed libraries used by .NET applications for data source communication using a driver or provider:

  • Enterprise applications handle a large amount of data. This data is primarily stored in relational databases, such as Oracle, SQL Server, and Access and so on. These databases use Structured Query Language (SQL) for retrieval of data.
  • To access enterprise data from a .NET application, an interface was needed. This interface acts as a bridge between an RDBMS system and a .NET application. ADO.NET is such an interface that is created to connect .NET applications to RDBMS systems.
  • In the .NET framework, Microsoft introduced a new version of Active X Data Objects (ADO) called ADO.NET. Any .NET application, either Windows based or web based, can interact with the database using a rich set of classes of the ADO.NET library. Data can be accessed from any database using connected or disconnected architecture.

Source: c-sharpcorner.com

Q2: What is exactly meaning of disconnected and connected approach in ADO.NET? ⭐⭐

Answer: In short:

  • Disconnected = Make Connection , Fetch Data , Close Connection
  • Connected = Make Connection , Keep Connection alive , Close Connection when close is called.

The ADO.net architecture, in which connection must be kept open till the end to retrieve and access data from database is called as connected architecture. Connected architecture is built on the these types - connection, command, datareader

The ADO.net architecture, in which connection will be kept open only till the data retrieved from database, and later can be accessed even when connection to database is closed is called as disconnected architecture. Disconnected architecture of ADO.net is built on these types - connection, dataadapter, commandbuilder and dataset and dataview.

Source: stackoverflow.com

Q3: Describe when you would use the DataView in ADO.NET? ⭐⭐

Answer: A DataView enables you to create different views of the data stored in a DataTable, a capability that is often used in data binding applications. Using a DataView, you can expose the data in a table with different sort orders, and you can filter the data by row state or based on a filter expression. A DataView provides a dynamic view of data whose content, ordering, and membership reflect changes to the underlying DataTable as they occur. This is different from the Select method of the DataTable, which returns a DataRow array from a table per particular filter and/or sort order and whose content reflects changes to the underlying table, but whose membership and ordering remain static. The dynamic capabilities of the DataView make it ideal for data-binding applications.

Source: stackoverflow.com

Q4: What is the SqlCommandBuilder? ⭐⭐

Answer: CommandBuilder helps you to generate update, delete, and insert commands on a single database table for a data adapter. Similar to other objects, each data provider has a command builder class. The OleDbCommandBuilder, SqlCommonBuilder, and OdbcCommandBuilder classes represent the CommonBuilder object in the OleDb, Sql, and ODBC data providers.

Source: c-sharpcorner.com

Q5: What is the DataAdapter Object in ADO.NET? ⭐⭐

Answer: A DataAdapter is used to retrieve data from a data source and populate tables within a DataSet. Data Adapters form the bridge between a data source and a dataset. The DataAdapter also resolves changes made to the DataSet back to the data source. The DataAdapter uses the Connection object of the .NET Framework data provider to connect to a data source, and it uses Command objects to retrieve data from and resolve changes to the data source.

A DataAdapter supports mainly the following two methods:

  • Fill(): The Fill method populates a dataset or a data table object with data from the database. It retrieves rows from the data source using the SELECT statement specified by an associated select command property. The Fill method leaves the connection in the same state as it encountered before populating the data.
  • Update(): The Update method commits the changes back to the database. It also analyzes the RowState of each record in the DataSet and calls the appropriate INSERT, UPDATE, and DELETE statements.

Source: c-sharpcorner.com

Q6: What is the basic difference between ADO.NET and Entity Framework? ⭐⭐

Answer: ADO.NET Entity Framework is an ORM (object-relational mapping) which creates a higher abstract object model over ADO.NET components. ADO.NET is a layer closer to the database (datatables, datasets and etc...). The main and the only benefit of EF is it auto-generates code for the Model (middle layer), Data Access Layer, and mapping code, thus reducing a lot of development time. Consider the following example:

ADO.NET:

DataTable table = adoDs.Tables[0];
for (int j = 0; j < table.Rows.Count; j++)
{
    DataRow row = table.Rows[j];

    // Get the values of the fields
    string CustomerName =
        (string)row["Customername"];
    string CustomerCode =
        (string)row["CustomerCode"];
}

EF:

foreach (Customer objCust in obj.Customers)
{}

Source: stackoverflow.com

Q7: What is Connection Pooling in ADO.NET? ⭐⭐

Answer: ADO.NET uses a technique called connection pooling, which minimizes the cost of repeatedly opening and closing connections. Connection pooling reuses existing active connections with the same connection string instead of creating new connections when a request is made to the database. It involves the use of a connection manager that is responsible for maintaining a list, or pool, of available connections for a given connection string. Several pools exist if different connection strings ask for connection pooling.

Source: c-sharpcorner.com

Q8: What is SqlCommand Object? ⭐⭐

Answer: The SqlCommand carries the SQL statement that needs to be executed on the database. SqlCommand carries the command in the CommandText property and this property will be used when the SqlCommand calls any of its execute methods.

  • The Command Object uses the connection object to execute SQL queries.
  • The queries can be in the form of Inline text, Stored Procedures or direct Table access.
  • An important feature of Command object is that it can be used to execute queries and Stored Procedures with Parameters.
  • If a select query is issued, the result set it returns is usually stored in either a DataSet or a DataReader object.

The three important methods exposed by the SqlCommand object is shown below:

  • ExecuteScalar
  • ExecuteNonQuery
  • ExecuteReader

Source: c-sharpcorner.com

Q9: What are the ADO.NET components? ⭐⭐

Answer: ADO.NET components categorized in three modes:

  • disconnected,
  • common or shared and
  • the .NET data providers.

The disconnected components build the basic ADO.NET architecture. You can use these components (or classes) with or without data providers. For example, you can use a DataTable object with or without providers and shared or common components are the base classes for data providers. Shared or common components are the base classes for data providers and shared by all data providers. The data provider components are specifically designed to work with different kinds of data sources. For example, ODBC data providers work with ODBC data sources and OleDb data providers work with OLE-DB data sources.

Source: c-sharpcorner.com

Q10: How can you define the DataSet structure? ⭐⭐

Answer: A DataSet object falls in disconnected components series. The DataSet consists of a collection of tables, rows, columns and relationships.

DataSet contains a collection of DataTables and the DataTable contains a collection of DataRows, DataRelations, and DataColumns. A DataTable maps to a table in the database.

Source: c-sharpcorner.com

Q11: What do you understand by DataRelation class? ⭐⭐

Answer: The DataRelation is a class of disconnected architecture in the .NET framework. It is found in the System.Data namespace. It represents a relationship between database tables and correlates tables on the basis of matching column.

Source: c-sharpcorner.com

Q12: How could you control connection pooling behavior? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q13: What is the difference between ExecuteScalar, ExecuteReader and ExecuteNonQuery? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q14: What is the difference between DataView, DataTable and DataSet? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q15: Could you explain me some of the main differences between Connection-oriented access and connectionless access in ADO.NET? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q16: What is the difference between Integrated Security = True and Integrated Security = SSPI? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q17: What is Unit Of Work? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q18: What are the differences between using SqlDataAdapter vs SqlDataReader for getting data from a DB? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q19: Mention what is the difference between ADO.NET and classic ADO? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q20: Can you explain the difference between a DataReader, a DataAdapter, a Dataset, and a DataView? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q21: Name types of transactions in ADO.NET ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: Where should I use disconnected architecture approach? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: Where should I use connected architecture approach? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: Is there anything faster than SqlDataReader in .NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: Could you explain some benefits of Repository Pattern? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: What is the difference between OLE DB and ODBC data sources? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: How could you monitor connection pooling behavior? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: Is it necessary to manually close and dispose of SqlDataReader? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: What's better: DataSet or DataReader? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What is the difference between ADODB, OLEDB and ADO.NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is the best and fast way to insert 2 million rows of data into SQL Server? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: Under what scenarios would setting pooling=false in an ADO.NET connection string be of value when connecting to SQL Server? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: Name some problems that could occur with connection pooling ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] ASP.NET Interview Questions

Q1: What is ViewData? ⭐

Answer: Viewdata contains the key, value pairs as dictionary and this is derived from class — “ViewDataDictionary“. In action method we are setting the value for viewdata and in view the value will be fetched by typecasting.

Source: medium.com

Q2: What is ASP.Net? ⭐

Answer: It is a framework developed by Microsoft on which we can develop new generation web sites using web forms(aspx), MVC, HTML, Javascript, CSS etc. Its successor of Microsoft Active Server Pages(ASP). Currently there is ASP.NET 4.0, which is used to develop web sites. There are various page extensions provided by Microsoft that are being used for web site development. Eg: aspx, asmx, ascx, ashx, cs, vb, html, XML etc.

Source: guru99.com

Q3: Talk about Logging in ASP.NET Core? ⭐⭐

Answer: Logging is built-in and you get access to structured logs from the ASP.NET Core host itself to your application. With tools like Serilog, you can extend your logging easily and save your logs to file, Azure, Amazon or any other output provider. You can configure verbosity and log levels via configuration (appsettings.json by default), and you can configure log levels by different categories.

Source: talkingdotnet.com

Q4: Explain startup process in ASP.NET Core? ⭐⭐

Answer: Everything starts from Program.cs

public static void Main(string[] args)
{
    BuildWebHost(args).Run();
}
 
public static IWebHost BuildWebHost(string[] args) =>
    WebHost.CreateDefaultBuilder(args)
        .UseStartup<Startup>()
        .Build();

CreateDefaultBuilder extension method will create a default configuration which will look first into appsettings.json files then will look for Environment variables and at the end, it will use command line arguments.

This part will also set up default logger sources (debug and console) and load the settings for logging from appsettings.json.

After the CreateDefaultBuilder finishes, then Startup class is executed. First, the constructor code is executed. After that, services are added to DI container via AddServices method that lives in Startup class. After that, an order of middleware that will handle every incoming request is set up.

Source: codingblast.com

Q5: What exactly is an application pool? What is its purpose? ⭐⭐

Answer: Application pools allow you to isolate your applications from one another, even if they are running on the same server. This way, if there is an error in one app, it won't take down other applications.

Additionally, applications pools allow you to separate different apps which require different levels of security.

Source: stackoverflow.com

Q6: How you can add an event handler? ⭐⭐

Answer: ** **Using the Attributes property of server side control.

e.g.

btnSubmit.Attributes.Add("onMouseOver","JavascriptCode();")

Source: guru99.com

Q7: What's the use of Response.Output.Write()? ⭐⭐

Answer: We can write formatted output using Response.Output.Write().

Source: guru99.com

Q8: How to configure your ASP.NET Core app? ⭐⭐

Answer: Another crucial part of ASP.NET Core Framework is Configuration. Also, it is part of Dependency Injection. Use it anywhere in your code with an option to reload on changes of configuration values from sources (appsettings.json, environment variables, command line arguments, etc.). It is also easy to override, extend and customize the Configuration. No more extensive configurations in web.config, the preferred way now is appsettings.json in combination with a mix of Environment variables and cmd-line args.

Source: talkingdotnet.com

Q9: What is ASP.NET Core? ⭐⭐

Answer: ASP.NET Core is a brand new cross-platform web framework built with .NET Core framework. It is not an update to existing ASP.NET framework. It is a complete rewrite of the ASP.NET framework. It works with both .NET Core and .NET Framework.

Main characterestics of ASP.NET Core:

  • DI Container which is quite simple and built-in. You can extend it with other popular DI containers
  • Built-in and extensible structured logging. You can redirect output to as many sources as you want (file, Azure, AWS, console)
  • Extensible strongly typed configuration, which can also be used to reload at run-time
  • Kestrel – new, cross-platform and super fast web server which can stand alone without IIS, Nginx or Apache
  • New, fully async pipeline. It is easily configured via middleware
  • ASP.NET All meta package which improves development speed, and enables you to reference all Microsoft packages for ASP.NET Core and it will deploy only those that are being used by your code
  • There is no web.config. We now use appsettings.json file in combination with other sources of configuration (command line args, environment variables, etc.)
  • There is no _Global._asax – We have Startup.cs which is used to set up Middleware and services for DI Container.

Source: talkingdotnet.com

Q10: What is the difference between ASP.NET and ASP.NET MVC? ⭐⭐

Answer: ASP.NET, at its most basic level, provides a means for you to provide general HTML markup combined with server side "controls" within the event-driven programming model that can be leveraged with VB, C#, and so on. You define the page(s) of a site, drop in the controls, and provide the programmatic plumbing to make it all work.

ASP.NET MVC is an application framework based on the Model-View-Controller architectural pattern. This is what might be considered a "canned" framework for a specific way of implementing a web site, with a page acting as the "controller" and dispatching requests to the appropriate pages in the application. The idea is to "partition" the various elements of the application, eg business rules, presentation rules, and so on.

Think of the former as the "blank slate" for implementing a site architecture you've designed more or less from the ground up. MVC provides a mechanism for designing a site around a pre-determined "pattern" of application access, if that makes sense. There's more technical detail to it than that, to be sure, but that's the nickel tour for the purposes of the question.

Source: stackoverflow.com

Q11: What is ViewState? ⭐⭐

Answer: View State is the method to preserve the Value of the Page and Controls between round trips. It is a Page-Level State Management technique. View State is turned on by default and normally serializes the data in every control on the page regardless of whether it is actually used during a post-back.

A web application is stateless. That means that a new instance of a page is created every time when we make a request to the server to get the page and after the round trip our page has been lost immediately

Source: c-sharpcorner.com

Q12: Can ASP.NET Core work with the .NET framework? ⭐⭐

Answer: Yes. This might surprise many, but ASP.NET Core works with .NET framework and this is officially supported by Microsoft.

ASP.NET Core works with:

  • .NET Core framework
  • .NET framework

Source: talkingdotnet.com

Q13: What is the good practice to implement validations in aspx page? ⭐⭐

Answer: Client-side validation is the best way to validate data of a web page. It reduces the network traffic and saves server resources.

Source: guru99.com

Q14: What is a postback? ⭐⭐

Answer: A postback originates from the client browser. Usually one of the controls on the page will be manipulated by the user (a button clicked or dropdown changed, etc), and this control will initiate a postback. The state of this control, plus all other controls on the page (known as the View State) is Posted Back to the web server.

Source: stackoverflow.com

Q15: What is the file extension of ASP.NET web service? ⭐⭐

Answer: Web services have file extension .asmx.

Source: guru99.com

Q16: How can we prevent browser from caching an ASPX page? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q17: In which event of page cycle is the ViewState available? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q18: From which base class all Web Forms are inherited? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q19: What is the meaning of Unobtrusive JavaScript? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q20: Explain JSON Binding? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q21: What is new in ASP.NET Core 2, compared to ASP.NET Core 1? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: What are the sub types of ActionResult? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: What exactly is the difference between .NET Core and ASP.NET Core? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: What is the difference between Server.Transfer and Response.Redirect? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: Where the viewstate is stored after the page postback? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: How do you register JavaScript for webcontrols? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: Explain usage of Dependency Injection in ASP.NET Core ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: What are the different validators in ASP.NET? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: List the events in ASP.NET page life cycle ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: Can we add code files of different languages in App_Code folder? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What are the different types of caching? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What are the event handlers that we can have in Global.asax file? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: Explain Middleware in ASP.NET Core? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: How long the items in ViewState exists? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: What is the difference between an HtmlInputCheckBox control and an HtmlInputRadioButton control? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: In which event are the controls fully loaded? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: Which type if caching will be used if we want to cache the portion of a page instead of whole page? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: How we can force all the validation controls to run? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: List the major built-in objects in ASP.NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What is HttpModule in ASP.Net? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What is RedirectPermanent in ASP.Net? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What are the different types of cookies in ASP.NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: What is the difference between <system.web> and <system.webServer>? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What is an HttpHandler in ASP.NET? Why and how is it used? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What is the difference between Web Service and WCF Service? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: What is the difference between web config and machine config? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Is it possible to create web application with both webforms and mvc? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: What is the difference between ASP.NET Core Web (.NET Core) vs ASP.NET Core Web (.NET Framework)? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: What are the different Session state management options available in ASP.NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: What is the difference between 'classic' and 'integrated' pipeline mode in IIS7? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: How can we apply Themes to an asp.net application? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: How to choose between ASP.NET 4.x and ASP.NET Core? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: What is Katana? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: What exactly is OWIN and what problems does it solve? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: Name some ASP.NET WebForms disadvantages over MVC? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: What is the difference between a web API and a web service? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What is Cross Page Posting? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q59: What is the equivalent of WebForms in ASP.NET Core? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q60: Are static class instances unique to a request or a server in ASP.NET? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] ASP.NET MVC Interview Questions

Q1: What is Layout in MVC? ⭐

Answer: Layout pages are similar to master pages in traditional web forms. This is used to set the common look across multiple pages. In each child page we can find —

@{
Layout = “~/Views/Shared/TestLayout1.cshtml”;
}

This indicates child page uses TestLayout page as it’s master page.

Source: medium.com

Q2: Explain Bundle.Config in MVC4? ⭐⭐

Answer: “BundleConfig.cs” in MVC4 is used to register the bundles by the bundling and minification system. Many bundles are added by default including jQuery libraries like — jquery.validate, Modernizr, and default CSS references.

Source: medium.com

Q3: What is Razor View Engine? ⭐⭐

Answer: Razor is the first major update to render HTML in MVC 3. Razor was designed specifically for view engine syntax. Main focus of this would be to simplify and code-focused templating for HTML generation. Below is the sample of using Razor:

@model MvcMusicStore.Models.Customer
@{ViewBag.Title = “Get Customers”;}
<div class=”cust”> <h3><em>@Model.CustomerName</em> </h3>

Source: medium.com

Q4: What is the use of ViewModel in MVC? ⭐⭐

Answer: ViewModel is a plain class with properties, which is used to bind it to strongly typed view. ViewModel can have the validation rules defined for its properties using data annotations.

Source: medium.com

Q5: What you mean by Routing in MVC? ⭐⭐

Answer: Routing is a pattern matching mechanism of incoming requests to the URL patterns which are registered in route table. Class — “UrlRoutingModule” is used for the same process.

Source: medium.com

Q6: What are Actions in MVC? ⭐⭐

Answer: Actions are the methods in Controller class which is responsible for returning the view or json data. Action will mainly have return type — “ActionResult” and it will be invoked from method — “InvokeAction()” called by controller.

Source: medium.com

Q7: What are the advantages of MVC over ASP.NET? ⭐⭐

Answer:

  • Provides a clean separation of concerns among UI (Presentation layer), model (Transfer objects/Domain Objects/Entities) and Business Logic (Controller).
  • Easy to UNIT Test
  • Improved reusability of model and views. We can have multiple views which can point to the same model and vice versa.
  • Improved structuring of the code

Source: medium.com

Q8: What are Scaffold templates in MVC? ⭐⭐

Answer: Scaffolding in ASP.NET MVC is used to generate the Controllers, Model and Views for create, read, update, and delete (CRUD) functionality in an application. The scaffolding will be knowing the naming conventions used for models and controllers and views.

Source: medium.com

Q9: Can you explain Model, Controller and View in MVC? ⭐⭐

Answer:

  • Model — It’s a business entity and it is used to represent the application data.
  • Controller — Request sent by the user always scatters through controller and it’s responsibility is to redirect to the specific view using View() method.
  • View — It’s the presentation layer of MVC.

Source: medium.com

Q10: What is Razor Pages? ⭐⭐

Answer: Razor Pages is a new feature of ASP.NET Core that makes coding page-focused scenarios easier and more productive.

With Razor Pages, you have this one Razor file (.cshtml), and the code for a single page lives inside of that file, and that file also represents the URL structure of the app. Therefore, you got everything inside of one file, and it just works.

However, you can separate your code to the code behind file with .cshtml.cs extension. You would usually have your view model and handlers (like action methods in MVC) in that file and handle the logic there. Of course, you could also have your view model moved to separate place.

Since Razor Pages is part of the MVC stack, you can use anything that comes with MVC inside of our Razor Pages.

Source: codingblast.com

Q11: Explain Sections is MVC? ⭐⭐

Answer: Section are the part of HTML which is to be rendered in layout page. In Layout page we will use the below syntax for rendering the HTML –

@RenderSection(“TestSection”)

And in child pages we are defining these sections as shown below –

@section TestSection{
     <h1>Test Content</h1>
}

Source: medium.com

Q12: What are Non Action methods in MVC? ⭐⭐

Answer: In MVC all public methods have been treated as Actions. So if you are creating a method and if you do not want to use it as an action method then the method has to be decorated with "NonAction" attribute as shown below:

[NonAction]
public void TestMethod()
{
   // Method logic
}

Source: stackoverflow.com

Q13: Can a view be shared across multiple controllers? If Yes, How we can do that? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q14: What is the difference between ViewBag and ViewData in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q15: What is the difference between ViewResult() and ActionResult() in ASP.NET MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q16: What are HTML Helpers in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q17: Can you explain the page life cycle of MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q18: What is Attribute Routing in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q19: What is PartialView in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q20: Can you explain RenderBody and RenderPage in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q21: Explain the methods used to render the views in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: Explain ASP.NET WebApi vs MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: What are some of the advantages of using ASP.Net MVC vs Web Forms? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: What is the "HelperPage.IsAjax" Property? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: What is RouteConfig.cs in MVC 4? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: Why to use Html.Partial in MVC? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: What are Validation Annotations? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: Explain TempData in MVC? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: How route table has been created in ASP.NET MVC? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: Explain Dependency Resolution? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is Separation of Concerns in ASP.NET MVC? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What are AJAX Helpers in MVC? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What is Html.RenderPartial? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] ASP.NET Web API Interview Questions

Q1: What is ASP.NET Web API? ⭐

Answer: ASP.NET Web API is a framework that simplifies building HTTP services for broader range of clients (including browsers as well as mobile devices) on top of .NET Framework.

Using ASP.NET Web API, we can create non-SOAP based services like plain XML or JSON strings, etc. with many other advantages including:

  • Create resource-oriented services using the full features of HTTP
  • Exposing services to a variety of clients easily like browsers or mobile devices, etc.

Source: codeproject.com

Q2: Which status code used for all uncaught exceptions by default? ⭐⭐

Answer: 500 – Internal Server Error

Consider:

[Route("CheckId/{id}")]
[HttpGet]
public IHttpActionResult CheckId(int id)
{
    if(id > 100)
    {
        throw new ArgumentOutOfRangeException();
    }
    return Ok(id);
}

And the result:

Source: docs.microsoft.com

Q3: What are the Advantages of Using ASP.NET Web API? ⭐⭐

Answer: Using ASP.NET Web API has a number of advantages, but core of the advantages are:

  • It works the HTTP way using standard HTTP verbs like GET, POST, PUT, DELETE, etc. for all CRUD operations
  • Complete support for routing
  • Response generated in JSON or XML format using MediaTypeFormatter
  • It has the ability to be hosted in IIS as well as self-host outside of IIS
  • Supports Model binding and Validation
  • Support for OData

Source: codeproject.com

Q4: What New Features are Introduced in ASP.NET Web API 2.0? ⭐⭐

Answer: More new features introduced in ASP.NET Web API framework v2.0 are as follows:

  • Attribute Routing
  • External Authentication
  • CORS (Cross-Origin Resource Sharing)
  • OWIN (Open Web Interface for .NET) Self Hosting
  • IHttpActionResult
  • Web API OData

Source: codeproject.com

Q5: What exactly is OAuth (Open Authorization)? ⭐⭐

Answer: OAuth (Open Authorization) is an open standard for access granting/deligation protocol. It used as a way for Internet users to grant websites or applications access to their information on other websites but without giving them the passwords. It does not deal with authentication.

Basically there are three parties involved: oAuth Provider, oAuth Client and Owner.

  • oAuth Client (Application Which wants to access your credential)
  • oAuth Provider (eg. facebook, twitter...)
  • Owner (the person with facebook,twitter.. account )

Source: stackoverflow.com

Q6: Explain the usage of HttpResponseMessage? ⭐⭐

Answer: HttpResponseMessage works with HTTP protocol to return the data with status/error.

Source: c-sharpcorner.com

Q7: What is the difference between ApiController and Controller? ⭐⭐

Answer:

  • Use Controller to render your normal views.
  • ApiController action only return data that is serialized and sent to the client.

Consider:

public class TweetsController : Controller {
  // GET: /Tweets/
  [HttpGet]
  public ActionResult Index() {
    return Json(Twitter.GetTweets(), JsonRequestBehavior.AllowGet);
  }
}

or

public class TweetsController : ApiController {
  // GET: /Api/Tweets/
  public List<Tweet> Get() {
    return Twitter.GetTweets();
  }
}

Source: stackoverflow.com

Q8: What are main return types supported in Web API? ⭐⭐

Answer: A Web API controller action can return following values:

  • Void – It will return empty content
  • HttpResponseMessage – It will convert the response to an HTTP message.
  • IHttpActionResult – internally calls ExecuteAsync to create an HttpResponseMessage
  • Other types – You can write the serialized return value into the response body

Source: career.guru99.com

Q9: What are the differences between WebAPI and WebAPI 2? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q10: How to Restrict Access to Web API Method to Specific HTTP Verb? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q11: What is Attribute Routing in ASP.NET Web API 2.0? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q12: Name types of Action Results in Web API 2 ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q13: Compare WCF vs ASP.NET Web API? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q14: Explain the difference between WCF RESTful Service vs ASP.NET Web API? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q15: Is it True that ASP.NET Web API has Replaced WCF? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q16: What's the difference between REST & RESTful? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q17: Explain the difference between MVC vs ASP.NET Web API ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q18: Why are the "FromBody" and "FromUri" attributes needed in ASP.NET Web API`? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q19: What is ASP.NET Web API OData? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q20: Explain briefly CORS(Cross-Origin Resource Sharing)? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q21: Can we use Web API with ASP.NET Web Form? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: How Can We Provide an Alias Name for ASP.NET Web API Action? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: What is Delegating Handler? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: How to register exception filter globally? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: What's the difference between OpenID and OAuth? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: How to Return View from ASP.NET Web API Method? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: Explain advantages/disadvantages of using HttpModule vs DelegatingHandler? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: Could you clarify what is the best practice with Web API error management? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: What is difference between OData and REST web services? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: Explain briefly OWIN (Open Web Interface for .NET) Self Hosting? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: Explain the difference between WCF, Web API, WCF REST and Web Service? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: Why should I use IHttpActionResult instead of HttpResponseMessage? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What is difference between WCF and Web API and WCF REST and Web Service? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] AWS Interview Questions

Q1: What is AWS? ⭐

Answer: AWS stands for Amazon Web Services and is a platform that provides database storage, secure cloud services, offering to compute power, content delivery, and many other services to develop business levels.

Source: onlineinterviewquestions.com

Q2: Explain the key components of AWS? ⭐

Answer:

  • Simple Storage Service (S3): S3 is most widely used AWS storage web service.
  • Simple E-mail Service (SES): SES is a hosted transactional email service and allows one to fluently send deliverable emails using a RESTFUL API call or through a regular SMTP.
  • Identity and Access Management (IAM): IAM provides improved identity and security management for AWS account.
  • Elastic Compute Cloud (EC2): EC2 is an AWS ecosystem central piece. It is responsible for providing on-demand and flexible computing resources with a “pay as you go” pricing model.
  • Elastic Block Store (EBS): EBS offers continuous storage solution that can be seen in instances as a regular hard drive.
  • CloudWatch: CloudWatch allows the controller to outlook and gather key metrics and also set a series of alarms to be notified if there is any trouble.

Source: whizlabs.com

Q3: What is buckets in AWS? ⭐

Answer: An Amazon S3 bucket is a public cloud storage resource available in Amazon Web Services' (AWS) Simple Storage Service (S3), an object storage offering. Amazon S3 buckets, which are similar to file folders, store objects, which consist of data and its descriptive metadata.

By default, you can create up to 100 buckets in each of your AWS accounts. If you need more buckets, you can increase your bucket limit by submitting a service limit increase.

Source: whizlabs.com

Q4: What is AWS Cloudfront? ⭐⭐

Answer: Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services. Content delivery networks provide a globally-distributed network of proxy servers which cache content, such as web videos or other bulky media, more locally to consumers, thus improving access speed for downloading the content.

Source: en.wikipedia.org

Q5: What do you mean by AMI? What does it include? ⭐⭐

Answer: AMI stands for the term Amazon Machine Image. It’s an AWS template which provides the information (an application server, and operating system, and applications) required to perform the launch of an instance. This AMI is the copy of the AMI that is running in the cloud as a virtual server. You can launch instances from as many different AMIs as you need. AMI consists of the followings:

  • A root volume template for an existing instance
  • Launch permissions to determine which AWS accounts will get the AMI in order to launch the instances
  • Mapping for block device to calculate the total volume that will be attached to the instance at the time of launch

Source: whizlabs.com

Q6: How can I download a file from EC2? ⭐⭐

Answer: Use scp:

scp -i ec2key.pem username@ec2ip:/path/to/file .

Source: stackoverflow.com

Q7: Is it possible to clone a EC2 instance data? ⭐⭐

Answer: You can make an AMI of an existing instance, and then launch other instances using that AMI.

Source: stackoverflow.com

Q8: What is AWS Data Pipeline? ⭐⭐

Answer: AWS Data Pipeline is a web service that you can use to automate the movement and transformation of data. With AWS Data Pipeline, you can define data-driven workflows, so that tasks can be dependent on the successful completion of previous tasks.

Source: docs.aws.amazon.com

Q9: Explain the features of Amazon EC2 services ⭐⭐

Answer: Amazon EC2 services have following features:

  • Virtual Computing Environments
  • Proffers Persistent storage volumes
  • Firewall validating you to specify the protocol
  • Pre-configured templates
  • Static IP address for dynamic Cloud Computing

Source: whizlabs.com

Q10: What is the connection between AMI and Instance? ⭐⭐

Answer: Many different types of instances can be launched from one AMI. The type of an instance generally regulates the hardware components of the host computer that is used for the instance. Each type of instance has distinct computing and memory efficacy.

Once an instance is launched, it casts as host and the user interaction with it is same as with any other computer but we have a completely controlled access to our instances. AWS developer interview questions may contain one or more AMI based questions, so prepare yourself for the AMI topic very well.

Source: whizlabs.com

Q11: Are S3 buckets region specific? ⭐⭐

Answer: Yes, buckets exist in a specific region and you need to specify that region when you create a bucket. Amazon S3 creates bucket in a region you specify. You can choose any AWS region that is geographically close to you to optimize latency, minimize costs, or address regulatory requirements.

Source: stackoverflow.com

Q12: What is AWS Direct Connect? ⭐⭐

Answer: AWS Direct Connect bypasses the public Internet and establishes a secure, dedicated connection from your infrastructure into AWS. With established connectivity via AWS Direct Connect, you can access your Amazon VPC and all AWS services.

Source: coresite.com

Q13: What is AWS EBS? ⭐⭐

Answer: Amazon Elastic Block Store (Amazon EBS) provides persistent block storage volumes for use with Amazon EC2 instances in the AWS Cloud. Each Amazon EBS volume is automatically replicated within its Availability Zone to protect you from component failure, offering high availability and durability.

Source: aws.amazon.com

Q14: What is AWS Lambda? ⭐⭐

Answer: AWS Lambda is a serverless compute service that runs your code in response to events and automatically manages the underlying compute resources for you. You can use AWS Lambda to extend other AWS services with custom logic, or create your own back-end services that operate at AWS scale, performance, and security.

Source: aws.amazon.com

Q15: What is AWS DynamoDB? ⭐⭐

Answer: Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. With DynamoDB, you can create database tables that can store and retrieve any amount of data, and serve any level of request traffic.

Source: docs.aws.amazon.com

Q16: What is AWS EMR? ⭐⭐

Answer: Amazon Elastic MapReduce (EMR) is an Amazon Web Services (AWS) tool for big data processing and analysis. Amazon EMR offers the expandable low-configuration service as an easier alternative to running in-house cluster computing.

Amazon EMR is based on Apache Hadoop, a Java-based programming framework that supports the processing of large data sets in a distributed computing environment. MapReduce is a software framework that allows developers to write programs that process massive amounts of unstructured data in parallel across a distributed cluster of processors or stand-alone computers.

Source: searchaws.techtarget.com

Q17: Is data stored in S3 is always encrypted? ⭐⭐

Answer: By default data on S3 is not encrypted, but all you could enable server-side encryption in your object metadata when you upload your data to Amazon S3. As soon as your data reaches S3, it is encrypted and stored.

Source: aws.amazon.com

Q18: Can we attach single EBS to multiple EC2s same time? ⭐⭐

Answer: No. After you create a volume, you can attach it to any EC2 instance in the same Availability Zone. An EBS volume can be attached to only one EC2 instance at a time, but multiple volumes can be attached to a single instance.

Source: docs.aws.amazon.com

Q19: What is AWS API gateway? ⭐⭐

Answer: Amazon API Gateway is an AWS service that enables developers to create, publish, maintain, monitor, and secure APIs at any scale. You can create APIs that access AWS or other web services, as well as data stored in the AWS Cloud.

Source: aws.amazon.com

Q20: What is AWS Direct Connect? ⭐⭐

Answer: Using AWS Direct Connect, you can establish private connectivity between AWS and your datacenter, office, or colocation environment, which in many cases can reduce your network costs, increase bandwidth throughput, and provide a more consistent network experience than Internet-based connections.

Source: aws.amazon.com

Q21: What are the security best practices for Amazon EC2 instances? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: Can I automatically start and terminate my Amazon instance using Amazon API? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: Can we still continue working on EBS while creating snapshot of it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: What is AWS Auto Scaling? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: What is AWS Auto Scaling group? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: What is the maximum size of a single S3 object? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: What is AWS bucket policy? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: Does AWS has the option for vertical "auto" scaling of EC2 instance? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: What is AWS WAF? What are the potential benefits of using WAF? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: How to get the instance id from within an EC2 instance? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is AWS Cloudwatch? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What is the difference between Amazon EC2 and AWS Elastic Beanstalk? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: How many storage options are there for EC2 Instance? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is AWS Route 53? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: How would you implement vertical auto scaling of EC2 instance? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: What is Amazon Kinesis? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: How to find a region from within an EC2 instance? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: Where are EC2 snapshots stored? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: When should one use the following: Amazon EC2, Google App Engine, Microsoft Azure and Salesforce.com? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: When to use Amazon CloudFront and when S3? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: Our EC2 micro instance occasionally runs out of memory. Other than using a larger instance size, what else can be done? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What is difference between Lightsail and EC2? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What is the underlying hypervisor for EC2? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: How to safely upgrade an Amazon EC2 instance from t1.micro to large? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Agile & Scrum Interview Questions

Q1: What is ASP.NET MVC? ⭐

Answer: ASP.NET MVC is a web application Framework. It is light weight and highly testable Framework. MVC separates application into three components — Model, View and Controller.

Source: medium.com

Q2: What is Scrum? ⭐

Answer: Scrum is one of the most popular frameworks for implementing Agile. Many people think scrum and agile are the same thing but they're not.

With scrum, the product is built in a series of fixed-length iterations called sprints that give teams a framework for shipping software on a regular cadence.

Source: atlassian.com

Q3: What is sprint in Scrum? ⭐

Answer: In the Scrum methodology a sprint is the basic unit of development. Scrum sprints correspond to Agile iterations.

Each sprint starts with

  • a planning meeting, where the tasks for the sprint are identified and an estimated commitment for the sprint goal is made.

A Sprint ends with

  • a review or retrospective meeting where the progress is reviewed and lessons for the next sprint are identified. During each sprint, the team creates finished portions of a product.

Source: stackoverflow.com

Q4: Name roles in Scrum ⭐

Answer: Three essential roles for scrum success are:

  • The Product Owner are the champions for their product. They are focused on understanding business and market requirements, then prioritizing the work to be done by the engineering team accordingly.
  • ** The Scrum Master** are the champion for scrum within their team. They coach the team, the product owner, and the business on the scrum process and look for ways to fine-tune their practice of it.
  • The Scrum Team are the champions for sustainable development practices. Scrum teams are cross-functional, "the development team" includes testers, designers, and ops engineers in addition to developers.

Source: atlassian.com

Q5: What is User Stories? ⭐

Answer: User stories are features customers might want to see in their software. They are written on index cards to encourage face-to-face communication. Typically no more than a couple days work, they form the basis of our Agile plans.

Q6: What is an epic, user stories and task? ⭐

Answer: Epic: A customer described software feature that is itemized in the product backlog is known as epic. Epics are sub-divided into stories.

User Stories: From the client perspective user stories are prepared which defines project or business functions, and it is delivered in a particular sprint as expected.

Task: Further down user stories are broken down into different task

Source: career.guru99.com

Q7: Explain what is Refactoring? ⭐

Answer: To improve the performance, the existing code is modified; this is re-factoring. During re-factoring the code functionality remains same.

Source: career.guru99.com

Q8: What is an Agile iteration? ⭐

Answer: An Agile iteration is a short one to two week period where a team takes most important user stories, builds them completely and deliver as running-tested-software to the customer. Analysis, design, coding, testing happen during an iteration.

Q9: Name some types of meetings or ceremonies in Scrum ⭐⭐

Answer: Scrum calls for four ceremonies that bring structure to each sprint:

  • Sprint planning: A team planning meeting that determines what to complete in the coming sprint.
  • Daily stand-up: Also known as a daily scrum, a 15-minute mini-meeting for the software team to sync.
  • Sprint demo: A sharing meeting where the team shows what they've shipped in that sprint.
  • Sprint retrospective: A review of what did and didn't go well with actions to make the next sprint better.

Source: atlassian.com

Q10: If a timebox plan needs to be reprioritized who should re-prioritise it? ⭐⭐

Answer: If a timebox plan needs to be reprioritized it should include whole team, product owner, and developers.

Source: career.guru99.com

Q11: Mention the key difference between sprint backlog and product backlog? ⭐⭐

Answer:

  • Product backlog: It contains a list of all desired features and is owned by the product owner

  • Sprint backlog: It is a subset of the product backlog owned by development team and commits to deliver it in a sprint. It is created in Sprint Planning Meeting

Source: career.guru99.com

Q12: What is Agile? ⭐⭐

Answer: Agile is a time boxed, iterative approach (framework) to software delivery that builds software incrementally from the start of the project, instead of trying to deliver it all at once near the end.

It works by breaking projects down into little bits of user functionality called user stories, prioritizing them, and then continuously delivering them in short two week cycles called iterations.

Agile refers to any process that aligns with the concepts of the Agile Manifesto.

Source: agilemanifesto.org

Q13: Explain in Agile, burn-up and burn-down chart? ⭐⭐

Answer: To track the project progress burnup and burn down, charts are used

  • Burnup Chart: It shows the progress of stories done over time
  • Burndown Chart: It shows how much work was left to do overtime

Source: career.guru99.com

Q14: What is Sprint Planning? ⭐⭐

Answer: The work to be performed in the Sprint is planned at the Sprint Planning. This plan is created by the collaborative work of the entire Scrum Team.

Sprint Planning answers the following:

  • What can be delivered in the Increment resulting from the upcoming Sprint?
  • How will the work needed to deliver the Increment be achieved?

The Sprint Goal is an objective set for the Sprint that can be met through the implementation of Product Backlog.

Source: scrum.org

Q15: Explain difference between a Product and a Sprint Backlog ⭐⭐

Answer:

  • The Product Backlog is an ordered list of everything that is known to be needed in the product. It is the single source of requirements for any changes to be made to the product.

  • The Sprint Backlog is the set of Product Backlog items selected for the Sprint during the Sprint Planning, plus a plan for delivering the product Increment and realizing the Sprint Goal.

Source: scrum.org

Q16: What is story points/efforts/ scales? ⭐⭐

Answer: It is used to discuss the difficulty of the story without assigning actual hours. The most common scale used is a Fibonacci sequence (1, 2, 3, 5, 8,1 3,….100) although some teams use linear scale (1, 2, 3, 4….), Powers of 2 (1, 2, 4, 8……) and cloth size (XS, S ,M, L, XL)

Source: career.guru99.com

Q17: How is Agile different from other software delivery aproaches? ⭐⭐

Answer:

  • Analysis, design, coding, and testing are continuous activities
  • Development is iterative
  • Planning is adaptive
  • Roles blur
  • Scope can vary
  • Requirements can change
  • Working software is the primary measure of success

Q18: Have you ever used Scrum Task Board? ⭐⭐

Answer: In Scrum the task board is a visual display of the progress of the Scrum team during a sprint. It presents a snapshot of the current sprint backlog allowing everyone to see which tasks remain to be started, which are in progress and which are done.

Consider the following layout of the task board:

  • Stories
  • To Do
  • In Progress
  • Testing
  • Done

Source: manifesto.co.uk

Q19: Explain what does it mean by product roadmap? ⭐⭐

Answer: A product roadmap is referred for the holistic view of product features that create the product vision.

Source: career.guru99.com

Q20: Explain what is Velocity in Agile? ⭐⭐

Answer: Velocity is a metric that is calculated by addition of all efforts estimates related with user stories completed in an iteration. It figures out how much work Agile can complete in a sprint and how much time will it need to finish a project.

Source: career.guru99.com

Q21: Mention what should a burndown chart should highlight? ⭐⭐

Answer: The burn-down chart shows the remaining work to complete before the timebox (iteration) ends.

Source: career.guru99.com

Q22: What is test driven development? ⭐⭐

Answer: Test driven development (TDD) is also known as test-driven design. In this method, developer first writes an automated test case which describes new function or improvement and then creates small codes to pass that test, and later re-factors the new code to meet the acceptable standards.

Source: career.guru99.com

Q23: Explain what is Scrum ban? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: What does project velocity mean? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: Can you explain the purpose of a burndown chart? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: What is the Agile Manifesto? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: What does the Scrum Framework consist from? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: What are four Agile Manifesto values? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: Explain the difference between Extreme programming and Scrum? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What are some methodologies used to implement Agile? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: Mention what are the challenges involved in Agile software development? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What are the qualities of a good Agile tester should have? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What is a Sprint Review? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is Acceptance Criteria? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: Mention what are the advantages of maintaining consistent iteration length throughout the project? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: Mention in detail what are the role’s of Scrum Master? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: Mention what is the difference between Scrum and Agile? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: Mention what are the Agile quality strategies? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: Why Continuous Integration is important for Agile? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: What is a Sprint Retrospective? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What are the Scrum values? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What the Scrum theory is based on? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: When not to use Agile? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: In Agile mention what is the difference between the Incremental and Iterative development? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: Explain how you can measure the velocity of the sprint with varying team capacity? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What is Scrum Increment? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: Explain main differences between Scrum and Agile? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Name the 12 Agile Principles ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: What are the benefits of Burn Up chart? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: What is the Scrum's definition of "Done"? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: Provide some examples of burn-up chart ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: Explain what is Spike and Zero sprint in Agile? What is the purpose of it? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Android Interview Questions

Q1: Mention the difference between RelativeLayout and LinearLayout? ⭐

Answer:

  • Linear Layout — Arranges elements either vertically or horizontally. i.e. in a row or column.
  • Relative Layout — Arranges elements relative to parent or other elements.

Source: android.jlelse.eu

Q2: What is the difference between Bitmap and Drawable in Android? ⭐

Answer:

  • A Bitmap is a representation of a bitmap image (something like java.awt.Image).
  • A Drawable is an abstraction of "something that can be drawn". It could be a Bitmap (wrapped up as a BitmapDrawable), but it could also be a solid color, a collection of other Drawable objects, or any number of other structures.

Source: stackoverflow.com

Q3: What is a difference between Spannable and String? ⭐

Answer: A Spannable allows to attach formatting information like bold, italic, ... to sub-sequences ("spans", thus the name) of the characters. It can be used whenever you want to represent "rich text".

Source: stackoverflow.com

Q4: What is an Activity? ⭐

Answer: An activity provides the window in which the app draws its UI. This window typically fills the screen, but may be smaller than the screen and float on top of other windows. Generally, one activity implements one screen in an app. For instance, one of an app’s activities may implement a Preferences screen, while another activity implements a Select Photo screen.

Source: github.com

Q5: What is Armv7? ⭐⭐

Answer: There are 3 CPU architectures in Android:

  • ARMv7 is the most common as it is optimised for battery consumption.
  • ARM64 is an evolved version of that that supports 64-bit processing for more powerful computing.
  • ARMx86, is the least used for these three, since it is not battery friendly. It is more powerful than the other two.

Source: android.jlelse.eu

Q6: Explain activity lifecycle ⭐⭐

Answer: As a user navigates through, out of, and back to your app, the Activity instances in your app transition through different states in their lifecycle.

To navigate transitions between stages of the activity lifecycle, the Activity class provides a core set of six callbacks: onCreate(), onStart(), onResume(), onPause(), onStop(), and onDestroy(). The system invokes each of these callbacks as an activity enters a new state.

Source: developer.android.com

Q7: How can I get the context in a fragment? ⭐⭐

Answer: You can use getActivity(), which returns the activity associated with a fragment. The activity is a context (since Activity extends Context).

You can also override the onAttach method of fragment:

public static class DummySectionFragment extends Fragment{
...
    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        DBHelper = new DatabaseHelper(activity);
    }
}

Source: stackoverflow.com

Q8: What is View Group? How are they different from Views? ⭐⭐

Answer: View: View objects are the basic building blocks of User Interface(UI) elements in Android. View is a simple rectangle box which responds to the user’s actions. Examples are EditText, Button, CheckBox etc. View refers to the android.view.View class, which is the base class of all UI classes.

ViewGroup: ViewGroup is the invisible container. It holds View and ViewGroup. For example, LinearLayout is the ViewGroup that contains Button(View), and other Layouts also. ViewGroup is the base class for Layouts.

Source: android.jlelse.eu

Q9: Is it possible to implement the model–view–controller pattern in Java for Android? ⭐⭐

Answer: In Android you don't have MVC, but you have the following:

  • You define your user interface in various XML files by resolution, hardware, etc.
  • You define your resources in various XML files by locale, etc.
  • You extend clases like ListActivity, TabActivity and make use of the XML file by inflaters.
  • You can create as many classes as you wish for your business logic.
  • A lot of Utils have been already written for you - DatabaseUtils, Html.

Source: stackoverflow.com

Q10: What’s the difference between onCreate() and onStart()? ⭐⭐

Answer:

  • The onCreate() method is called once during the Activity lifecycle, either when the application starts, or when the Activity has been destroyed and then recreated, for example during a configuration change.
  • The onStart() method is called whenever the Activity becomes visible to the user, typically after onCreate() or onRestart().

Source: android.jlelse.eu

Q11: Explain the build process in Android ⭐⭐

Answer:

  1. First step involves compiling the resources folder (/res) using the aapt (android asset packaging tool) tool. These are compiled to a single class file called R.java. This is a class that just contains constants.
  2. Second step involves the java source code being compiled to .class files by javac, and then the class files are converted to Dalvik bytecode by the “dx” tool, which is included in the sdk ‘tools’. The output is classes.dex.
  3. The final step involves the android apkbuilder which takes all the input and builds the apk (android packaging key) file.

Source: android.jlelse.eu

Q12: What is an Intent in Android? ⭐⭐

Answer: An Intent is basically a message that is passed between components (such as Activities, Services, Broadcast Receivers, and Content Providers).So, it is almost equivalent to parameters passed to API calls. The fundamental differences between API calls and invoking components via intents are:

  • API calls are synchronous while intent-based invocations are asynchronous.
  • API calls are compile-time binding while intent-based calls are run-time binding.

To listen for an broadcast intent (like the phone ringing, or an SMS is received), you implement a broadcast receiver, which will be passed the intent. To declare that you can handle another's app intent like "take picture", you declare an intent filter in your app's manifest file.

If you want to fire off an intent to do something, like pop up the dialer, you fire off an intent saying you will.

An Intent provides a facility for performing late runtime binding between the code in different applications.

Source: stackoverflow.com

Q13: What is the most appropriate way to store user settings in Android application? ⭐⭐

Answer: In general SharedPreferences are your best bet for storing preferences, so in general I'd recommend that approach for saving application and user settings.

The only area of concern here is what you're saving. Passwords are always a tricky thing to store, and I'd be particularly wary of storing them as clear text. The Android architecture is such that your application's SharedPreferences are sandboxed to prevent other applications from being able to access the values so there's some security there, but physical access to a phone could potentially allow access to the values.

Source: stackoverflow.com

Q14: In what situation should one use RecyclerView over ListView? ⭐⭐

Answer: RecyclerView was created as a ListView improvement, so yes, you can create an attached list with ListView control, but using RecyclerView is easier as it:

  • Reuses cells while scrolling up/down - this is possible with implementing View Holder in the ListView adapter, but it was an optional thing, while in the RecycleView it's the default way of writing adapter.
  • Decouples list from its container - so you can put list items easily at run time in the different containers (linearLayout, gridLayout) with setting LayoutManager.

To conclude, RecyclerView is a more flexible control for handling "list data" that follows patterns of delegation of concerns and leaves for itself only one task - recycling items.

Source: stackoverflow.com

Q15: Explain briefly all the Android application components ⭐⭐

Answer: App components are the essential building blocks of an Android app. Each component is an entry point through which the system or a user can enter your app.

There are four different types of app components:

  • Activities - An activity is the entry point for interacting with the user. It represents a single screen with a user interface.
  • Services - A service is a general-purpose entry point for keeping an app running in the background for all kinds of reasons. It is a component that runs in the background to perform long-running operations or to perform work for remote processes.
  • Broadcast receivers - A broadcast receiver is a component that enables the system to deliver events to the app outside of a regular user flow, allowing the app to respond to system-wide broadcast announcements.
  • Content providers - A content provider manages a shared set of app data that you can store in the file system, in a SQLite database, on the web, or on any other persistent storage location that your app can access.

Source: developer.android.com

Q16: What is 'Context' on Android? ⭐⭐

Answer: The documentation itself provides a rather straightforward explanation: The Context class is an “Interface to global information about an application environment".

We may assume a Context is a handle to the system; it provides services like resolving resources, obtaining access to databases and preferences, and so on. An Android app has activities. Context is like a handle to the environment your application is currently running in. The activity object inherits the Context object.

Source: stackoverflow.com

Q17: What is the Dalvik Virtual Machine? ⭐⭐

Answer: The Dalvik Virtual Machine (DVM) is an android virtual machine optimized for mobile devices. It optimizes the virtual machine for memory, battery life and performance.

The Dex compiler converts the class files into the .dex file that run on the Dalvik VM. Multiple class files are converted into one dex file.

Source: www.javatpoint.com

Q18: Tell about Constraint Layout ⭐⭐

Answer: ConstraintLayout allows you to create large and complex layouts with a flat view hierarchy (no nested view groups). It's similar to RelativeLayout in that all views are laid out according to relationships between sibling views and the parent layout, but it's more flexible than RelativeLayout and easier to use with Android Studio's Layout Editor.

Intention of ConstraintLayout is to optimize and flatten the view hierarchy of your layouts by applying some rules to each view to avoid nesting.

Source: developer.android.com

Q19: What is ADB and what is it used for? ⭐⭐

Answer: ADB is the acronym for Android Debug Bridge, which is part of the Android SDK (Software Development Kit). It uses a client-server-model (i.e. adbd, the ADB daemon, is running on the device and can be connected to), and in most cases is used via an USB connection. It is also possible to use it via WiFi (wireless adb).

There's nothing you need to install on your Android device, as the ADB daemon (adbd) is already integrated into the Android OS. It is usually accessed via a command line interface from the PC, where either the full Android SDK is installed (several 30 MB download archive currently), or a massively stripped-down version for "non-developers", sometimes referred to as "Mini ADB" or "ADB essentials" (for Linux, this is only the adb executable; for Windows it's adb.exe plus two or three .dll files).

Source: developer.android.com

Q20: What is Dalvik? ⭐⭐

Answer: Dalvik is a Just In Time (JIT) compiler. By the term JIT, we mean to say that whenever you run your app in your mobile device then that part of your code that is needed for execution of your app will only be compiled at that moment and rest of the code will be compiled in the future when needed. The JIT or Just In Time compiles only a part of your code and it has a smaller memory footprint and due to this, it uses very less physical space on your device.

Source: blog.mindorks.com

Q21: What types of Context do you know? ⭐⭐

Answer: The are mainly two types of context:

  • Application Context: It is an instance that is the singleton and can be accessed in activity via getApplicationContext(). This context is tied to the lifecycle of an application. The application context can be used where you need a context whose lifecycle is separate from the current context or when you are passing a context beyond the scope of activity.

  • Activity Context: This context is tied to the lifecycle of an activity. The activity context should be used when you are passing the context in the scope of an activity or you need the context whose lifecycle is attached to the current context.

Source: blog.mindorks.com

Q22: How do I pass data between Activities in Android application? ⭐⭐

Details: I have a scenario where, after logging in through a login page, there will be a sign-out button on each activity. Can you guide me on how to keep session id available to all activities?

Answer: The easiest way to do this would be to pass the session id to the signout activity in the Intent you're using to start the activity:

Intent intent = new Intent(getBaseContext(), SignoutActivity.class);
intent.putExtra("EXTRA_SESSION_ID", sessionId);
startActivity(intent);

Access that intent on next activity:

String sessionId = getIntent().getStringExtra("EXTRA_SESSION_ID");

Source: stackoverflow.com

Q23: How does the OutOfMemory happens? ⭐⭐

Answer: Out of memory error is very common error when you are developing for a application that deals with multiple images sets or large bitmaps or some Animation stuff. In Android, every application runs in a Linux Process. Each Linux Process has a Virtual Machine (Dalvik Virtual Machine) running inside it. There is a limit on the memory a process can demand and it is different for different devices and also differs for phones and tablets. When some process demands a higher memory than its limit it causes a error i.e Out of memory error.

There are number of reasons why we get a Out of memory errors. Some of those are:

  1. You are doing some operation that continuously demands a lot of memory and at some point it goes beyond the max heap memory limit of a process.

  2. You are leaking some memory i.e you didn’t make the previous objects you allocated eligible for Garbage Collection (GC). This is called Memory leak.

  3. You are dealing with large bitmaps and loading all of them at run time. You have to deal very carefully with large bitmaps by loading the size that you need not the whole bitmap at once and then do scaling.

Source: blogs.innovationm.com

Q24: What is a ContentProvider and what is it typically used for? ⭐⭐

Answer: A content provider manages access to a central repository of data. A provider is part of an Android application, which often provides its own UI for working with the data. However, content providers are primarily intended to be used by other applications, which access the provider using a provider client object.

Typically you work with content providers in one of two scenarios;

  • you may want to implement code to access an existing content provider in another application, or
  • you may want to create a new content provider in your application to share data with other applications.

Source: developer.android.com

Q25: What is an AsyncTask? ⭐⭐

Answer: AsyncTask is one of the easiest ways to implement parallelism in Android without having to deal with more complex methods like Threads. Though it offers a basic level of parallelism with the UI thread, it should not be used for longer operations (of, say, not more than 2 seconds).

AsyncTask has four methods

  • onPreExecute()
  • doInBackground()
  • onProgressUpdate()
  • onPostExecute()

where doInBackground() is the most important as it is where background computations are performed.

Source: stackoverflow.com

Answer: In short, Fragments need to have a no-args constructor for the Android system to instantiate them. Your Fragment subclasses need a public empty constructor as this is what's being called by the framework.

It is used in the case when device has to restore the state of a fragment. No data will be passed and a default fragment will be created and then the state will be restored. Since the system has no way to know what you passed in your constructor or your newInstance, default constructor will be used and saved bundle should be passed via onCreate after the fragment is actually instantiated with the default constructor.

Source: www.quora.com

Q27: How to persist data in an Android app? ⭐⭐

Answer: There are basically four different ways to store data in an Android app:

  1. Shared Preferences - to save primitive data in key-value pairs
  2. Internal Storage - you need to store data to the device filesystem, but you do not want any other app (even the user) to read this data
  3. External Storage - you might want the user to view the files and data saved by your app
  4. SQLite database

Source: www.androidauthority.com

Q28: Explain Android notification system ⭐⭐

Answer: A notification is a message that Android displays outside your app's UI to provide the user with reminders, communication from other people, or other timely information from your app. Users can tap the notification to open your app or take an action directly from the notification.

Notifications appear to users in different locations and formats, such as an icon in the status bar, a more detailed entry in the notification drawer, as a badge on the app's icon, and on paired wearables automatically. Beginning with Android 5.0, notifications can appear on the lock screen.

Starting in Android 8.0 (API level 26), all notifications must be assigned to a channel or it will not appear. By categorizing notifications into channels, users can disable specific notification channels for your app (instead of disabling all your notifications), and users can control the visual and auditory options for each channel—all from the Android system settings.

Source: developer.android.com

Q29: What is Handler and what is it used for? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: Explain key differences between Service and IntentService ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is Explicit Intent? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: How would you support different screen sizes? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What is Implicit Intent? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is Intent Filter? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: What does LayoutInflater in Android do? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: Android Log.v(), Log.d(), Log.i(), Log.w(), Log.e(). When to use each one? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: What are the differences between onCreate(), onCreateView(), and onActivityCreated() in fragments and what would they each be used for? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: What is the difference between onCreate() and onCreateView() lifecycle methods in Fragment? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: How to declare global variables in Android? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: What is the actual differences between a activity context and application context? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What are the permission protection levels in Android? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What is the difference between Activity and Context? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: How would you preserve Activity state during a screen rotation? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: When to use Android's ArrayMap instead of a HashMap? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What are the differences between ArrayList and ArrayMap? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What are dex files are used for? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: What is an Android PendingIntent? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Explain how HashMap works ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: What is the difference between compileSdkVersion and targetSdkVersion? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: What are Android Annotations and what are they used for? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: How could you pass data between activities without Intent? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: What is the difference between invisible and gone for the View visibility status? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: What is ART? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: What is Android Data Binding? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: What is RenderScript and when should we (really) use it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: Why fragments, and when to use fragments instead of activities? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: What are retained fragments? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What is the difference between Service & Intent Service? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q59: Describe Different Types of Services in Android ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q60: What is the support library? Why was it introduced? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q61: What is DDMS and what can you do with it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q62: What is the best way to update the screen periodically? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q63: What is a JobScheduler? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q64: What is the ViewHolder pattern? Why should we use it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q65: What is the difference between ListView and RecyclerView? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q66: What is a LocalBroadcastManager? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q67: What is the difference between AsyncTask and Thread/Runnable? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q68: What is the difference between a Bundle and an Intent? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q69: What is the difference between Adapter and Loader in Android? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q70: When to use Android Loaders? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q71: Isn't android's Bundle functionally equivalent with a Map? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q72: What is Parcelable in Android? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q73: When to use Fragments vs Activities? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q74: How would you communicate between two Fragments? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q75: What is the difference between Handler vs AsyncTask vs Thread? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q76: How can two distinct Android apps interact? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q77: Explain String vs StringBuilder vs SpannedString vs SpannableString vs SpannableStringBuilder vs CharSequence ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q78: Is a Dalvik virtual machine instance created for each application? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q79: What is the Android NDK? How can one use it? Why should one use it? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q80: What is the StrictMode? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q81: When is it necessary, or better to use a SurfaceView instead of a View? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q82: Can you manually call the Garbage collector? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q83: What is the difference between Android timer and a Handler to do action every N seconds? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q84: What is Broadcast Receiver? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q85: How to avoid reverse engineering of an APK file? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q86: What are some differences between ART and Dalvik? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q87: What are Android Architecture Components? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q88: Why to consider FlatBuffers over JSON? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q89: What is the difference between ANR and crash in Android? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q90: How do you handle Bitmaps in Android as it takes too much memory? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q91: Explain how ArrayMap works ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q92: What is the difference between ArrayMap vs HashMap? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q93: Discuss Singletons vs. Application Context for app-global state ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q94: What is the difference between getContext() , getApplicationContext() , getBaseContext() , and "this"? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q95: What is Doze? What about App Standby? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q96: What is a ThreadPool? And is it more effective than using several separate Threads? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q97: How can I use AsyncTask in different Activities? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q98: What is AIDL? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q99: What are some best practices to avoid memory leaks on Android? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q100: When to use SparseArray vs HashMap? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q101: Provide some tips to reduce battery usage in an android application ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q102: What are some difference between Parcelable and Serializable? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q103: What are best practices for storing and protecting private API keys in applications? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q104: What is a Sticky Broadcast? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q105: What is the relationship between Looper, Handler and MessageQueue in Android? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q106: When would you use AIDL? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q107: Explain reasons why not to use getApplicationContext()? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q108: When to use AIDL vs Messenger Queue? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q109: What is the difference between Local, Normal, Ordered and Sticky broadcasts? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q110: Explain when would you call getApplicationContext() and why? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q111: What is Intent vs Sticky Intent vs Pending Intent? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q112: What happens if the user navigates away or closes the app while I still have a reference to the Activity the user just closed in my AsyncTask? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q113: What is the onTrimMemory method? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Angular Interview Questions

Q1: What is Routing Guard in Angular? ⭐

Answer: Angular’s route guards are interfaces which can tell the router whether or not it should allow navigation to a requested route. They make this decision by looking for a true or false return value from a class which implements the given guard interface.

Source: medium.com

Q2: What is a module, and what does it contain? ⭐

Answer: An Angular module is set of Angular basic building blocks like component, directives, services etc. An app can have more than one module.

A module can be created using @NgModule decorator.

@NgModule({
  imports:      [ BrowserModule ],
  declarations: [ AppComponent ],
  bootstrap:    [ AppComponent ]
})
export class AppModule { }

Source: stackoverflow.com

Q3: What are pipes? Give me an example. ⭐

Answer: A pipe takes in data as input and transforms it to a desired output. You can chain pipes together in potentially useful combinations. You can write your own custom pipes. Angular comes with a stock of pipes such as DatePipe, UpperCasePipe, LowerCasePipe, CurrencyPipe, and PercentPipe.

Consider:

<p>The hero's birthday is {{ birthday | date }}</p>

In this page, you'll use pipes to transform a component's birthday property into a human-friendly date.

Source: angular.io

Q4: What is the minimum definition of a component? ⭐⭐

Answer: The absolute minimal configuration for a @Component in Angular is a template. Both template properties are set to optional because you have to define either template or templateUrl.

When you don't define them, you will get an exception like this:

No template specified for component 'ComponentName'

A selector property is not required, as you can also use your components in a route.

Source: stackoverflow.com

Q5: What's the difference between an Angular component and module? ⭐⭐

Answer: Components control views (html). They also communicate with other components and services to bring functionality to your app.

Modules consist of one or more components. They do not control any html. Your modules declare which components can be used by components belonging to other modules, which classes will be injected by the dependency injector and which component gets bootstrapped. Modules allow you to manage your components to bring modularity to your app.

Source: stackoverflow.com

Q6: How would you run unit test? ⭐⭐

Answer: The Angular CLI downloads and install everything you need to test an Angular application with the Jasmine test framework.

The project you create with the CLI is immediately ready to test. Just run this one CLI command:

ng test

Source: angular.io

Q7: What is a service, and when will you use it? ⭐⭐

Answer: Angular services are singleton objects which get instantiated only once during the lifetime of an application. They contain methods that maintain data throughout the life of an application, i.e. data does not get refreshed and is available all the time. The main objective of a service is to organize and share business logic, models, or data and functions with different components of an Angular application.

The separation of concerns is the main reason why Angular services came into existence. An Angular service is a stateless object and provides some very useful functions.

Source: dzone.com

Q8: What is interpolation? ⭐⭐

Answer: Interpolation is a special syntax that Angular converts into property binding. It’s a convenient alternative to property binding. It is represented by double curly braces({{}}). The text between the braces is often the name of a component property. Angular replaces that name with the string value of the corresponding component property. Let's take an example,

    <h3>
      {{title}}
      <img src="{{url}}" style="height:30px">
    </h3>

In the example above, Angular evaluates the title and url properties and fills in the blanks, first displaying a bold application title and then a URL.

Source: github.com/sudheerj

Q9: What is a bootstrapping module? ⭐⭐

Answer: Every application has at least one Angular module, the root module that you bootstrap to launch the application is called as bootstrapping module. It is commonly known as AppModule. The default structure of AppModule generated by AngularCLI would be as follows,

    /* JavaScript imports */
    import { BrowserModule } from '@angular/platform-browser';
    import { NgModule } from '@angular/core';
    import { FormsModule } from '@angular/forms';
    import { HttpClientModule } from '@angular/common/http';

    import { AppComponent } from './app.component';

    /* the AppModule class with the @NgModule decorator */
    @NgModule({
      declarations: [
        AppComponent
      ],
      imports: [
        BrowserModule,
        FormsModule,
        HttpClientModule
      ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule { }

Source: github.com/sudheerj

Q10: What is the equivalent of ngShow and ngHide in Angular? ⭐⭐

Answer: Just bind to the hidden property

Source: stackoverflow.com

Q11: What are observables? ⭐⭐

Answer: Observables are declarative which provide support for passing messages between publishers and subscribers in your application. They are mainly used for event handling, asynchronous programming, and handling multiple values. In this case, you define a function for publishing values, but it is not executed until a consumer subscribes to it. The subscribed consumer then receives notifications until the function completes, or until they unsubscribe.

Source: github.com/sudheerj

Q12: What is an observable? ⭐⭐

Answer: An Observable is a unique Object similar to a Promise that can help manage async code. Observables are not part of the JavaScript language so we need to rely on a popular Observable library called RxJS. The observables are created using new keyword. Let see the simple example of observable,

    import { Observable } from 'rxjs';

    const observable = new Observable(observer => {
      setTimeout(() => {
        observer.next('Hello from a Observable!');
      }, 2000);
    });`

Source: github.com/sudheerj

Q13: What is a component? Why would you use it? ⭐⭐

Answer: Components are the most basic building block of an UI in an Angular application. An Angular application is a tree of Angular components. Angular components are a subset of directives. Unlike directives, components always have a template and only one component can be instantiated per an element in a template.

A component must belong to an NgModule in order for it to be usable by another component or application. To specify that a component is a member of an NgModule, you should list it in the declarations field of that NgModule.

@Component({selector: 'greet', template: 'Hello {{name}}!'})
class Greet {
  name: string = 'World';
}

Source: angular.io

Q14: What is an observer? ⭐⭐

Answer: Observer is an interface for a consumer of push-based notifications delivered by an Observable. It has below structure,

    interface Observer<T> {
      closed?: boolean;
      next: (value: T) => void;
      error: (err: any) => void;
      complete: () => void;
    }

A handler that implements the Observer interface for receiving observable notifications will be passed as a parameter for observable as below,

    myObservable.subscribe(myObserver);

Note: If you don't supply a handler for a notification type, the observer ignores notifications of that type.

Source: github.com/sudheerj

Q15: What is the purpose of base href tag? ⭐⭐

Answer: The routing application should add element to the index.html as the first child in the tag inorder to indicate how to compose navigation URLs. If app folder is the application root then you can set the href value as below

    <base href="/">

Source: github.com/sudheerj

Q16: You have an HTML response I want to display. How do I do that? ⭐⭐

Answer: The correct syntax is the following:

<div [innerHTML]="theHtmlString"></div>

Working in 5.2.6

Source: medium.com

Q17: What is the difference between Structural and Attribute directives in Angular? ⭐⭐

Answer:

  • Structural directives are used to alter the DOM layout by removing and adding DOM elements. It is far better in changing the structure of the view. Examples of Structural directives are NgFor and Nglf.

  • Attribute Directives These are being used as characteristics of elements. For example, a directive such as built-in NgStyle in the template Syntax guide is an attribute directive.

Source: onlineinterviewquestions.com

Q18: How can I select an element in a component template? ⭐⭐

Answer: You can get a handle to the DOM element via ElementRef by injecting it into your component's constructor:

constructor(myElement: ElementRef) { ... }

Source: medium.com

Q19: What is the equivalent of "ngShow" and "ngHide" in Angular? ⭐⭐

Answer: Just bind to the hidden property:

[hidden]="!myVar"

Source: medium.com

Q20: What is the difference between *ngIf vs [hidden]? ⭐⭐

Answer: *ngIf effectively removes its content from the DOM while [hidden] modifies the display property and only instructs the browser to not show the content but the DOM still contains it.

Source: medium.com

Q21: What are the differences between AngularJS (angular 1.x) and Angular (Angular 2.x and beyond)? ⭐⭐

Answer: Angular and AngularJS is basically a different framework with the same name.

Angular is more ready for the current state of web standards and the future state of the web (ES6\7, immutiablity, components, shadow DOM, service workers, mobile compatibilty, modules, typescript and so on and so on... )

Angular killed many main features in AngularJS like - controllers, $scope, directives (replaced with @component annotations), the module definition, and much more, even simple things like ng-repeat has not left the same as it was.

Also:

  1. They added an angular cli.
  2. Your angular code is written in ES6 Typescript and it compiles at runtime to Javascript in the browser.
  3. You bind to your HTML similarly like how you would if in an Angular 1 directive. So variable like $scope and $rootScope have been deprecated.

Source: stackoverflow.com

Q22: What are some differences between Angular 2 and 4? ⭐⭐

Answer: Just to name a few:

  • Improvements in AOT,
  • allowing the "else" clause in ngIf,
  • support for TypeScript 2.1
  • breaking out the animations package

Source: github.com/WebPredict

Q23: What is the difference between "@Component" and "@Directive" in Angular? ⭐⭐

Answer:

  • Directives add behaviour to an existing DOM element or an existing component instance.
  • A component, rather than adding/modifying behaviour, actually creates its own view (hierarchy of DOM elements) with attached behaviour.

Write a component when you want to create a reusable set of DOM elements of UI with custom behaviour. Write a directive when you want to write reusable behaviour to supplement existing DOM elements.

Source: medium.com

Q24: How would you protect a component being activated through the router? ⭐⭐

Answer: The Angular router ships with a feature called guards. These provide us with ways to control the flow of our application. We can stop a user from visitng certain routes, stop a user from leaving routes, and more. The overall process for protecting Angular routes:

  • Create a guard service: ng g guard auth
  • Create canActivate() or canActivateChild() methods
  • Use the guard when defining routes
// import the newly created AuthGuard
const routes: Routes = [
  {
    path: 'account',
    canActivate: [AuthGuard]
  }
];

Some other available guards:

  • CanActivate: Check if a user has access
  • CanActivateChild: Check if a user has access to any of the child routes
  • CanDeactivate: Can a user leave a page? For example, they haven't finished editing a post
  • Resolve: Grab data before the route is instantiated
  • CanLoad: Check to see if we can load the routes assets

Source: scotch.io

Q25: What does this line do? ⭐⭐

Details:

@HostBinding('[class.valid]') isValid;

Answer: @HostBinding lets you set properties on the element or component that hosts the directive.

The code applies the css class valid to whatever is using this directive conditionally based on the value of isValid.

Source: alligator.io

Q26: What is router outlet? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: What is difference between "declarations", "providers" and "import" in NgModule? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: What's new in Angular 6 and why shall we upgrade to it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: Why would you use a spy in a test? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What is TestBed? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is Protractor? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What is the point of calling "renderer.invokeElementMethod(rendererEl, methodName)"? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: How would you control size of an element on resize of the window in a component? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is AOT? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: What is Redux and how does it relate to an Angular app? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: What is the use of codelyzer? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: How to inject base href? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: How to bundle an Angular app for production? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: When would you use eager module loading? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: What are the Core Dependencies of Angular 7? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: Why Incremental DOM Has Low Memory Footprint? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What are the ways to control AOT compilation? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What is Angular Universal? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: Do I need a Routing Module always? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What is the purpose of Wildcard route? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What is activated route? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: What is router state? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: What is Reactive Programming and how to use one with Angular? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: Why should ngOnInit be used, if we already have a constructor? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: What are dynamic components? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: Explain how custom elements works internally? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: What are custom elements? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: What are the utility functions provided by RxJS? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: How do you perform error handling in observables? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: What is multicasting? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: What is the difference between promise and observable? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: Can you explain the difference between Promise and Observable in Angular? In what scenario can we use each case? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What is subscribing? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q59: How do you perform Error handling for HttpClient? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q60: What is the difference between @Component and @Directive in Angular? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q61: Explain the difference between "Constructor" and "ngOnInit" ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q62: What is a parameterized pipe? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q63: How do you categorize data binding types? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q64: Explain the difference between Promise and Observable in Angular? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q65: What happens if you use script tag inside template? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q66: What is the option to choose between inline and external template file? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q67: What's new in Angular 8? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q68: Angular 8: What is Bazel? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q69: Angular 8: What is Angular Ivy? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q70: Angular 8: Explain Lazy Loading in Angular 8? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q71: Name some security best practices in Angular ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q72: How to set headers for every request in Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q73: What is ngUpgrage? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q74: What are the mapping rules between Angular component and custom element? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q75: Why would you use renderer methods instead of using native element methods? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q76: Angular 9: What are some new features in Angular 9? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q77: Do I need to bootstrap custom elements? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q78: How do you create application to use scss? What changed for Angular 6? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q79: Name and explain some Angular Module Loading examples ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q80: What does "detectChanges" do in Angular jasmine tests? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q81: Why would you use lazy loading modules in Angular app? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q82: When does a lazy loaded module is loaded? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q83: What are the lifecycle hooks for components and directives? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q84: When should I store the "Subscription" instances and invoke unsubscribe() during the NgOnDestroy life cycle and when can I simply ignore them? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q85: What would be a good use for NgZone service? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q86: What is Ivy Renderer? Is it supported by Angular 7? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q87: What is incremental DOM? How is it different from virtual DOM? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q88: What is the difference between pure and impure pipe? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q89: What is Zone in Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q90: How to detect a route change in Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q91: What are the advantages with AOT? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q92: Could I use jQuery with Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q93: How would you insert an embedded view from a prepared TemplateRef? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Read answer on 👉 FullStack.Cafe

Q95: What does a just-in-time (JIT) compiler do (in general)? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q96: Angular 8: Why we should use Bazel for Angular builds? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q97: What is the need for SystemJS in Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q98: What is Reactive programming and how does it relate to Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q99: Explain the purpose of Service Workers in Angular ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q100: Why do we need compilation process? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q101: Angular 9: How Would You Compare View Engine vs Ivy? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q102: What is the Angular equivalent to an AngularJS "$watch"? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q103: Why Incremental DOM is Tree Shakable? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q104: What is the difference between BehaviorSubject vs Observable? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q105: What's new in Angular 7? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q106: Name some differences between SystemJS vs WebPack? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q107: What are observable creation functions? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q108: Is there no equivalent to $scope.emit() or $scope.broadcast() in Angular? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q109: What is the default compilation for Angular 5? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q110: Could you provide some particular examples of using ngZone? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q111: Why angular uses url segment? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q112: When to use query parameters versus matrix parameters? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q113: Angular 8: How does Ivy affect the (Re)build time? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q114: Angular 8: What are some changes in Location module? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q115: Do you know how you can run angularJS and angular side by side? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q116: How would you extract webpack config from angular cli project? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q117: Just-in-Time (JiT) vs Ahead-of-Time (AoT) compilation. Explain the difference. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q118: Angular 9: What is Locality principle for Ivy? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q119: Angular 9: Explain improvements in Tree-Shaking ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q120: Why did the Google team go with incremental DOM instead of virtual DOM? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] AngularJS Interview Questions

Q1: Why to use AngularJS? ⭐

Answer: There are following reasons to choose AngularJS as a web development framework:

  1. It is based on MVC pattern which helps you to organize your web apps or web application properly.
  2. It extends HTML by attaching directives to your HTML markup with new attributes or tags and expressions in order to define very powerful templates.
  3. It also allows you to create your own directives, making reusable components that fill your needs and abstract your DOM manipulation logic.
  4. It supports two-way data binding i.e. connects your HTML (views) to your JavaScript objects (models) seamlessly. In this way any change in model will update the view and vice versa without any DOM manipulation or event handling.
  5. It encapsulates the behavior of your application in controllers which are instantiated with the help of dependency injection.
  6. It supports services that can be injected into your controllers to use some utility code to fullfil your need. For example, it provides $http service to communicate with REST service.
  7. It supports dependency injection which helps you to test your angular app code very easily.
  8. Also, AngularJS is mature community to help you. It has widely support over the internet.

Source: github.com/krosti

Q2: What is the difference between "ng-show"/"ng-hide" and "ng-if" directives? ⭐

Answer: ng-show/ng-hide will always insert the DOM element, but will display/hide it based on the condition. ng-if will not insert the DOM element until the condition is not fulfilled.

ng-if is better when we needed the DOM to be loaded conditionally, as it will help load page bit faster compared to ng-show/ng-hide.

We only need to keep in mind what the difference between these directives is, so deciding which one to use totally depends on the task requirements.

Source: codementor.io

Q3: Does AngularJS has dependency on jQuery? ⭐⭐

Answer: AngularJS has no dependency on jQuery library. But it can be used with jQuery library.

Source: _ github.com/krosti_

Q4: How do you hide an HTML element via a button click in AngularJS? ⭐⭐

Answer: This can be done by using the ng-hide directive in conjunction with a controller to hide an HTML element on button click.

<div ng-controller="MyCtrl">
    <button ng-click="hide()">Hide element</button>
    <p ng-hide="isHide">Hello World!</p>
</div>
function MyCtrl($scope) {
	$scope.isHide = false;
	$scope.hide = function () {
		$scope.isHide = true;
	};
}

Source: codementor.io

Q5: What is a singleton pattern and where we can find it in AngularJS? ⭐⭐

Answer: Is a great pattern that restricts the use of a class more than once. We can find singleton pattern in angular in dependency injection and in the services.

In a sense, if the you do 2 times new Object() without this pattern, the you will be alocating 2 pieces of memory for the same object. With singleton pattern, if the object exists, it'll be reused.

Source: codementor.io

Q6: What are the AngularJS features? ⭐⭐

Answer: The features of AngularJS are listed below:

  1. Modules
  2. Directives
  3. Templates
  4. Scope
  5. Expressions
  6. Data Binding
  7. MVC (Model, View & Controller)
  8. Validations
  9. Filters
  10. Services
  11. Routing
  12. Dependency Injection
  13. Testing

Source: github.com/krosti

Q7: When dependent modules of a module are loaded? ⭐⭐

Answer: A module might have dependencies on other modules. The dependent modules are loaded by angular before the requiring module is loaded.

In other words the configuration blocks of the dependent modules execute before the configuration blocks of the requiring module. The same is true for the run blocks. Each module can only be loaded once, even if multiple other modules require it.

Source: github.com/krosti

Q8: What is Angular’s prefixes $ and $$? ⭐⭐

Answer: To prevent accidental name collisions with your code, Angular prefixes names of public objects with $ and names of private objects with $$. So, do not use the $ or $$ prefix in your code.

Source: github.com/krosti

Q9: What are Filters in AngularJS? ⭐⭐

Answer: Filters are used to format data before displaying it to the user. They can be used in view templates, controllers, services and directives. There are some built-in filters provided by AngularJS like as Currency, Date, Number, OrderBy, Lowercase, Uppercase etc. You can also create your own filters.

Filter Syntax:

{{ expression | filter}}

Source: github.com/krosti

Q10: What are Directives in AngularJS? ⭐⭐

Answer: AngularJS directives are a combination of AngularJS template markups (HTML attributes or elements, or CSS classes) and supporting JavaScript code. The JavaScript directive code defines the template data and behaviors of the HTML elements.

AngularJS directives are used to extend the HTML vocabulary i.e. they decorate html elements with new behaviors and help to manipulate html elements attributes in interesting way.

There are some built-in directives provided by AngularJS like as ng-app, ng-controller, ng-repeat, ng-model etc.

Source: github.com/krosti

Q11: What are Directives? ⭐⭐

Answer: Directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) that tell AngularJS’s HTML compiler ($compile) to attach a specified behavior to that DOM element (e.g. via event listeners), or even to transform the DOM element and its children.

Angular comes with a set of these directives built-in, like ngBind, ngModel, and ngClass. Much like you create controllers and services, you can create your own directives for Angular to use. When Angular bootstraps your application, the HTML compiler traverses the DOM matching directives against the DOM elements.

Source: codementor.io

Q12: Explain what is a "$scope" in AngularJS ⭐⭐

Answer: Scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hierarchical structure which mimic the DOM structure of the application. Scopes can watch expressions and propagate events. Scopes are objects that refer to the model. They act as glue between controller and view.

Source: codementor.io

Q13: What directive would you use to hide elements from the HTML DOM by removing them from that DOM not changing their styling? ⭐⭐

Answer: The ngIf Directive, when applied to an element, will remove that element from the DOM if it’s condition is false.

Source: codementor.io

Q14: What is the difference between one-way binding and two-way binding? ⭐⭐

Answer:

  • One way binding implies that the scope variable in the html will be set to the first value its model is bound to (i.e. assigned to)
  • Two way binding implies that the scope variable will change it’s value everytime its model is assigned to a different value

Source: codementor.io

Q15: What is auto bootstrap process in AngularJS? ⭐⭐

Answer: Angular initializes automatically upon DOMContentLoaded event or when the angular.js script is downloaded to the browser and the document.readyState is set to complete. At this point AngularJS looks for the ng-app directive which is the root of angular app compilation and tells about AngularJS part within DOM. When the ng-app directive is found then Angular will:

  1. Load the module associated with the directive.
  2. Create the application injector.
  3. Compile the DOM starting from the ng-app root element. This process is called auto-bootstrapping.
<html>
<body ng-app="myApp">
<div ng-controller="Ctrl"> Hello {{msg}}!
</div>
    <script src="lib/angular.js"></script>
    <script>
var app = angular.module('myApp', []); app.controller('Ctrl', function ($scope) {
              $scope.msg = 'World';
          });
    </script>
</body>
</html>

Source: github.com/krosti

Q16: How would you specify that a scope variable should have one-time binding only? ⭐⭐

Answer: By using “::” in front of it.

Source: codementor.io

Q17: What is scope in AngularJS? ⭐⭐

Answer: Scope is a JavaScript object that refers to the application model. It acts as a context for evaluating angular expressions. Basically, it acts as glue between controller and view.

Scopes are hierarchical in nature and follow the DOM structure of your AngularJS app. AngularJS has two scope objects: $rootScope and $scope.

Source: github.com/krosti

Q18: How do you disable a button depending on a checkbox’s state? ⭐⭐

Answer: We can use the ng-disabled directive and bind its condition to the checkbox’s state.

<body ng-app>
    <label>
        <input type="checkbox" ng-model="checked" />Disable Button
    </label>
    <button ng-disabled="checked">Select me</button>
</body>

Source: codementor.io

Q19: What is scope hierarchy? ⭐⭐

Answer: The $scope object used by views in AngularJS are organized into a hierarchy. There is a root scope, and the $rootScope can has one or more child scopes. Each controller has its own $scope (which is a child of the $rootScope), so whatever variables you create on $scope within controller, these variables are accessible by the view based on this controller.

For example, suppose you have two controllers: ParentController and ChildController as given below:

<html>
  <head>
    <script src="lib/angular.js"></script>
    <script>
      var app = angular.module('ScopeChain', []); app.controller("parentController", function ($scope) {
      	$scope.managerName = 'Shailendra Chauhan';
      	$scope.$parent.companyName = 'Dot Net Tricks'; //attached to $rootScope
      });
      app.controller("childController", function ($scope, $controller) {
                 $scope.teamLeadName = 'Deepak Chauhan';
             });
         
    </script>
  </head>
  <body ng-app="ScopeChain">
    <div ng-controller="parentController ">
      <table style="border:2px solid #e37112">
        <caption>Parent Controller</caption>
        <tr>
          <td>Manager Name</td>
          <td>{{managerName}}</td>
        </tr>
        <tr>
          <td>Company Name</td>
          <td>{{companyName}}</td>
        </tr>
        <tr>
          <td>
            <table ng-controller="childController" style="border:2px solid #428bca">
              <caption>Child Controller</caption>
              <tr>
                <td>Team Lead Name</td>
                <td>{{ teamLeadName }}</td>
              </tr>
              <tr>
                <td>Reporting To</td>
                <td>{{managerName}}</td>
              </tr>
              <tr>
                <td>Company Name</td>
                <td>{{companyName}}</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </div>
  </body>
</html>

Source: github.com/krosti

Q20: How do you share data between controllers? ⭐⭐

Answer: Create an AngularJS service that will hold the data and inject it inside of the controllers.

Using a service is the cleanest, fastest and easiest way to test. However, there are couple of other ways to implement data sharing between controllers, like:

– Using events
– Using $parent, nextSibling, controllerAs, etc. to directly access the controllers
– Using the $rootScope to add the data on (not a good practice)

The methods above are all correct, but are not the most efficient and easy to test.

Source: codementor.io

Q21: What are the basic steps to unit test an AngularJS filter? ⭐⭐

Answer:

  • Inject the module that contains the filter.
  • Provide any mocks that the filter relies on.
  • Get an instance of the filter using $filter('yourFilterName').
  • Assert your expectations.

Source: codementor.io

Q22: What are the basic steps to unit test an AngularJS filter? ⭐⭐

Answer:

  1. Inject the module that contains the filter.
  2. Provide any mocks that the filter relies on.
  3. Get an instance of the filter using $filter('yourFilterName').
  4. Assert your expectations.

Source: codementor.io

Q23: What are the advantage of AngularJS? ⭐⭐

Answer: There are following advantages of AngularJS:

  1. Data Binding - AngularJS provides a powerful data binding mechanism to bind data to HTML elements by using scope.
  2. Customize & Extensible - AngularJS is customized and extensible as per you requirement. You can create your own custom components like directives, services etc.
  3. Code Reusability - AngularJS allows you to write code which can be reused. For example custom directive which you can reuse.
  4. Support – AngularJS is mature community to help you. It has widely support over the internet. Also, AngularJS is supported by Google which gives it an advantage.
  5. Compatibility - AngularJS is based on JavaScript which makes it easier to integrate with any other JavaScript library and runnable on browsers like IE, Opera, FF, Safari, Chrome etc.
  6. Testing - AngularJS is designed to be testable so that you can test your AngularJS app components as easy as possible. It has dependency injection at its core, which makes it easy to test.

Source: github.com/krosti

Q24: Explain what is services in AngularJS ⭐⭐

Answer: In AngularJS services are the singleton objects or functions that are used for carrying out specific tasks. It holds some business logic and these function can be called as controllers, directive, filters and so on.

Source: github.com/krosti

Q25: Explain what is directive and mention what are the different types of Directive? ⭐⭐

Answer: During compilation process when specific HTML constructs are encountered a behaviour or function is triggered, this function is referred as directive. It is executed when the compiler encounters it in the DOM.

Different types of directives are:

  • Element directives
  • Attribute directives
  • CSS class directives
  • Comment directives

Source: guru99.com

Q26: How would you validate a text input field for a twitter username, including the @ symbol? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Read answer on 👉 FullStack.Cafe

Q28: How would you react on model changes to trigger some further action? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: What is jQLite/jQuery Lite? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What should be the maximum number of concurrent “watches”? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is a digest cycle in AngularJS? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: Where should we implement the DOM manipulation in AngularJS? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: Is it a good or bad practice to use AngularJS together with jQuery? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: If you were to migrate from Angular 1.4 to Angular 1.5, what is the main thing that would need refactoring? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: Explain what Angular JS routes does? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: Explain what is Angular Expression? Explain what is key difference between angular expressions and JavaScript expressions? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: What is restrict option in directive? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: How would you make an Angular service return a promise? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: What is the role of services in AngularJS and name any services made available by default? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: How do you reset a "$timeout", "$interval()", and disable a "$watch()"? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What are different ways to invoke a directive? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What is the role of ng-app, ng-init and ng-model directives? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: How to access jQLite? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: What is an interceptor? What are common uses of it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What is manual bootstrap process in AngularJS? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What makes the angular.copy() method so powerful? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: Explain what is linking function and type of linking function? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Explain what is injector? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: When creating a directive, it can be used in several different ways in the view. Which ways for using a directive do you know? How do you define the way your directive will be used? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: When should you use an attribute versus an element? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: Explain what is DI (Dependency Injection ) and how an object or function can get a hold of its dependencies? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: Explain how $scope.$apply() works? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: How AngularJS is compiled? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: What is DDO (Directive Definition Object)? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: Can you define multiple restrict options on a directive? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: What is the difference between $scope and scope? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: How would you implement application-wide exception handling in your Angular app? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What is $scope and $rootScope? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q59: How would you programatically change or adapt the template of a directive before it is executed and transformed? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q60: How AngularJS compilation is different from other JavaScript frameworks? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q61: How Directives are compiled? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q62: What are Compile, Pre and Post linking in AngularJS? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Azure Interview Questions

Q1: What are the benefits of severless applications? ⭐

Answer:

  • Avoid managing servers
  • Flexible scaling by demand
  • Pay for time and resources it takes to execute your code

Q2: What is Azure Cloud Service? ⭐

Answer: By creating a cloud service, you can deploy a multi-tier web application in Azure, defining multiple roles to distribute processing and allow flexible scaling of your application. A cloud service consists of one or more web roles and/or worker roles, each with its own application files and configuration. Azure Websites and Virtual Machines also enable web applications on Azure. The main advantage of cloud services is the ability to support more complex multi-tier architectures

Source: mindmajix.com

Q3: What is a web role? ⭐

Answer: A web role provides a dedicated Internet Information Services (IIS) web-server used for hosting front-end web applications.

Source: mindmajix.com

Q4: What is Azure Functions? ⭐

Answer: Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. We can write just the code we need for the problem at hand, without worrying about a whole application or the infrastructure to run it and use language of our choice such as C#, F#, Node.js, Java, or PHP. Azure Functions lets us develop serverless applications on Microsoft Azure.

Q5: What is serverless computing? ⭐

Answer: Serverless computing is the abstraction of servers, infrastructure, and operating systems. When you build serverless apps you don’t need to provision and manage any servers, so you can take your mind off infrastructure concerns. Serverless computing is driven by the reaction to events and triggers happening in near-real-time—in the cloud.

As a fully managed service, server management and capacity planning are invisible to the developer and billing is based just on resources consumed or the actual time your code is running.

Q6: Is Azure Table Storage Nosql? ⭐⭐

Answer: Azure Table storage is a service that stores structured NoSQL data in the cloud, providing a key/attribute store with a schemaless design.

Source: docs.microsoft.com

Q7: What is Kudu? ⭐⭐

Answer: Every Azure App Service web application includes a "hidden" service site called Kudu.

Kudu Console for example is a debugging service for Azure platform which allows you to explore your web app and surf the bugs present on it, like deployment logs, memory dump, and uploading files to your web app, and adding JSON endpoints to your web apps, etc.

Q8: What is a role instance? ⭐⭐

Answer: A role instance is a virtual machine on which the application code and role configuration run. A role can have multiple instances, defined in the service configuration file.

Source: mindmajix.com

Q9: What is a guest operating system? ⭐⭐

Answer: The guest operating system for a cloud service is the operating system installed on the role instances (virtual machines) on which your application code runs.

Source: mindmajix.com

Q10: What is Azure Blob Storage? ⭐⭐

Answer: Azure Blob storage is Microsoft's object storage solution for the cloud. Blob storage is optimized for storing massive amounts of unstructured data, such as text or binary data. Azure Storage offers three types of blobs:

  • Block blobs store text and binary data, up to about 4.7 TB. Block blobs are made up of blocks of data that can be managed individually.
  • Append blobs are made up of blocks like block blobs, but are optimized for append operations. Append blobs are ideal for scenarios such as logging data from virtual machines.
  • Page blobs store random access files up to 8 TB in size. Page blobs store the VHD files that back VMs.

Source: docs.microsoft.com

Q11: How to include external dll into Azure Function? ⭐⭐

Answer:

  • Add the assembly to the BIN directory using KUDU
  • Include the assembly and code the Azure Function to use it
  • Add the using declaration so that the methods within the DLL can be accessed.
#r "D:\home\site\wwwroot\GreetingsAssemblyReference\bin\benjamin.dll"

using benjamin;

Q12: What is an Azure subscription? ⭐⭐

Answer: A Windows Azure subscription grants you access to Windows Azure services and to the Windows Azure Platform Management Portal. A Windows Azure subscription has two aspects:

  • The Windows Azure account, through which resource usage is reported
  • Services are billed.

Source: blogs.msdn.microsoft.com

Q13: What is Azure ARM? ⭐⭐

Answer: The Azure Resource Manager (ARM) is the service used to provision resources in your Azure subscription. It was first announced at Build 2014 when the new Azure portal ( portal.azure.com) was announced and provides a new set of API's that are used to provision resources. The ARM is:

  • Template-driven – Using templates to deploy all resources.
  • Declarative – You declare the resources you want to have instead of imperative where you need to make rules.
  • Idempotent – You can deploy the template over and over again without affecting the current state of resources.
  • Multi-service – All services can be deployed using Azure Resource Manager, Website, Storage, VMs etc.
  • Multi region - You can choose in which region you would like to deploy the resources.
  • Extensible – Azure Resource Manager is extensible with more resource providers and thus resources.

Source: azurestack.blog

Q14: Explain the Azure ARM Templates ⭐⭐

Answer: An Azure Resource Template is a JSON file used to deploy resources with Azure Resource Manager. It defines:

  • Parameters
  • Variables
  • Resources - the actual resources that you are going to deploy or update
  • Outputs

Source: onlinetech.com

Q15: What is a cloud service role? ⭐⭐

Answer: A cloud service role is comprised of application files and a configuration. A cloud service can have two types of roles:

  • web role
  • worker role

Source: mindmajix.com

Q16: What is Azure Redis Cache? ⭐⭐

Answer: Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. Azure Redis Cache is based on the popular open-source Redis cache. It gives you access to a secure, dedicated Redis cache, managed by Microsoft, and accessible from any application within Azure. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.

Source: quora.com

Q17: What is Azure Service Fabric? ⭐⭐

Answer: Azure Service Fabric is a distributed systems platform that makes it easy to package, deploy, and manage scalable and reliable micro-services. Service Fabric also addresses the significant challenges in developing and managing cloud applications. Developers and administrators can avoid complex infrastructure problems and focus on implementing mission-critical, demanding workloads that are scalable, reliable, and manageable. Service Fabric represents the next-generation middleware platform for building and managing these enterprise-class, tier-1, cloud-scale applications.

Source: quora.com

Q18: How can I use applications with Azure AD that I’m using on-premises? ⭐⭐

Answer: Azure AD gives you an easy and secure way to connect to the web applications you choose. You can access these applications in the same way you access your SaaS apps in Azure AD, no need for a VPN to change your network infrastructure.

Source: quora.com

Q19: What is Azure Resource Group? ⭐⭐

Answer: Resource groups (RG) in Azure is an approach to group a collection of assets in logical groups for easy or even automatic provisioning, monitoring, and access control, and for more effective management of their costs. The underlying technology that powers resource groups is the Azure Resource Manager (ARM).

Source: onlinetech.com

Q20: What Is Azure Key Vault? ⭐⭐

Answer: Key Vault help you safeguard cryptographic keys and other secrets used by your applications whenever they are On-Premise or in the cloud. More and more services on Azure are now integrating Azure Key Vault as their secret/key source for things like deployments, data or even disk encryption.

Source: codeisahighway.com

Q21: What is a Blob Container? ⭐⭐

Answer: A container organizes a set of blobs, similar to a folder in a file system. All blobs reside within a container. A storage account can contain an unlimited number of containers, and a container can store an unlimited number of blobs.

Source: docs.microsoft.com

Q22: How can you stop a VM using Power Shell? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: How can you retrieve the state of a particular VM? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: How can one create a VM in Azure CLI? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: What do you know about Azure WebJobs? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: What is Azure MFA? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: How can one create a Virtual Machine in Powershell? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: How much storage can I use with a virtual machine? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: Is it possible to add an existing VM to an availability set? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What is a worker role? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is Azure VPN? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What is the difference between Service Bus Queues and Storage Queues? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What are the differences between Subscription Administrator and Directory Administrator? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is a VNet? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: What is key vault in Azure? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: What are stateful and stateless microservices for Service Fabric? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: Do scale sets work with Azure availability sets? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: What are Network Security Groups? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: What are Update Domains? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: What are Fault Domains? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What is an Availability Set? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What are virtual machine scale sets in Azure? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What is deployment environments? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: What are Cloud Service Roles and why do we use them? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What is Azure Table Storage? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What is Azure Resource Manager and why we need to use one? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: What is Azure Search? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: What are Redis databases? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: Is it possible to create a Virtual Machine using Azure Resource Manager in a Virtual Network that was created using classic deployment? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: How to create a new storage account and container using Power Shell? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: What is the meaning of application partitions? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: What is the difference between “price,” “software price,” and “total price” in the cost structure for Virtual Machine offers in the Azure Marketplace? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: What is Azure VNET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: How to create a Network Security Group and a Network Security Group Rule? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: How are Azure Marketplace subscriptions priced? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: What are special Azure Regions? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: Explain Azure NSG ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What VPN types are supported by Azure? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Behavioral Interview Questions

Q1: How do you spend your time outside work? ⭐

Answer:

Q2: Why are you interested in this opportunity? ⭐

Answer:

Q3: Why do you want to work for X company? ⭐

Answer: The interviewer is looking for similar things whether asking about company or position. The hiring manager wants to:

  • Learn about your career goals and how this position fits into your plan
  • Make sure that you are sincerely interested in the job and will be motivated to perform if hired
  • Find out what you know about the company, industry, position (and if you took the time to research)
  • Understand your priorities and preferences — which aspects of the company and/or job are appealing to you and why?

Source: github.com/yangshun/tech-interview-handbook

Q4: Why do you want to leave your current/last company? ⭐

Answer: Here are some things your interviewer is likely looking for:

  • Did you leave for a good reason?
  • Did you leave voluntarily?
  • Did you leave on good terms?
  • What are your work values?

Source: biginterview.com

Q5: A hammer and a nail cost $1.10 together, and the hammer costs one dollar more than the nail. How much does the nail cost? ⭐

Answer:

Source: startups.co

Q6: What are you looking for in your next role? ⭐

Answer:

Source: github.com/yangshun/tech-interview-handbook

Q7: How large was the last team that you worked on? ⭐

Answer:

Q8: Do you plan to advance your education while working here? ⭐

Answer:

Q9: What are your hobbies? ⭐

Answer:

Q10: Tell me the story of how you became who you are today and what made you apply to X. ⭐

Answer:

Q11: Why do you think you’re a good fit for this company? ⭐⭐

Answer:

Q12: What’s are your favorite five apps? ⭐⭐

Answer:

Q13: Why do you want to come work at a startup, as opposed to an established company? ⭐⭐

Answer:

Q14: Share one of your trips with us. ⭐⭐

Answer:

Q15: What project are you currently working on? ⭐⭐

Answer:

Q16: Do prefer to work at a single company for a long time or would you rather take a job that suits you at the time? ⭐⭐

Answer:

Q17: Can you give an example of a career goal that you set and how you went about meeting it? ⭐⭐

Answer:

Q18: How quickly can you learn to use a new technology? ⭐⭐

Answer:

Q19: What does "belong anywhere" mean to you? ⭐⭐

Answer:

Q20: Can you list any deal breakers that would deter you from working for an employer? ⭐⭐

Answer:

Q21: Are you more interested in a career that offers great compensation, flexibility or the chance to do something meaningful? ⭐⭐

Answer:

Q22: What are you excited about? ⭐⭐

Answer:

Q23: Why do people resist change? ⭐⭐

Answer:

Source: github.com

Q24: Can you tell me what part of your resume you are most proud of? ⭐⭐

Answer:

Q25: Tell me about your last project - what worked and what didn’t? ⭐⭐

Answer:

Q26: What would your previous boss say your biggest strength was? ⭐⭐

Answer:

Q27: How do you stay up to date with the latest technologies? ⭐⭐

Answer:

Q28: What is the hardest technical problem you have run into? ⭐⭐

Answer:

Q29: What have you built as your side project? ⭐⭐

Answer:

Q30: If someone has a different viewpoint to do a project like different programming language, how would handle this situation? ⭐⭐

Answer:

Q31: What are your personal goals? ⭐⭐

Answer:

Q32: What was the most fun thing you did recently? ⭐⭐

Answer:

Q33: How do you deal with difficult coworkers? Think about specific instances where you resolved conflicts. ⭐⭐

Answer:

Q34: State an experience about how you solved a technical problem. Be specific about the diagnosis and process. ⭐⭐

Answer:

Q35: What is your biggest strength and area of growth? ⭐⭐

Answer:

Q36: Have you worked in a distributed team before? What challenges did you face? ⭐⭐

Answer:

Q37: What’s the most difficult part of being a member of a team for you? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: Tell me about a time your work responsibilities got a little overwhelming. What did you do? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: Where do you want to be in five years? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: Tell me about a time in which you had a conflict and needed to influence somebody else. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What can you actually do for us? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: How did you win over the difficult employees? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What are your three strengths and three weaknesses? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: What does it mean to be a "Professional Developer"? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: Would you prefer working on Green Field or Brown Field projects? Why? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: Describe company X to your grandmother. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: Tell me a time when you predicted something. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Tell me a situation where you would have done something differently from what you actually did. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: In my professional experience have you worked on something without getting approval from your manager? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: Explain me your toughest project and the working architecture. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: What makes good code good? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: If you were to open your own business in the future, what kind of business will you open and why? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: Would you rather be good at a lot of things or an expert at one thing? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: Tell me something you are learning right now. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: Tell me about a challenge you faced recently in your role. How did you tackle it? What was the outcome? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: What does your best day of work look like? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: Tell me about a time when you had a conflict with a co-worker. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What is the best gift you have ever given or received? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q59: What is something that you had to push for in your previous projects? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q60: What’s the best advice you’ve recently received? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q61: Can you explain this gap in your resume? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q62: What is something that you don't want from your last internship/job? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q63: If you had an unlimited budget and you could go somewhere, where would you go? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q64: What large problems in the world would you solve today? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q65: What frustrates you? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q66: If you had an unlimited budget and you could buy one gift for one person, what would you buy and who would you buy it for? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q67: Tell me about a time you needed information from someone who wasn't responsive. What did you do? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q68: What is the most exceedingly bad misstep you've made at any point? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q69: What books have inspired you in you live? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q70: What is the biggest mistake that you made in your last position? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q71: What is something new that you can teach your interviewer in a few minutes? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q72: What are some of the new ideas you would implement in this position? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q73: Are you comfortable assuming responsibilities outside your job description? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q74: What is the most challenging aspect of your current project? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q75: Tell me something about yourself and why you'd be a good fit for the position. ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q76: What are some of the best and worst things about your current company? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q77: How do you respond to constructive criticism? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q78: Explain streaming and how you would implement it. ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q79: Apart from technical knowledge, what did you learn during your work at Y? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q80: Talk about a project you are most passionate about, or one where you did your best work. ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q81: What was the most difficult bug that you fixed in the past 6 months? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q82: Imagine it is your first day here at the company. What do you want to work on? What features would you improve on? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q83: How do you deal with a failed deadline? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q84: Do you prefer to work in a team or individually? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q85: How do you tackle challenges? Name a difficult challenge you faced while working on a project, how you overcame it, and what you learned. ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q86: What are the most interesting projects you have worked on and how might they be relevant to this company's environment? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q87: What is the craziest thing you’ve ever done? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q88: What is your superpower? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q89: What is something you had to persevere at for multiple months? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q90: Tell me about a time you had to give someone terrible news. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q91: Imagine there's a perfect clone of yourself. Imagine that that clone is your boss. Would you like to work for him/her? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q92: Interview me ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q93: Why are Quora's answers better than Yahoo Answers' ones? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q94: Let's play a game: defend Cobol against modern languages, and try to find as many reasonable arguments as you can. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q95: Where will you be in 10 years? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q96: You are my boss and I'm fired. Inform me. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q97: I want to refactor a legacy system. You want to rewrite it from scratch. Argument. Then, switch our roles. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q98: Your boss asks you to lie to the Company. What's your reaction? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q99: Tell me about a time you had a disagreement with your manager. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q100: What would happen if you put a mirror in a scanner? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q101: As a software engineer you want both to innovate and to be predictable. How those 2 goals can coexist in the same strategy? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q102: Name a situation where you were impressed by a company's customer service. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q103: If you were given $1 million dollars every year for the rest of your life, what would you do? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q104: What risks do you feel you should never take? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q105: What is something 90% of people disagree with you about? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q106: Is developing software an art, a craftsmanship or an engineering endeavour? Your opinion. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q107: Tell me about a time you were uncomfortable and how you dealt with it. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q108: In one word, describe yourself. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q109: Who do you look to as a role model? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q110: What is the most constructive feedback you have received in your career? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q111: What is broken around you? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q112: If you could travel back in time, which advice would you give to your younger self? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Big Data Interview Questions

Q1: What is the meaning of big data and how is it different? ⭐

Answer: Big data is the term to represent all kind of data generated on the internet. On the internet over hundreds of GB of data is generated only by online activity. Here, online activity implies web activity, blogs, text, video/audio files, images, email, social network activity, and so on. Big data can be referred to data created from all these activities. Data generated online is mostly in unstructured form. Big data will also include transactions data in the database, system log files, along with data generated from smart devices such as sensors, IoT, RFID tags, and so on in addition to online activities.

Big data needs specialized systems and software tools to process all unstructured data. In fact, according to some industry estimates almost 85% of data generated on the internet is unstructured. Usually, relational databases have a structured format and the database is centralized. Hence, with RDBMS processing can be quickly done using a query language such as SQL. On the other hand, big data is very large and is distributed across the internet and hence processing big data will need distributed systems and tools to extract information from them. Big data needs specialized tools such as Hadoop, Hive, or others along with high-performance hardware and networks to process them.

Source: www.educba.com

Q2: What are the characteristics of big data? ⭐

Answer: Big data has three main characteristics: Volume, Variety, and Velocity. Volume characteristic refers to the size of data. Estimates show that over 3 million GB of data is generated every day. Processing this volume of data is not possible in a normal personal computer or in a client-server network in an office environment with limited compute bandwidth and storage capacities. However, cloud services provide solutions to handle big data volumes and process them efficiently using distributed computing architectures.

Variety characteristic refers to the format of big data – structured or unstructured. Traditional RDBMS fits into the structured format. An example of unstructured data format is, a video file format, image files, plain text format, from web document or standard MS Word documents, all have unique formats, and so on. Also to note, RDBMS does not have the capacity to handle unstructured data formats. Further, all this unstructured data must be grouped and consolidated which creates the need for specialized tools and systems. In addition new, data is added each day, or each minute and data grows continuously. Hence big data is more synonymous with variety.

The velocity characteristic refers to the speed at which data is created and the efficiency required to process all the data. For example, Facebook is accessed by over 1.6 billion users in a month. Likewise, there are other social network sites, YouTube, Google services, etc. Such data streams must be processed using queries in real time and must be stored without data loss. Thus, velocity characteristic is important in big data processing. In addition, other characteristics include veracity and value. Veracity will determine the dependability and reliability of data and value is the value derived by organizations from big data processing.

Source: www.educba.com

Q3: Why is big data important for organizations? ⭐

Answer: This is the basic Big Data interview question asked in an interview. Big data is important because by processing big data, organizations can obtain insight information related to:

  • Cost reduction
  • Improvements in products or services
  • To understand customer behaviour and markets
  • Effective decision making
  • To become more competitive

Source: www.educba.com

Q4: Name some tools or systems used in big data processing? ⭐

Answer: Big data processing and analysis can be done using:

  • Hadoop
  • Hive
  • Pig
  • Mahout
  • Flume

Source: www.educba.com

Q5: How can big data support organizations? ⭐⭐

Answer: Big data has the potential to support organizations in many ways. Information extracted from big data can be used in:

  • Better coordination with customers and stakeholders and to resolve problems
  • Improve reporting and analysis for product or service improvements
  • Customize products and services to selected markets
  • Ensure better information sharing
  • Support in management decisions
  • Identify new opportunities, product ideas, and new markets
  • Gather data from multiple sources and archive them for future reference
  • Maintain databases, systems
  • Determine performance metrics
  • Understand interdependencies between business functions
  • Evaluate organizational performance

Source: www.educba.com

Q6: Explain how big data can be used to increase business value? ⭐⭐

Answer: While understanding the need for analyzing big data, such analysis will help businesses to identify their position in markets, and help businesses to differentiate themselves from their competitors. For example, from the results of big data analysis, organizations can understand the need for customized products or can understand potential markets towards increasing revenue and value. Analyzing big data will involve grouping data from various sources to understand trends and information related to business. When big data analysis is done in a planned manner by gathering data from the right sources, organizations can easily generate business value and revenue by almost 5% to 20%. Some examples of such organizations are Amazon, Linkedin, WalMart, and many others.

Source: www.educba.com

Q7: What is big data solution implementation? ⭐⭐

Answer: Big data solutions are implemented at a small scale first, based on a concept as appropriate for the business. From the result, which is a prototype solution, the business solution is scaled further. This is the most popular Big Data interview questions asked in a Big Data interview Some of the best practices followed in the industry include:

  • To have clear project objectives and to collaborate wherever necessary
  • Gathering data from the right sources
  • Ensure the results are not skewed because this can lead to wrong conclusions
  • Be prepared to innovate by considering hybrid approaches in processing by including data from structured and unstructured types, include both internal and external data sources
  • Understand the impact of big data on existing information flows in the organization

Source: www.educba.com

Q8: What are the steps involved in big data solutions? ⭐⭐

Answer: Big data solutions follow three standard steps in its implementation. They are:

Data ingestion: This step will define the approach to extract and consolidate data from multiple sources. For example, data sources can be social network feeds, CRM, RDBMS, etc. The data extracted from different sources is stored in a Hadoop distributed file system (HDFS).

Data storage: This is the second step, the extracted data is stored. This storage can be in HDFS or HBase (NoSQL database).

Process the data: This is the last step. The data stored must be processed. Processing is done using tools such as Spark, Pig, MapReduce, and others.

Source: www.educba.com

[⬆] Blockchain Interview Questions

Q1: What is blockchain? ⭐

Answer: Blockchain is a secure distributed ledger (data structure or database) that maintains a continuously growing list of ordered records, called “blocks”, that are linked using cryptography. Each block contains a cryptographic hash of the previous block, a timestamp, and transaction data.

By design, a blockchain is resistant to modification of the data. It is "an open, distributed ledger that can record transactions between two parties efficiently and in a verifiable and permanent way".

Once recorded, the data in any given block cannot be altered retroactively without alteration of all subsequent blocks, which requires consens

Truncated — view the full README on GitHub.

angular
full-stack
full-stack-development
full-stack-web-developer
interview-practice
interview-preparation
interview-questions
interview-test
react
vuejs

aershov24/full-stack-interview-questions

🔴 More than ~3877 Full Stack, Coding & System Design Interview Questions And Answers sourced from all around the Internet to help you to prepare to an interview, conduct one, mock your lead dev or completely ignore. Find more questions and answers on 👉

1,137

33 commits

updated Aug 26, 2021

See the code

README

3877 Full-Stack, Coding and System Design Interview Questions (ANSWERED) To Land Your Next Six-Figure Job Offer from FullStack.Cafe

FullStack.Cafe is a biggest hand-picked collection of top technical interview questions for junior and experienced full-stack and web developers with more that 3877 tech interview questions and answers. Prepare for your next tech interview and land 6-figure job offer in no time.

🔴 Get All 3877 Answers + PDFs on FullStack.Cafe - Kill Your Tech & Coding Interview


Machine Learning & Data Science Interview Questions 🤖🤖🤖

👉 For 1299 ML & DataScience Interview Questions Check MLStack.Cafe - Kill Your Machine Learning, Data Science & Python Interview


Table of Contents

[⬆] .NET Core Interview Questions

Q1: What is the difference between String and string in C#? ⭐

Answer: string is an alias in C# for System.String. So technically, there is no difference. It's like int vs. System.Int32.

As far as guidelines, it's generally recommended to use string any time you're referring to an object.

string place = "world";

Likewise, it's generally recommended to use String if you need to refer specifically to the class.

string greet = String.Format("Hello {0}!", place);

Source: blogs.msdn.microsoft.com

Q2: What is .NET Standard? ⭐

Answer: The .NET Standard is a formal specification of .NET APIs that are intended to be available on all .NET implementations.

Source: docs.microsoft.com

Q3: What is .NET Core? ⭐

Answer: The .NET Core platform is a new .NET stack that is optimized for open source development and agile delivery on NuGet.

.NET Core has two major components. It includes a small runtime that is built from the same codebase as the .NET Framework CLR. The .NET Core runtime includes the same GC and JIT (RyuJIT), but doesn’t include features like Application Domains or Code Access Security. The runtime is delivered via NuGet, as part of the ASP.NET Core package.

.NET Core also includes the base class libraries. These libraries are largely the same code as the .NET Framework class libraries, but have been factored (removal of dependencies) to enable to ship a smaller set of libraries. These libraries are shipped as System.* NuGet packages on NuGet.org.

Source: stackoverflow.com

Q4: What is the .NET Framework? ⭐

Answer: The .NET is a Framework, which is a collection of classes of reusable libraries given by Microsoft to be used in other .NET applications and to develop, build and deploy many types of applications on the Windows platform including the following:

  • Console Applications
  • Windows Forms Applications
  • Windows Presentation Foundation (WPF) Applications
  • Web Applications
  • Web Services
  • Windows Services
  • Services-oriented applications using Windows Communications Foundation (WCF)
  • Workflow-enabled applications using Windows Workflow Foundation(WF)

Source: c-sharpcorner.com

Q5: What's the difference between SDK and Runtime in .NET Core? ⭐⭐

Answer:

  • The SDK is all of the stuff that is needed/makes developing a .NET Core application easier, such as the CLI and a compiler.

  • The runtime is the "virtual machine" that hosts/runs the application and abstracts all the interaction with the base operating system.

Source: stackoverflow.com

Q6: What is .NET Standard and why we need to consider it? ⭐⭐

Answer:

  1. .NET Standard solves the code sharing problem for .NET developers across all platforms by bringing all the APIs that you expect and love across the environments that you need: desktop applications, mobile apps & games, and cloud services:
  2. .NET Standard is a set of APIs that all .NET platforms have to implement. This unifies the .NET platforms and prevents future fragmentation.
  3. .NET Standard 2.0 will be implemented by .NET Framework, .NET Core, and Xamarin. For .NET Core, this will add many of the existing APIs that have been requested.
  4. .NET Standard 2.0 includes a compatibility shim for .NET Framework binaries, significantly increasing the set of libraries that you can reference from your .NET Standard libraries.
  5. .NET Standard will replace Portable Class Libraries (PCLs) as the tooling story for building multi-platform .NET libraries.

Source: stackoverflow.com

Q7: What is the difference between decimal, float and double in .NET? ⭐⭐

Details: When would someone use one of these?

Answer: Precision is the main difference.

  • Float - 7 digits (32 bit)
  • Double-15-16 digits (64 bit)
  • Decimal -28-29 significant digits (128 bit)

As for what to use when:

  • For values which are "naturally exact decimals" it's good to use decimal. This is usually suitable for any concepts invented by humans: financial values are the most obvious example, but there are others too. Consider the score given to divers or ice skaters, for example.

  • For values which are more artefacts of nature which can't really be measured exactly anyway, float/double are more appropriate. For example, scientific data would usually be represented in this form. Here, the original values won't be "decimally accurate" to start with, so it's not important for the expected results to maintain the "decimal accuracy". Floating binary point types are much faster to work with than decimals.

Source: blogs.msdn.microsoft.com

Q8: What are some characteristics of .NET Core? ⭐⭐

Answer:

  • Flexible deployment: Can be included in your app or installed side-by-side user- or machine-wide.

  • Cross-platform: Runs on Windows, macOS and Linux; can be ported to other OSes. The supported Operating Systems (OS), CPUs and application scenarios will grow over time, provided by Microsoft, other companies, and individuals.

  • Command-line tools: All product scenarios can be exercised at the command-line.

  • Compatible: .NET Core is compatible with .NET Framework, Xamarin and Mono, via the .NET Standard Library.

  • Open source: The .NET Core platform is open source, using MIT and Apache 2 licenses. Documentation is licensed under CC-BY. .NET Core is a .NET Foundation project.

  • Supported by Microsoft: .NET Core is supported by Microsoft, per .NET Core Support

Source: stackoverflow.com

Q9: What is an unmanaged resource? ⭐⭐

Answer: Use that rule of thumb:

  • If you found it in the Microsoft .NET Framework: it's managed.
  • If you went poking around MSDN yourself, it's unmanaged.

Anything you've used P/Invoke calls to get outside of the nice comfy world of everything available to you in the .NET Framwork is unmanaged – and you're now responsible for cleaning it up.

Source: stackoverflow.com

Q10: What is CTS? ⭐⭐

Answer: The Common Type System (CTS) standardizes the data types of all programming languages using .NET under the umbrella of .NET to a common data type for easy and smooth communication among these .NET languages.

CTS is designed as a singly rooted object hierarchy with System.Object as the base type from which all other types are derived. CTS supports two different kinds of types:

  1. Value Types: Contain the values that need to be stored directly on the stack or allocated inline in a structure. They can be built-in (standard primitive types), user-defined (defined in source code) or enumerations (sets of enumerated values that are represented by labels but stored as a numeric type).
  2. Reference Types: Store a reference to the value‘s memory address and are allocated on the heap. Reference types can be any of the pointer types, interface types or self-describing types (arrays and class types such as user-defined classes, boxed value types and delegates).

Source: c-sharpcorner.com

Q11: What is the difference between .NET Core and Mono? ⭐⭐

Answer: To be simple:

  • Mono is third party implementation of .Net Framework for Linux/Android/iOs
  • .Net Core is Microsoft's own implementation for same.

Source: stackoverflow.com

Q12: What is MSIL? ⭐⭐

Answer: When we compile our .NET code then it is not directly converted to native/binary code; it is first converted into intermediate code known as MSIL code which is then interpreted by the CLR. MSIL is independent of hardware and the operating system. Cross language relationships are possible since MSIL is the same for all .NET languages. MSIL is further converted into native code.

Source: c-sharpcorner.com

Q13: What is a .NET application domain? ⭐⭐

Answer: It is an isolation layer provided by the .NET runtime. As such, App domains live with in a process (1 process can have many app domains) and have their own virtual address space.

App domains are useful because:

  • They are less expensive than full processes
  • They are multithreaded
  • You can stop one without killing everything in the process
  • Segregation of resources/config/etc
  • Each app domain runs on its own security level

Source: stackoverflow.com

Q14: What is CLR? ⭐⭐

Answer: The CLR stands for Common Language Runtime and it is an Execution Environment. It works as a layer between Operating Systems and the applications written in .NET languages that conforms to the Common Language Specification (CLS). The main function of Common Language Runtime (CLR) is to convert the Managed Code into native code and then execute the program.

Source: c-sharpcorner.com

Q15: Name some CLR services? ⭐⭐

Answer: CLR services

  • Assembly Resolver
  • Assembly Loader
  • Type Checker
  • COM marshalled
  • Debug Manager
  • Thread Support
  • IL to Native compiler
  • Exception Manager
  • Garbage Collector

Source: c-sharpcorner.com

Q16: Talk about new .csproj file? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q17: Explain what is included in .NET Core? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q18: Is there a way to catch multiple exceptions at once and without code duplication? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q19: What about NuGet packages and packages.config? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q20: Why to use of the IDisposable interface? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q21: When should we use .NET Core and .NET Standard Class Library project types? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: What is the difference between Class Library (.NET Standard) and Class Library (.NET Core)? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: What is the difference between .NET Standard and PCL (Portable Class Libraries)? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: Explain the difference between Task and Thread in .NET ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: What is FCL? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: What is Kestrel? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: What is implicit compilation? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: What is JIT compiler? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: What is .NET Standard? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What is Explicit Compilation? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What are the benefits of explicit compilation? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: Explain the difference between “managed” and “unmanaged” code? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What's the difference between .NET Core, .NET Framework, and Xamarin? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is difference between .NET Core and .NET Framework? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: Explain two types of deployment for .NET Core applications ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: What does Common Language Specification (CLS) mean? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: What is CoreCLR? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: What's is BCL? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: What is the difference between CIL and MSIL (IL)? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: How to choose the target version of .NET Standard library? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: Why does .NET use a JIT compiler instead of just compiling the code once on the target machine? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What is the difference between AppDomain, Assembly, Process, and a Thread? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What are benefits of using JIT? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: What is the difference between .NET Framework/Core and .NET Standard Class Library project types? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What's the difference between RyuJIT and Roslyn? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: Why does .NET Standard library exist? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: Explain how does Asynchronous tasks (Async/Await) work in .NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Explain Finalize vs Dispose usage? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: How many types of JIT Compilations do you know? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: What is the difference between Node.js async model and async/await in .NET? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: Could you name the difference between .Net Core, Portable, Standard, Compact, UWP, and PCL? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] ADO.NET Interview Questions

Q1: What is ADO.NET? ⭐

Answer: ADO stands for Active Data Object and ADO.NET is a set of .NET libraries for ADO. NET is a collection of managed libraries used by .NET applications for data source communication using a driver or provider:

  • Enterprise applications handle a large amount of data. This data is primarily stored in relational databases, such as Oracle, SQL Server, and Access and so on. These databases use Structured Query Language (SQL) for retrieval of data.
  • To access enterprise data from a .NET application, an interface was needed. This interface acts as a bridge between an RDBMS system and a .NET application. ADO.NET is such an interface that is created to connect .NET applications to RDBMS systems.
  • In the .NET framework, Microsoft introduced a new version of Active X Data Objects (ADO) called ADO.NET. Any .NET application, either Windows based or web based, can interact with the database using a rich set of classes of the ADO.NET library. Data can be accessed from any database using connected or disconnected architecture.

Source: c-sharpcorner.com

Q2: What is exactly meaning of disconnected and connected approach in ADO.NET? ⭐⭐

Answer: In short:

  • Disconnected = Make Connection , Fetch Data , Close Connection
  • Connected = Make Connection , Keep Connection alive , Close Connection when close is called.

The ADO.net architecture, in which connection must be kept open till the end to retrieve and access data from database is called as connected architecture. Connected architecture is built on the these types - connection, command, datareader

The ADO.net architecture, in which connection will be kept open only till the data retrieved from database, and later can be accessed even when connection to database is closed is called as disconnected architecture. Disconnected architecture of ADO.net is built on these types - connection, dataadapter, commandbuilder and dataset and dataview.

Source: stackoverflow.com

Q3: Describe when you would use the DataView in ADO.NET? ⭐⭐

Answer: A DataView enables you to create different views of the data stored in a DataTable, a capability that is often used in data binding applications. Using a DataView, you can expose the data in a table with different sort orders, and you can filter the data by row state or based on a filter expression. A DataView provides a dynamic view of data whose content, ordering, and membership reflect changes to the underlying DataTable as they occur. This is different from the Select method of the DataTable, which returns a DataRow array from a table per particular filter and/or sort order and whose content reflects changes to the underlying table, but whose membership and ordering remain static. The dynamic capabilities of the DataView make it ideal for data-binding applications.

Source: stackoverflow.com

Q4: What is the SqlCommandBuilder? ⭐⭐

Answer: CommandBuilder helps you to generate update, delete, and insert commands on a single database table for a data adapter. Similar to other objects, each data provider has a command builder class. The OleDbCommandBuilder, SqlCommonBuilder, and OdbcCommandBuilder classes represent the CommonBuilder object in the OleDb, Sql, and ODBC data providers.

Source: c-sharpcorner.com

Q5: What is the DataAdapter Object in ADO.NET? ⭐⭐

Answer: A DataAdapter is used to retrieve data from a data source and populate tables within a DataSet. Data Adapters form the bridge between a data source and a dataset. The DataAdapter also resolves changes made to the DataSet back to the data source. The DataAdapter uses the Connection object of the .NET Framework data provider to connect to a data source, and it uses Command objects to retrieve data from and resolve changes to the data source.

A DataAdapter supports mainly the following two methods:

  • Fill(): The Fill method populates a dataset or a data table object with data from the database. It retrieves rows from the data source using the SELECT statement specified by an associated select command property. The Fill method leaves the connection in the same state as it encountered before populating the data.
  • Update(): The Update method commits the changes back to the database. It also analyzes the RowState of each record in the DataSet and calls the appropriate INSERT, UPDATE, and DELETE statements.

Source: c-sharpcorner.com

Q6: What is the basic difference between ADO.NET and Entity Framework? ⭐⭐

Answer: ADO.NET Entity Framework is an ORM (object-relational mapping) which creates a higher abstract object model over ADO.NET components. ADO.NET is a layer closer to the database (datatables, datasets and etc...). The main and the only benefit of EF is it auto-generates code for the Model (middle layer), Data Access Layer, and mapping code, thus reducing a lot of development time. Consider the following example:

ADO.NET:

DataTable table = adoDs.Tables[0];
for (int j = 0; j < table.Rows.Count; j++)
{
    DataRow row = table.Rows[j];

    // Get the values of the fields
    string CustomerName =
        (string)row["Customername"];
    string CustomerCode =
        (string)row["CustomerCode"];
}

EF:

foreach (Customer objCust in obj.Customers)
{}

Source: stackoverflow.com

Q7: What is Connection Pooling in ADO.NET? ⭐⭐

Answer: ADO.NET uses a technique called connection pooling, which minimizes the cost of repeatedly opening and closing connections. Connection pooling reuses existing active connections with the same connection string instead of creating new connections when a request is made to the database. It involves the use of a connection manager that is responsible for maintaining a list, or pool, of available connections for a given connection string. Several pools exist if different connection strings ask for connection pooling.

Source: c-sharpcorner.com

Q8: What is SqlCommand Object? ⭐⭐

Answer: The SqlCommand carries the SQL statement that needs to be executed on the database. SqlCommand carries the command in the CommandText property and this property will be used when the SqlCommand calls any of its execute methods.

  • The Command Object uses the connection object to execute SQL queries.
  • The queries can be in the form of Inline text, Stored Procedures or direct Table access.
  • An important feature of Command object is that it can be used to execute queries and Stored Procedures with Parameters.
  • If a select query is issued, the result set it returns is usually stored in either a DataSet or a DataReader object.

The three important methods exposed by the SqlCommand object is shown below:

  • ExecuteScalar
  • ExecuteNonQuery
  • ExecuteReader

Source: c-sharpcorner.com

Q9: What are the ADO.NET components? ⭐⭐

Answer: ADO.NET components categorized in three modes:

  • disconnected,
  • common or shared and
  • the .NET data providers.

The disconnected components build the basic ADO.NET architecture. You can use these components (or classes) with or without data providers. For example, you can use a DataTable object with or without providers and shared or common components are the base classes for data providers. Shared or common components are the base classes for data providers and shared by all data providers. The data provider components are specifically designed to work with different kinds of data sources. For example, ODBC data providers work with ODBC data sources and OleDb data providers work with OLE-DB data sources.

Source: c-sharpcorner.com

Q10: How can you define the DataSet structure? ⭐⭐

Answer: A DataSet object falls in disconnected components series. The DataSet consists of a collection of tables, rows, columns and relationships.

DataSet contains a collection of DataTables and the DataTable contains a collection of DataRows, DataRelations, and DataColumns. A DataTable maps to a table in the database.

Source: c-sharpcorner.com

Q11: What do you understand by DataRelation class? ⭐⭐

Answer: The DataRelation is a class of disconnected architecture in the .NET framework. It is found in the System.Data namespace. It represents a relationship between database tables and correlates tables on the basis of matching column.

Source: c-sharpcorner.com

Q12: How could you control connection pooling behavior? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q13: What is the difference between ExecuteScalar, ExecuteReader and ExecuteNonQuery? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q14: What is the difference between DataView, DataTable and DataSet? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q15: Could you explain me some of the main differences between Connection-oriented access and connectionless access in ADO.NET? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q16: What is the difference between Integrated Security = True and Integrated Security = SSPI? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q17: What is Unit Of Work? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q18: What are the differences between using SqlDataAdapter vs SqlDataReader for getting data from a DB? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q19: Mention what is the difference between ADO.NET and classic ADO? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q20: Can you explain the difference between a DataReader, a DataAdapter, a Dataset, and a DataView? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q21: Name types of transactions in ADO.NET ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: Where should I use disconnected architecture approach? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: Where should I use connected architecture approach? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: Is there anything faster than SqlDataReader in .NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: Could you explain some benefits of Repository Pattern? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: What is the difference between OLE DB and ODBC data sources? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: How could you monitor connection pooling behavior? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: Is it necessary to manually close and dispose of SqlDataReader? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: What's better: DataSet or DataReader? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What is the difference between ADODB, OLEDB and ADO.NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is the best and fast way to insert 2 million rows of data into SQL Server? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: Under what scenarios would setting pooling=false in an ADO.NET connection string be of value when connecting to SQL Server? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: Name some problems that could occur with connection pooling ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] ASP.NET Interview Questions

Q1: What is ViewData? ⭐

Answer: Viewdata contains the key, value pairs as dictionary and this is derived from class — “ViewDataDictionary“. In action method we are setting the value for viewdata and in view the value will be fetched by typecasting.

Source: medium.com

Q2: What is ASP.Net? ⭐

Answer: It is a framework developed by Microsoft on which we can develop new generation web sites using web forms(aspx), MVC, HTML, Javascript, CSS etc. Its successor of Microsoft Active Server Pages(ASP). Currently there is ASP.NET 4.0, which is used to develop web sites. There are various page extensions provided by Microsoft that are being used for web site development. Eg: aspx, asmx, ascx, ashx, cs, vb, html, XML etc.

Source: guru99.com

Q3: Talk about Logging in ASP.NET Core? ⭐⭐

Answer: Logging is built-in and you get access to structured logs from the ASP.NET Core host itself to your application. With tools like Serilog, you can extend your logging easily and save your logs to file, Azure, Amazon or any other output provider. You can configure verbosity and log levels via configuration (appsettings.json by default), and you can configure log levels by different categories.

Source: talkingdotnet.com

Q4: Explain startup process in ASP.NET Core? ⭐⭐

Answer: Everything starts from Program.cs

public static void Main(string[] args)
{
    BuildWebHost(args).Run();
}
 
public static IWebHost BuildWebHost(string[] args) =>
    WebHost.CreateDefaultBuilder(args)
        .UseStartup<Startup>()
        .Build();

CreateDefaultBuilder extension method will create a default configuration which will look first into appsettings.json files then will look for Environment variables and at the end, it will use command line arguments.

This part will also set up default logger sources (debug and console) and load the settings for logging from appsettings.json.

After the CreateDefaultBuilder finishes, then Startup class is executed. First, the constructor code is executed. After that, services are added to DI container via AddServices method that lives in Startup class. After that, an order of middleware that will handle every incoming request is set up.

Source: codingblast.com

Q5: What exactly is an application pool? What is its purpose? ⭐⭐

Answer: Application pools allow you to isolate your applications from one another, even if they are running on the same server. This way, if there is an error in one app, it won't take down other applications.

Additionally, applications pools allow you to separate different apps which require different levels of security.

Source: stackoverflow.com

Q6: How you can add an event handler? ⭐⭐

Answer: ** **Using the Attributes property of server side control.

e.g.

btnSubmit.Attributes.Add("onMouseOver","JavascriptCode();")

Source: guru99.com

Q7: What's the use of Response.Output.Write()? ⭐⭐

Answer: We can write formatted output using Response.Output.Write().

Source: guru99.com

Q8: How to configure your ASP.NET Core app? ⭐⭐

Answer: Another crucial part of ASP.NET Core Framework is Configuration. Also, it is part of Dependency Injection. Use it anywhere in your code with an option to reload on changes of configuration values from sources (appsettings.json, environment variables, command line arguments, etc.). It is also easy to override, extend and customize the Configuration. No more extensive configurations in web.config, the preferred way now is appsettings.json in combination with a mix of Environment variables and cmd-line args.

Source: talkingdotnet.com

Q9: What is ASP.NET Core? ⭐⭐

Answer: ASP.NET Core is a brand new cross-platform web framework built with .NET Core framework. It is not an update to existing ASP.NET framework. It is a complete rewrite of the ASP.NET framework. It works with both .NET Core and .NET Framework.

Main characterestics of ASP.NET Core:

  • DI Container which is quite simple and built-in. You can extend it with other popular DI containers
  • Built-in and extensible structured logging. You can redirect output to as many sources as you want (file, Azure, AWS, console)
  • Extensible strongly typed configuration, which can also be used to reload at run-time
  • Kestrel – new, cross-platform and super fast web server which can stand alone without IIS, Nginx or Apache
  • New, fully async pipeline. It is easily configured via middleware
  • ASP.NET All meta package which improves development speed, and enables you to reference all Microsoft packages for ASP.NET Core and it will deploy only those that are being used by your code
  • There is no web.config. We now use appsettings.json file in combination with other sources of configuration (command line args, environment variables, etc.)
  • There is no _Global._asax – We have Startup.cs which is used to set up Middleware and services for DI Container.

Source: talkingdotnet.com

Q10: What is the difference between ASP.NET and ASP.NET MVC? ⭐⭐

Answer: ASP.NET, at its most basic level, provides a means for you to provide general HTML markup combined with server side "controls" within the event-driven programming model that can be leveraged with VB, C#, and so on. You define the page(s) of a site, drop in the controls, and provide the programmatic plumbing to make it all work.

ASP.NET MVC is an application framework based on the Model-View-Controller architectural pattern. This is what might be considered a "canned" framework for a specific way of implementing a web site, with a page acting as the "controller" and dispatching requests to the appropriate pages in the application. The idea is to "partition" the various elements of the application, eg business rules, presentation rules, and so on.

Think of the former as the "blank slate" for implementing a site architecture you've designed more or less from the ground up. MVC provides a mechanism for designing a site around a pre-determined "pattern" of application access, if that makes sense. There's more technical detail to it than that, to be sure, but that's the nickel tour for the purposes of the question.

Source: stackoverflow.com

Q11: What is ViewState? ⭐⭐

Answer: View State is the method to preserve the Value of the Page and Controls between round trips. It is a Page-Level State Management technique. View State is turned on by default and normally serializes the data in every control on the page regardless of whether it is actually used during a post-back.

A web application is stateless. That means that a new instance of a page is created every time when we make a request to the server to get the page and after the round trip our page has been lost immediately

Source: c-sharpcorner.com

Q12: Can ASP.NET Core work with the .NET framework? ⭐⭐

Answer: Yes. This might surprise many, but ASP.NET Core works with .NET framework and this is officially supported by Microsoft.

ASP.NET Core works with:

  • .NET Core framework
  • .NET framework

Source: talkingdotnet.com

Q13: What is the good practice to implement validations in aspx page? ⭐⭐

Answer: Client-side validation is the best way to validate data of a web page. It reduces the network traffic and saves server resources.

Source: guru99.com

Q14: What is a postback? ⭐⭐

Answer: A postback originates from the client browser. Usually one of the controls on the page will be manipulated by the user (a button clicked or dropdown changed, etc), and this control will initiate a postback. The state of this control, plus all other controls on the page (known as the View State) is Posted Back to the web server.

Source: stackoverflow.com

Q15: What is the file extension of ASP.NET web service? ⭐⭐

Answer: Web services have file extension .asmx.

Source: guru99.com

Q16: How can we prevent browser from caching an ASPX page? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q17: In which event of page cycle is the ViewState available? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q18: From which base class all Web Forms are inherited? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q19: What is the meaning of Unobtrusive JavaScript? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q20: Explain JSON Binding? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q21: What is new in ASP.NET Core 2, compared to ASP.NET Core 1? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: What are the sub types of ActionResult? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: What exactly is the difference between .NET Core and ASP.NET Core? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: What is the difference between Server.Transfer and Response.Redirect? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: Where the viewstate is stored after the page postback? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: How do you register JavaScript for webcontrols? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: Explain usage of Dependency Injection in ASP.NET Core ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: What are the different validators in ASP.NET? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: List the events in ASP.NET page life cycle ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: Can we add code files of different languages in App_Code folder? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What are the different types of caching? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What are the event handlers that we can have in Global.asax file? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: Explain Middleware in ASP.NET Core? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: How long the items in ViewState exists? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: What is the difference between an HtmlInputCheckBox control and an HtmlInputRadioButton control? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: In which event are the controls fully loaded? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: Which type if caching will be used if we want to cache the portion of a page instead of whole page? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: How we can force all the validation controls to run? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: List the major built-in objects in ASP.NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What is HttpModule in ASP.Net? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What is RedirectPermanent in ASP.Net? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What are the different types of cookies in ASP.NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: What is the difference between <system.web> and <system.webServer>? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What is an HttpHandler in ASP.NET? Why and how is it used? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What is the difference between Web Service and WCF Service? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: What is the difference between web config and machine config? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Is it possible to create web application with both webforms and mvc? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: What is the difference between ASP.NET Core Web (.NET Core) vs ASP.NET Core Web (.NET Framework)? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: What are the different Session state management options available in ASP.NET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: What is the difference between 'classic' and 'integrated' pipeline mode in IIS7? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: How can we apply Themes to an asp.net application? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: How to choose between ASP.NET 4.x and ASP.NET Core? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: What is Katana? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: What exactly is OWIN and what problems does it solve? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: Name some ASP.NET WebForms disadvantages over MVC? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: What is the difference between a web API and a web service? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What is Cross Page Posting? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q59: What is the equivalent of WebForms in ASP.NET Core? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q60: Are static class instances unique to a request or a server in ASP.NET? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] ASP.NET MVC Interview Questions

Q1: What is Layout in MVC? ⭐

Answer: Layout pages are similar to master pages in traditional web forms. This is used to set the common look across multiple pages. In each child page we can find —

@{
Layout = “~/Views/Shared/TestLayout1.cshtml”;
}

This indicates child page uses TestLayout page as it’s master page.

Source: medium.com

Q2: Explain Bundle.Config in MVC4? ⭐⭐

Answer: “BundleConfig.cs” in MVC4 is used to register the bundles by the bundling and minification system. Many bundles are added by default including jQuery libraries like — jquery.validate, Modernizr, and default CSS references.

Source: medium.com

Q3: What is Razor View Engine? ⭐⭐

Answer: Razor is the first major update to render HTML in MVC 3. Razor was designed specifically for view engine syntax. Main focus of this would be to simplify and code-focused templating for HTML generation. Below is the sample of using Razor:

@model MvcMusicStore.Models.Customer
@{ViewBag.Title = “Get Customers”;}
<div class=”cust”> <h3><em>@Model.CustomerName</em> </h3>

Source: medium.com

Q4: What is the use of ViewModel in MVC? ⭐⭐

Answer: ViewModel is a plain class with properties, which is used to bind it to strongly typed view. ViewModel can have the validation rules defined for its properties using data annotations.

Source: medium.com

Q5: What you mean by Routing in MVC? ⭐⭐

Answer: Routing is a pattern matching mechanism of incoming requests to the URL patterns which are registered in route table. Class — “UrlRoutingModule” is used for the same process.

Source: medium.com

Q6: What are Actions in MVC? ⭐⭐

Answer: Actions are the methods in Controller class which is responsible for returning the view or json data. Action will mainly have return type — “ActionResult” and it will be invoked from method — “InvokeAction()” called by controller.

Source: medium.com

Q7: What are the advantages of MVC over ASP.NET? ⭐⭐

Answer:

  • Provides a clean separation of concerns among UI (Presentation layer), model (Transfer objects/Domain Objects/Entities) and Business Logic (Controller).
  • Easy to UNIT Test
  • Improved reusability of model and views. We can have multiple views which can point to the same model and vice versa.
  • Improved structuring of the code

Source: medium.com

Q8: What are Scaffold templates in MVC? ⭐⭐

Answer: Scaffolding in ASP.NET MVC is used to generate the Controllers, Model and Views for create, read, update, and delete (CRUD) functionality in an application. The scaffolding will be knowing the naming conventions used for models and controllers and views.

Source: medium.com

Q9: Can you explain Model, Controller and View in MVC? ⭐⭐

Answer:

  • Model — It’s a business entity and it is used to represent the application data.
  • Controller — Request sent by the user always scatters through controller and it’s responsibility is to redirect to the specific view using View() method.
  • View — It’s the presentation layer of MVC.

Source: medium.com

Q10: What is Razor Pages? ⭐⭐

Answer: Razor Pages is a new feature of ASP.NET Core that makes coding page-focused scenarios easier and more productive.

With Razor Pages, you have this one Razor file (.cshtml), and the code for a single page lives inside of that file, and that file also represents the URL structure of the app. Therefore, you got everything inside of one file, and it just works.

However, you can separate your code to the code behind file with .cshtml.cs extension. You would usually have your view model and handlers (like action methods in MVC) in that file and handle the logic there. Of course, you could also have your view model moved to separate place.

Since Razor Pages is part of the MVC stack, you can use anything that comes with MVC inside of our Razor Pages.

Source: codingblast.com

Q11: Explain Sections is MVC? ⭐⭐

Answer: Section are the part of HTML which is to be rendered in layout page. In Layout page we will use the below syntax for rendering the HTML –

@RenderSection(“TestSection”)

And in child pages we are defining these sections as shown below –

@section TestSection{
     <h1>Test Content</h1>
}

Source: medium.com

Q12: What are Non Action methods in MVC? ⭐⭐

Answer: In MVC all public methods have been treated as Actions. So if you are creating a method and if you do not want to use it as an action method then the method has to be decorated with "NonAction" attribute as shown below:

[NonAction]
public void TestMethod()
{
   // Method logic
}

Source: stackoverflow.com

Q13: Can a view be shared across multiple controllers? If Yes, How we can do that? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q14: What is the difference between ViewBag and ViewData in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q15: What is the difference between ViewResult() and ActionResult() in ASP.NET MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q16: What are HTML Helpers in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q17: Can you explain the page life cycle of MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q18: What is Attribute Routing in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q19: What is PartialView in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q20: Can you explain RenderBody and RenderPage in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q21: Explain the methods used to render the views in MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: Explain ASP.NET WebApi vs MVC? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: What are some of the advantages of using ASP.Net MVC vs Web Forms? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: What is the "HelperPage.IsAjax" Property? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: What is RouteConfig.cs in MVC 4? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: Why to use Html.Partial in MVC? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: What are Validation Annotations? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: Explain TempData in MVC? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: How route table has been created in ASP.NET MVC? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: Explain Dependency Resolution? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is Separation of Concerns in ASP.NET MVC? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What are AJAX Helpers in MVC? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What is Html.RenderPartial? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] ASP.NET Web API Interview Questions

Q1: What is ASP.NET Web API? ⭐

Answer: ASP.NET Web API is a framework that simplifies building HTTP services for broader range of clients (including browsers as well as mobile devices) on top of .NET Framework.

Using ASP.NET Web API, we can create non-SOAP based services like plain XML or JSON strings, etc. with many other advantages including:

  • Create resource-oriented services using the full features of HTTP
  • Exposing services to a variety of clients easily like browsers or mobile devices, etc.

Source: codeproject.com

Q2: Which status code used for all uncaught exceptions by default? ⭐⭐

Answer: 500 – Internal Server Error

Consider:

[Route("CheckId/{id}")]
[HttpGet]
public IHttpActionResult CheckId(int id)
{
    if(id > 100)
    {
        throw new ArgumentOutOfRangeException();
    }
    return Ok(id);
}

And the result:

Source: docs.microsoft.com

Q3: What are the Advantages of Using ASP.NET Web API? ⭐⭐

Answer: Using ASP.NET Web API has a number of advantages, but core of the advantages are:

  • It works the HTTP way using standard HTTP verbs like GET, POST, PUT, DELETE, etc. for all CRUD operations
  • Complete support for routing
  • Response generated in JSON or XML format using MediaTypeFormatter
  • It has the ability to be hosted in IIS as well as self-host outside of IIS
  • Supports Model binding and Validation
  • Support for OData

Source: codeproject.com

Q4: What New Features are Introduced in ASP.NET Web API 2.0? ⭐⭐

Answer: More new features introduced in ASP.NET Web API framework v2.0 are as follows:

  • Attribute Routing
  • External Authentication
  • CORS (Cross-Origin Resource Sharing)
  • OWIN (Open Web Interface for .NET) Self Hosting
  • IHttpActionResult
  • Web API OData

Source: codeproject.com

Q5: What exactly is OAuth (Open Authorization)? ⭐⭐

Answer: OAuth (Open Authorization) is an open standard for access granting/deligation protocol. It used as a way for Internet users to grant websites or applications access to their information on other websites but without giving them the passwords. It does not deal with authentication.

Basically there are three parties involved: oAuth Provider, oAuth Client and Owner.

  • oAuth Client (Application Which wants to access your credential)
  • oAuth Provider (eg. facebook, twitter...)
  • Owner (the person with facebook,twitter.. account )

Source: stackoverflow.com

Q6: Explain the usage of HttpResponseMessage? ⭐⭐

Answer: HttpResponseMessage works with HTTP protocol to return the data with status/error.

Source: c-sharpcorner.com

Q7: What is the difference between ApiController and Controller? ⭐⭐

Answer:

  • Use Controller to render your normal views.
  • ApiController action only return data that is serialized and sent to the client.

Consider:

public class TweetsController : Controller {
  // GET: /Tweets/
  [HttpGet]
  public ActionResult Index() {
    return Json(Twitter.GetTweets(), JsonRequestBehavior.AllowGet);
  }
}

or

public class TweetsController : ApiController {
  // GET: /Api/Tweets/
  public List<Tweet> Get() {
    return Twitter.GetTweets();
  }
}

Source: stackoverflow.com

Q8: What are main return types supported in Web API? ⭐⭐

Answer: A Web API controller action can return following values:

  • Void – It will return empty content
  • HttpResponseMessage – It will convert the response to an HTTP message.
  • IHttpActionResult – internally calls ExecuteAsync to create an HttpResponseMessage
  • Other types – You can write the serialized return value into the response body

Source: career.guru99.com

Q9: What are the differences between WebAPI and WebAPI 2? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q10: How to Restrict Access to Web API Method to Specific HTTP Verb? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q11: What is Attribute Routing in ASP.NET Web API 2.0? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q12: Name types of Action Results in Web API 2 ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q13: Compare WCF vs ASP.NET Web API? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q14: Explain the difference between WCF RESTful Service vs ASP.NET Web API? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q15: Is it True that ASP.NET Web API has Replaced WCF? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q16: What's the difference between REST & RESTful? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q17: Explain the difference between MVC vs ASP.NET Web API ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q18: Why are the "FromBody" and "FromUri" attributes needed in ASP.NET Web API`? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q19: What is ASP.NET Web API OData? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q20: Explain briefly CORS(Cross-Origin Resource Sharing)? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q21: Can we use Web API with ASP.NET Web Form? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: How Can We Provide an Alias Name for ASP.NET Web API Action? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: What is Delegating Handler? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: How to register exception filter globally? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: What's the difference between OpenID and OAuth? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: How to Return View from ASP.NET Web API Method? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: Explain advantages/disadvantages of using HttpModule vs DelegatingHandler? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: Could you clarify what is the best practice with Web API error management? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: What is difference between OData and REST web services? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: Explain briefly OWIN (Open Web Interface for .NET) Self Hosting? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: Explain the difference between WCF, Web API, WCF REST and Web Service? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: Why should I use IHttpActionResult instead of HttpResponseMessage? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What is difference between WCF and Web API and WCF REST and Web Service? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] AWS Interview Questions

Q1: What is AWS? ⭐

Answer: AWS stands for Amazon Web Services and is a platform that provides database storage, secure cloud services, offering to compute power, content delivery, and many other services to develop business levels.

Source: onlineinterviewquestions.com

Q2: Explain the key components of AWS? ⭐

Answer:

  • Simple Storage Service (S3): S3 is most widely used AWS storage web service.
  • Simple E-mail Service (SES): SES is a hosted transactional email service and allows one to fluently send deliverable emails using a RESTFUL API call or through a regular SMTP.
  • Identity and Access Management (IAM): IAM provides improved identity and security management for AWS account.
  • Elastic Compute Cloud (EC2): EC2 is an AWS ecosystem central piece. It is responsible for providing on-demand and flexible computing resources with a “pay as you go” pricing model.
  • Elastic Block Store (EBS): EBS offers continuous storage solution that can be seen in instances as a regular hard drive.
  • CloudWatch: CloudWatch allows the controller to outlook and gather key metrics and also set a series of alarms to be notified if there is any trouble.

Source: whizlabs.com

Q3: What is buckets in AWS? ⭐

Answer: An Amazon S3 bucket is a public cloud storage resource available in Amazon Web Services' (AWS) Simple Storage Service (S3), an object storage offering. Amazon S3 buckets, which are similar to file folders, store objects, which consist of data and its descriptive metadata.

By default, you can create up to 100 buckets in each of your AWS accounts. If you need more buckets, you can increase your bucket limit by submitting a service limit increase.

Source: whizlabs.com

Q4: What is AWS Cloudfront? ⭐⭐

Answer: Amazon CloudFront is a content delivery network (CDN) offered by Amazon Web Services. Content delivery networks provide a globally-distributed network of proxy servers which cache content, such as web videos or other bulky media, more locally to consumers, thus improving access speed for downloading the content.

Source: en.wikipedia.org

Q5: What do you mean by AMI? What does it include? ⭐⭐

Answer: AMI stands for the term Amazon Machine Image. It’s an AWS template which provides the information (an application server, and operating system, and applications) required to perform the launch of an instance. This AMI is the copy of the AMI that is running in the cloud as a virtual server. You can launch instances from as many different AMIs as you need. AMI consists of the followings:

  • A root volume template for an existing instance
  • Launch permissions to determine which AWS accounts will get the AMI in order to launch the instances
  • Mapping for block device to calculate the total volume that will be attached to the instance at the time of launch

Source: whizlabs.com

Q6: How can I download a file from EC2? ⭐⭐

Answer: Use scp:

scp -i ec2key.pem username@ec2ip:/path/to/file .

Source: stackoverflow.com

Q7: Is it possible to clone a EC2 instance data? ⭐⭐

Answer: You can make an AMI of an existing instance, and then launch other instances using that AMI.

Source: stackoverflow.com

Q8: What is AWS Data Pipeline? ⭐⭐

Answer: AWS Data Pipeline is a web service that you can use to automate the movement and transformation of data. With AWS Data Pipeline, you can define data-driven workflows, so that tasks can be dependent on the successful completion of previous tasks.

Source: docs.aws.amazon.com

Q9: Explain the features of Amazon EC2 services ⭐⭐

Answer: Amazon EC2 services have following features:

  • Virtual Computing Environments
  • Proffers Persistent storage volumes
  • Firewall validating you to specify the protocol
  • Pre-configured templates
  • Static IP address for dynamic Cloud Computing

Source: whizlabs.com

Q10: What is the connection between AMI and Instance? ⭐⭐

Answer: Many different types of instances can be launched from one AMI. The type of an instance generally regulates the hardware components of the host computer that is used for the instance. Each type of instance has distinct computing and memory efficacy.

Once an instance is launched, it casts as host and the user interaction with it is same as with any other computer but we have a completely controlled access to our instances. AWS developer interview questions may contain one or more AMI based questions, so prepare yourself for the AMI topic very well.

Source: whizlabs.com

Q11: Are S3 buckets region specific? ⭐⭐

Answer: Yes, buckets exist in a specific region and you need to specify that region when you create a bucket. Amazon S3 creates bucket in a region you specify. You can choose any AWS region that is geographically close to you to optimize latency, minimize costs, or address regulatory requirements.

Source: stackoverflow.com

Q12: What is AWS Direct Connect? ⭐⭐

Answer: AWS Direct Connect bypasses the public Internet and establishes a secure, dedicated connection from your infrastructure into AWS. With established connectivity via AWS Direct Connect, you can access your Amazon VPC and all AWS services.

Source: coresite.com

Q13: What is AWS EBS? ⭐⭐

Answer: Amazon Elastic Block Store (Amazon EBS) provides persistent block storage volumes for use with Amazon EC2 instances in the AWS Cloud. Each Amazon EBS volume is automatically replicated within its Availability Zone to protect you from component failure, offering high availability and durability.

Source: aws.amazon.com

Q14: What is AWS Lambda? ⭐⭐

Answer: AWS Lambda is a serverless compute service that runs your code in response to events and automatically manages the underlying compute resources for you. You can use AWS Lambda to extend other AWS services with custom logic, or create your own back-end services that operate at AWS scale, performance, and security.

Source: aws.amazon.com

Q15: What is AWS DynamoDB? ⭐⭐

Answer: Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. With DynamoDB, you can create database tables that can store and retrieve any amount of data, and serve any level of request traffic.

Source: docs.aws.amazon.com

Q16: What is AWS EMR? ⭐⭐

Answer: Amazon Elastic MapReduce (EMR) is an Amazon Web Services (AWS) tool for big data processing and analysis. Amazon EMR offers the expandable low-configuration service as an easier alternative to running in-house cluster computing.

Amazon EMR is based on Apache Hadoop, a Java-based programming framework that supports the processing of large data sets in a distributed computing environment. MapReduce is a software framework that allows developers to write programs that process massive amounts of unstructured data in parallel across a distributed cluster of processors or stand-alone computers.

Source: searchaws.techtarget.com

Q17: Is data stored in S3 is always encrypted? ⭐⭐

Answer: By default data on S3 is not encrypted, but all you could enable server-side encryption in your object metadata when you upload your data to Amazon S3. As soon as your data reaches S3, it is encrypted and stored.

Source: aws.amazon.com

Q18: Can we attach single EBS to multiple EC2s same time? ⭐⭐

Answer: No. After you create a volume, you can attach it to any EC2 instance in the same Availability Zone. An EBS volume can be attached to only one EC2 instance at a time, but multiple volumes can be attached to a single instance.

Source: docs.aws.amazon.com

Q19: What is AWS API gateway? ⭐⭐

Answer: Amazon API Gateway is an AWS service that enables developers to create, publish, maintain, monitor, and secure APIs at any scale. You can create APIs that access AWS or other web services, as well as data stored in the AWS Cloud.

Source: aws.amazon.com

Q20: What is AWS Direct Connect? ⭐⭐

Answer: Using AWS Direct Connect, you can establish private connectivity between AWS and your datacenter, office, or colocation environment, which in many cases can reduce your network costs, increase bandwidth throughput, and provide a more consistent network experience than Internet-based connections.

Source: aws.amazon.com

Q21: What are the security best practices for Amazon EC2 instances? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q22: Can I automatically start and terminate my Amazon instance using Amazon API? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: Can we still continue working on EBS while creating snapshot of it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: What is AWS Auto Scaling? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: What is AWS Auto Scaling group? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: What is the maximum size of a single S3 object? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: What is AWS bucket policy? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: Does AWS has the option for vertical "auto" scaling of EC2 instance? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: What is AWS WAF? What are the potential benefits of using WAF? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: How to get the instance id from within an EC2 instance? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is AWS Cloudwatch? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What is the difference between Amazon EC2 and AWS Elastic Beanstalk? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: How many storage options are there for EC2 Instance? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is AWS Route 53? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: How would you implement vertical auto scaling of EC2 instance? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: What is Amazon Kinesis? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: How to find a region from within an EC2 instance? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: Where are EC2 snapshots stored? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: When should one use the following: Amazon EC2, Google App Engine, Microsoft Azure and Salesforce.com? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: When to use Amazon CloudFront and when S3? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: Our EC2 micro instance occasionally runs out of memory. Other than using a larger instance size, what else can be done? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What is difference between Lightsail and EC2? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What is the underlying hypervisor for EC2? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: How to safely upgrade an Amazon EC2 instance from t1.micro to large? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Agile & Scrum Interview Questions

Q1: What is ASP.NET MVC? ⭐

Answer: ASP.NET MVC is a web application Framework. It is light weight and highly testable Framework. MVC separates application into three components — Model, View and Controller.

Source: medium.com

Q2: What is Scrum? ⭐

Answer: Scrum is one of the most popular frameworks for implementing Agile. Many people think scrum and agile are the same thing but they're not.

With scrum, the product is built in a series of fixed-length iterations called sprints that give teams a framework for shipping software on a regular cadence.

Source: atlassian.com

Q3: What is sprint in Scrum? ⭐

Answer: In the Scrum methodology a sprint is the basic unit of development. Scrum sprints correspond to Agile iterations.

Each sprint starts with

  • a planning meeting, where the tasks for the sprint are identified and an estimated commitment for the sprint goal is made.

A Sprint ends with

  • a review or retrospective meeting where the progress is reviewed and lessons for the next sprint are identified. During each sprint, the team creates finished portions of a product.

Source: stackoverflow.com

Q4: Name roles in Scrum ⭐

Answer: Three essential roles for scrum success are:

  • The Product Owner are the champions for their product. They are focused on understanding business and market requirements, then prioritizing the work to be done by the engineering team accordingly.
  • ** The Scrum Master** are the champion for scrum within their team. They coach the team, the product owner, and the business on the scrum process and look for ways to fine-tune their practice of it.
  • The Scrum Team are the champions for sustainable development practices. Scrum teams are cross-functional, "the development team" includes testers, designers, and ops engineers in addition to developers.

Source: atlassian.com

Q5: What is User Stories? ⭐

Answer: User stories are features customers might want to see in their software. They are written on index cards to encourage face-to-face communication. Typically no more than a couple days work, they form the basis of our Agile plans.

Q6: What is an epic, user stories and task? ⭐

Answer: Epic: A customer described software feature that is itemized in the product backlog is known as epic. Epics are sub-divided into stories.

User Stories: From the client perspective user stories are prepared which defines project or business functions, and it is delivered in a particular sprint as expected.

Task: Further down user stories are broken down into different task

Source: career.guru99.com

Q7: Explain what is Refactoring? ⭐

Answer: To improve the performance, the existing code is modified; this is re-factoring. During re-factoring the code functionality remains same.

Source: career.guru99.com

Q8: What is an Agile iteration? ⭐

Answer: An Agile iteration is a short one to two week period where a team takes most important user stories, builds them completely and deliver as running-tested-software to the customer. Analysis, design, coding, testing happen during an iteration.

Q9: Name some types of meetings or ceremonies in Scrum ⭐⭐

Answer: Scrum calls for four ceremonies that bring structure to each sprint:

  • Sprint planning: A team planning meeting that determines what to complete in the coming sprint.
  • Daily stand-up: Also known as a daily scrum, a 15-minute mini-meeting for the software team to sync.
  • Sprint demo: A sharing meeting where the team shows what they've shipped in that sprint.
  • Sprint retrospective: A review of what did and didn't go well with actions to make the next sprint better.

Source: atlassian.com

Q10: If a timebox plan needs to be reprioritized who should re-prioritise it? ⭐⭐

Answer: If a timebox plan needs to be reprioritized it should include whole team, product owner, and developers.

Source: career.guru99.com

Q11: Mention the key difference between sprint backlog and product backlog? ⭐⭐

Answer:

  • Product backlog: It contains a list of all desired features and is owned by the product owner

  • Sprint backlog: It is a subset of the product backlog owned by development team and commits to deliver it in a sprint. It is created in Sprint Planning Meeting

Source: career.guru99.com

Q12: What is Agile? ⭐⭐

Answer: Agile is a time boxed, iterative approach (framework) to software delivery that builds software incrementally from the start of the project, instead of trying to deliver it all at once near the end.

It works by breaking projects down into little bits of user functionality called user stories, prioritizing them, and then continuously delivering them in short two week cycles called iterations.

Agile refers to any process that aligns with the concepts of the Agile Manifesto.

Source: agilemanifesto.org

Q13: Explain in Agile, burn-up and burn-down chart? ⭐⭐

Answer: To track the project progress burnup and burn down, charts are used

  • Burnup Chart: It shows the progress of stories done over time
  • Burndown Chart: It shows how much work was left to do overtime

Source: career.guru99.com

Q14: What is Sprint Planning? ⭐⭐

Answer: The work to be performed in the Sprint is planned at the Sprint Planning. This plan is created by the collaborative work of the entire Scrum Team.

Sprint Planning answers the following:

  • What can be delivered in the Increment resulting from the upcoming Sprint?
  • How will the work needed to deliver the Increment be achieved?

The Sprint Goal is an objective set for the Sprint that can be met through the implementation of Product Backlog.

Source: scrum.org

Q15: Explain difference between a Product and a Sprint Backlog ⭐⭐

Answer:

  • The Product Backlog is an ordered list of everything that is known to be needed in the product. It is the single source of requirements for any changes to be made to the product.

  • The Sprint Backlog is the set of Product Backlog items selected for the Sprint during the Sprint Planning, plus a plan for delivering the product Increment and realizing the Sprint Goal.

Source: scrum.org

Q16: What is story points/efforts/ scales? ⭐⭐

Answer: It is used to discuss the difficulty of the story without assigning actual hours. The most common scale used is a Fibonacci sequence (1, 2, 3, 5, 8,1 3,….100) although some teams use linear scale (1, 2, 3, 4….), Powers of 2 (1, 2, 4, 8……) and cloth size (XS, S ,M, L, XL)

Source: career.guru99.com

Q17: How is Agile different from other software delivery aproaches? ⭐⭐

Answer:

  • Analysis, design, coding, and testing are continuous activities
  • Development is iterative
  • Planning is adaptive
  • Roles blur
  • Scope can vary
  • Requirements can change
  • Working software is the primary measure of success

Q18: Have you ever used Scrum Task Board? ⭐⭐

Answer: In Scrum the task board is a visual display of the progress of the Scrum team during a sprint. It presents a snapshot of the current sprint backlog allowing everyone to see which tasks remain to be started, which are in progress and which are done.

Consider the following layout of the task board:

  • Stories
  • To Do
  • In Progress
  • Testing
  • Done

Source: manifesto.co.uk

Q19: Explain what does it mean by product roadmap? ⭐⭐

Answer: A product roadmap is referred for the holistic view of product features that create the product vision.

Source: career.guru99.com

Q20: Explain what is Velocity in Agile? ⭐⭐

Answer: Velocity is a metric that is calculated by addition of all efforts estimates related with user stories completed in an iteration. It figures out how much work Agile can complete in a sprint and how much time will it need to finish a project.

Source: career.guru99.com

Q21: Mention what should a burndown chart should highlight? ⭐⭐

Answer: The burn-down chart shows the remaining work to complete before the timebox (iteration) ends.

Source: career.guru99.com

Q22: What is test driven development? ⭐⭐

Answer: Test driven development (TDD) is also known as test-driven design. In this method, developer first writes an automated test case which describes new function or improvement and then creates small codes to pass that test, and later re-factors the new code to meet the acceptable standards.

Source: career.guru99.com

Q23: Explain what is Scrum ban? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: What does project velocity mean? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: Can you explain the purpose of a burndown chart? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: What is the Agile Manifesto? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: What does the Scrum Framework consist from? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: What are four Agile Manifesto values? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: Explain the difference between Extreme programming and Scrum? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What are some methodologies used to implement Agile? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: Mention what are the challenges involved in Agile software development? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What are the qualities of a good Agile tester should have? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What is a Sprint Review? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is Acceptance Criteria? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: Mention what are the advantages of maintaining consistent iteration length throughout the project? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: Mention in detail what are the role’s of Scrum Master? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: Mention what is the difference between Scrum and Agile? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: Mention what are the Agile quality strategies? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: Why Continuous Integration is important for Agile? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: What is a Sprint Retrospective? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What are the Scrum values? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What the Scrum theory is based on? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: When not to use Agile? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: In Agile mention what is the difference between the Incremental and Iterative development? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: Explain how you can measure the velocity of the sprint with varying team capacity? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What is Scrum Increment? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: Explain main differences between Scrum and Agile? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Name the 12 Agile Principles ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: What are the benefits of Burn Up chart? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: What is the Scrum's definition of "Done"? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: Provide some examples of burn-up chart ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: Explain what is Spike and Zero sprint in Agile? What is the purpose of it? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Android Interview Questions

Q1: Mention the difference between RelativeLayout and LinearLayout? ⭐

Answer:

  • Linear Layout — Arranges elements either vertically or horizontally. i.e. in a row or column.
  • Relative Layout — Arranges elements relative to parent or other elements.

Source: android.jlelse.eu

Q2: What is the difference between Bitmap and Drawable in Android? ⭐

Answer:

  • A Bitmap is a representation of a bitmap image (something like java.awt.Image).
  • A Drawable is an abstraction of "something that can be drawn". It could be a Bitmap (wrapped up as a BitmapDrawable), but it could also be a solid color, a collection of other Drawable objects, or any number of other structures.

Source: stackoverflow.com

Q3: What is a difference between Spannable and String? ⭐

Answer: A Spannable allows to attach formatting information like bold, italic, ... to sub-sequences ("spans", thus the name) of the characters. It can be used whenever you want to represent "rich text".

Source: stackoverflow.com

Q4: What is an Activity? ⭐

Answer: An activity provides the window in which the app draws its UI. This window typically fills the screen, but may be smaller than the screen and float on top of other windows. Generally, one activity implements one screen in an app. For instance, one of an app’s activities may implement a Preferences screen, while another activity implements a Select Photo screen.

Source: github.com

Q5: What is Armv7? ⭐⭐

Answer: There are 3 CPU architectures in Android:

  • ARMv7 is the most common as it is optimised for battery consumption.
  • ARM64 is an evolved version of that that supports 64-bit processing for more powerful computing.
  • ARMx86, is the least used for these three, since it is not battery friendly. It is more powerful than the other two.

Source: android.jlelse.eu

Q6: Explain activity lifecycle ⭐⭐

Answer: As a user navigates through, out of, and back to your app, the Activity instances in your app transition through different states in their lifecycle.

To navigate transitions between stages of the activity lifecycle, the Activity class provides a core set of six callbacks: onCreate(), onStart(), onResume(), onPause(), onStop(), and onDestroy(). The system invokes each of these callbacks as an activity enters a new state.

Source: developer.android.com

Q7: How can I get the context in a fragment? ⭐⭐

Answer: You can use getActivity(), which returns the activity associated with a fragment. The activity is a context (since Activity extends Context).

You can also override the onAttach method of fragment:

public static class DummySectionFragment extends Fragment{
...
    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        DBHelper = new DatabaseHelper(activity);
    }
}

Source: stackoverflow.com

Q8: What is View Group? How are they different from Views? ⭐⭐

Answer: View: View objects are the basic building blocks of User Interface(UI) elements in Android. View is a simple rectangle box which responds to the user’s actions. Examples are EditText, Button, CheckBox etc. View refers to the android.view.View class, which is the base class of all UI classes.

ViewGroup: ViewGroup is the invisible container. It holds View and ViewGroup. For example, LinearLayout is the ViewGroup that contains Button(View), and other Layouts also. ViewGroup is the base class for Layouts.

Source: android.jlelse.eu

Q9: Is it possible to implement the model–view–controller pattern in Java for Android? ⭐⭐

Answer: In Android you don't have MVC, but you have the following:

  • You define your user interface in various XML files by resolution, hardware, etc.
  • You define your resources in various XML files by locale, etc.
  • You extend clases like ListActivity, TabActivity and make use of the XML file by inflaters.
  • You can create as many classes as you wish for your business logic.
  • A lot of Utils have been already written for you - DatabaseUtils, Html.

Source: stackoverflow.com

Q10: What’s the difference between onCreate() and onStart()? ⭐⭐

Answer:

  • The onCreate() method is called once during the Activity lifecycle, either when the application starts, or when the Activity has been destroyed and then recreated, for example during a configuration change.
  • The onStart() method is called whenever the Activity becomes visible to the user, typically after onCreate() or onRestart().

Source: android.jlelse.eu

Q11: Explain the build process in Android ⭐⭐

Answer:

  1. First step involves compiling the resources folder (/res) using the aapt (android asset packaging tool) tool. These are compiled to a single class file called R.java. This is a class that just contains constants.
  2. Second step involves the java source code being compiled to .class files by javac, and then the class files are converted to Dalvik bytecode by the “dx” tool, which is included in the sdk ‘tools’. The output is classes.dex.
  3. The final step involves the android apkbuilder which takes all the input and builds the apk (android packaging key) file.

Source: android.jlelse.eu

Q12: What is an Intent in Android? ⭐⭐

Answer: An Intent is basically a message that is passed between components (such as Activities, Services, Broadcast Receivers, and Content Providers).So, it is almost equivalent to parameters passed to API calls. The fundamental differences between API calls and invoking components via intents are:

  • API calls are synchronous while intent-based invocations are asynchronous.
  • API calls are compile-time binding while intent-based calls are run-time binding.

To listen for an broadcast intent (like the phone ringing, or an SMS is received), you implement a broadcast receiver, which will be passed the intent. To declare that you can handle another's app intent like "take picture", you declare an intent filter in your app's manifest file.

If you want to fire off an intent to do something, like pop up the dialer, you fire off an intent saying you will.

An Intent provides a facility for performing late runtime binding between the code in different applications.

Source: stackoverflow.com

Q13: What is the most appropriate way to store user settings in Android application? ⭐⭐

Answer: In general SharedPreferences are your best bet for storing preferences, so in general I'd recommend that approach for saving application and user settings.

The only area of concern here is what you're saving. Passwords are always a tricky thing to store, and I'd be particularly wary of storing them as clear text. The Android architecture is such that your application's SharedPreferences are sandboxed to prevent other applications from being able to access the values so there's some security there, but physical access to a phone could potentially allow access to the values.

Source: stackoverflow.com

Q14: In what situation should one use RecyclerView over ListView? ⭐⭐

Answer: RecyclerView was created as a ListView improvement, so yes, you can create an attached list with ListView control, but using RecyclerView is easier as it:

  • Reuses cells while scrolling up/down - this is possible with implementing View Holder in the ListView adapter, but it was an optional thing, while in the RecycleView it's the default way of writing adapter.
  • Decouples list from its container - so you can put list items easily at run time in the different containers (linearLayout, gridLayout) with setting LayoutManager.

To conclude, RecyclerView is a more flexible control for handling "list data" that follows patterns of delegation of concerns and leaves for itself only one task - recycling items.

Source: stackoverflow.com

Q15: Explain briefly all the Android application components ⭐⭐

Answer: App components are the essential building blocks of an Android app. Each component is an entry point through which the system or a user can enter your app.

There are four different types of app components:

  • Activities - An activity is the entry point for interacting with the user. It represents a single screen with a user interface.
  • Services - A service is a general-purpose entry point for keeping an app running in the background for all kinds of reasons. It is a component that runs in the background to perform long-running operations or to perform work for remote processes.
  • Broadcast receivers - A broadcast receiver is a component that enables the system to deliver events to the app outside of a regular user flow, allowing the app to respond to system-wide broadcast announcements.
  • Content providers - A content provider manages a shared set of app data that you can store in the file system, in a SQLite database, on the web, or on any other persistent storage location that your app can access.

Source: developer.android.com

Q16: What is 'Context' on Android? ⭐⭐

Answer: The documentation itself provides a rather straightforward explanation: The Context class is an “Interface to global information about an application environment".

We may assume a Context is a handle to the system; it provides services like resolving resources, obtaining access to databases and preferences, and so on. An Android app has activities. Context is like a handle to the environment your application is currently running in. The activity object inherits the Context object.

Source: stackoverflow.com

Q17: What is the Dalvik Virtual Machine? ⭐⭐

Answer: The Dalvik Virtual Machine (DVM) is an android virtual machine optimized for mobile devices. It optimizes the virtual machine for memory, battery life and performance.

The Dex compiler converts the class files into the .dex file that run on the Dalvik VM. Multiple class files are converted into one dex file.

Source: www.javatpoint.com

Q18: Tell about Constraint Layout ⭐⭐

Answer: ConstraintLayout allows you to create large and complex layouts with a flat view hierarchy (no nested view groups). It's similar to RelativeLayout in that all views are laid out according to relationships between sibling views and the parent layout, but it's more flexible than RelativeLayout and easier to use with Android Studio's Layout Editor.

Intention of ConstraintLayout is to optimize and flatten the view hierarchy of your layouts by applying some rules to each view to avoid nesting.

Source: developer.android.com

Q19: What is ADB and what is it used for? ⭐⭐

Answer: ADB is the acronym for Android Debug Bridge, which is part of the Android SDK (Software Development Kit). It uses a client-server-model (i.e. adbd, the ADB daemon, is running on the device and can be connected to), and in most cases is used via an USB connection. It is also possible to use it via WiFi (wireless adb).

There's nothing you need to install on your Android device, as the ADB daemon (adbd) is already integrated into the Android OS. It is usually accessed via a command line interface from the PC, where either the full Android SDK is installed (several 30 MB download archive currently), or a massively stripped-down version for "non-developers", sometimes referred to as "Mini ADB" or "ADB essentials" (for Linux, this is only the adb executable; for Windows it's adb.exe plus two or three .dll files).

Source: developer.android.com

Q20: What is Dalvik? ⭐⭐

Answer: Dalvik is a Just In Time (JIT) compiler. By the term JIT, we mean to say that whenever you run your app in your mobile device then that part of your code that is needed for execution of your app will only be compiled at that moment and rest of the code will be compiled in the future when needed. The JIT or Just In Time compiles only a part of your code and it has a smaller memory footprint and due to this, it uses very less physical space on your device.

Source: blog.mindorks.com

Q21: What types of Context do you know? ⭐⭐

Answer: The are mainly two types of context:

  • Application Context: It is an instance that is the singleton and can be accessed in activity via getApplicationContext(). This context is tied to the lifecycle of an application. The application context can be used where you need a context whose lifecycle is separate from the current context or when you are passing a context beyond the scope of activity.

  • Activity Context: This context is tied to the lifecycle of an activity. The activity context should be used when you are passing the context in the scope of an activity or you need the context whose lifecycle is attached to the current context.

Source: blog.mindorks.com

Q22: How do I pass data between Activities in Android application? ⭐⭐

Details: I have a scenario where, after logging in through a login page, there will be a sign-out button on each activity. Can you guide me on how to keep session id available to all activities?

Answer: The easiest way to do this would be to pass the session id to the signout activity in the Intent you're using to start the activity:

Intent intent = new Intent(getBaseContext(), SignoutActivity.class);
intent.putExtra("EXTRA_SESSION_ID", sessionId);
startActivity(intent);

Access that intent on next activity:

String sessionId = getIntent().getStringExtra("EXTRA_SESSION_ID");

Source: stackoverflow.com

Q23: How does the OutOfMemory happens? ⭐⭐

Answer: Out of memory error is very common error when you are developing for a application that deals with multiple images sets or large bitmaps or some Animation stuff. In Android, every application runs in a Linux Process. Each Linux Process has a Virtual Machine (Dalvik Virtual Machine) running inside it. There is a limit on the memory a process can demand and it is different for different devices and also differs for phones and tablets. When some process demands a higher memory than its limit it causes a error i.e Out of memory error.

There are number of reasons why we get a Out of memory errors. Some of those are:

  1. You are doing some operation that continuously demands a lot of memory and at some point it goes beyond the max heap memory limit of a process.

  2. You are leaking some memory i.e you didn’t make the previous objects you allocated eligible for Garbage Collection (GC). This is called Memory leak.

  3. You are dealing with large bitmaps and loading all of them at run time. You have to deal very carefully with large bitmaps by loading the size that you need not the whole bitmap at once and then do scaling.

Source: blogs.innovationm.com

Q24: What is a ContentProvider and what is it typically used for? ⭐⭐

Answer: A content provider manages access to a central repository of data. A provider is part of an Android application, which often provides its own UI for working with the data. However, content providers are primarily intended to be used by other applications, which access the provider using a provider client object.

Typically you work with content providers in one of two scenarios;

  • you may want to implement code to access an existing content provider in another application, or
  • you may want to create a new content provider in your application to share data with other applications.

Source: developer.android.com

Q25: What is an AsyncTask? ⭐⭐

Answer: AsyncTask is one of the easiest ways to implement parallelism in Android without having to deal with more complex methods like Threads. Though it offers a basic level of parallelism with the UI thread, it should not be used for longer operations (of, say, not more than 2 seconds).

AsyncTask has four methods

  • onPreExecute()
  • doInBackground()
  • onProgressUpdate()
  • onPostExecute()

where doInBackground() is the most important as it is where background computations are performed.

Source: stackoverflow.com

Answer: In short, Fragments need to have a no-args constructor for the Android system to instantiate them. Your Fragment subclasses need a public empty constructor as this is what's being called by the framework.

It is used in the case when device has to restore the state of a fragment. No data will be passed and a default fragment will be created and then the state will be restored. Since the system has no way to know what you passed in your constructor or your newInstance, default constructor will be used and saved bundle should be passed via onCreate after the fragment is actually instantiated with the default constructor.

Source: www.quora.com

Q27: How to persist data in an Android app? ⭐⭐

Answer: There are basically four different ways to store data in an Android app:

  1. Shared Preferences - to save primitive data in key-value pairs
  2. Internal Storage - you need to store data to the device filesystem, but you do not want any other app (even the user) to read this data
  3. External Storage - you might want the user to view the files and data saved by your app
  4. SQLite database

Source: www.androidauthority.com

Q28: Explain Android notification system ⭐⭐

Answer: A notification is a message that Android displays outside your app's UI to provide the user with reminders, communication from other people, or other timely information from your app. Users can tap the notification to open your app or take an action directly from the notification.

Notifications appear to users in different locations and formats, such as an icon in the status bar, a more detailed entry in the notification drawer, as a badge on the app's icon, and on paired wearables automatically. Beginning with Android 5.0, notifications can appear on the lock screen.

Starting in Android 8.0 (API level 26), all notifications must be assigned to a channel or it will not appear. By categorizing notifications into channels, users can disable specific notification channels for your app (instead of disabling all your notifications), and users can control the visual and auditory options for each channel—all from the Android system settings.

Source: developer.android.com

Q29: What is Handler and what is it used for? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: Explain key differences between Service and IntentService ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is Explicit Intent? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: How would you support different screen sizes? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What is Implicit Intent? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is Intent Filter? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: What does LayoutInflater in Android do? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: Android Log.v(), Log.d(), Log.i(), Log.w(), Log.e(). When to use each one? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: What are the differences between onCreate(), onCreateView(), and onActivityCreated() in fragments and what would they each be used for? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: What is the difference between onCreate() and onCreateView() lifecycle methods in Fragment? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: How to declare global variables in Android? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: What is the actual differences between a activity context and application context? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What are the permission protection levels in Android? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What is the difference between Activity and Context? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: How would you preserve Activity state during a screen rotation? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: When to use Android's ArrayMap instead of a HashMap? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What are the differences between ArrayList and ArrayMap? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What are dex files are used for? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: What is an Android PendingIntent? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Explain how HashMap works ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: What is the difference between compileSdkVersion and targetSdkVersion? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: What are Android Annotations and what are they used for? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: How could you pass data between activities without Intent? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: What is the difference between invisible and gone for the View visibility status? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: What is ART? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: What is Android Data Binding? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: What is RenderScript and when should we (really) use it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: Why fragments, and when to use fragments instead of activities? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: What are retained fragments? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What is the difference between Service & Intent Service? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q59: Describe Different Types of Services in Android ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q60: What is the support library? Why was it introduced? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q61: What is DDMS and what can you do with it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q62: What is the best way to update the screen periodically? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q63: What is a JobScheduler? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q64: What is the ViewHolder pattern? Why should we use it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q65: What is the difference between ListView and RecyclerView? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q66: What is a LocalBroadcastManager? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q67: What is the difference between AsyncTask and Thread/Runnable? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q68: What is the difference between a Bundle and an Intent? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q69: What is the difference between Adapter and Loader in Android? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q70: When to use Android Loaders? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q71: Isn't android's Bundle functionally equivalent with a Map? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q72: What is Parcelable in Android? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q73: When to use Fragments vs Activities? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q74: How would you communicate between two Fragments? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q75: What is the difference between Handler vs AsyncTask vs Thread? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q76: How can two distinct Android apps interact? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q77: Explain String vs StringBuilder vs SpannedString vs SpannableString vs SpannableStringBuilder vs CharSequence ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q78: Is a Dalvik virtual machine instance created for each application? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q79: What is the Android NDK? How can one use it? Why should one use it? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q80: What is the StrictMode? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q81: When is it necessary, or better to use a SurfaceView instead of a View? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q82: Can you manually call the Garbage collector? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q83: What is the difference between Android timer and a Handler to do action every N seconds? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q84: What is Broadcast Receiver? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q85: How to avoid reverse engineering of an APK file? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q86: What are some differences between ART and Dalvik? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q87: What are Android Architecture Components? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q88: Why to consider FlatBuffers over JSON? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q89: What is the difference between ANR and crash in Android? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q90: How do you handle Bitmaps in Android as it takes too much memory? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q91: Explain how ArrayMap works ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q92: What is the difference between ArrayMap vs HashMap? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q93: Discuss Singletons vs. Application Context for app-global state ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q94: What is the difference between getContext() , getApplicationContext() , getBaseContext() , and "this"? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q95: What is Doze? What about App Standby? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q96: What is a ThreadPool? And is it more effective than using several separate Threads? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q97: How can I use AsyncTask in different Activities? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q98: What is AIDL? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q99: What are some best practices to avoid memory leaks on Android? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q100: When to use SparseArray vs HashMap? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q101: Provide some tips to reduce battery usage in an android application ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q102: What are some difference between Parcelable and Serializable? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q103: What are best practices for storing and protecting private API keys in applications? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q104: What is a Sticky Broadcast? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q105: What is the relationship between Looper, Handler and MessageQueue in Android? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q106: When would you use AIDL? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q107: Explain reasons why not to use getApplicationContext()? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q108: When to use AIDL vs Messenger Queue? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q109: What is the difference between Local, Normal, Ordered and Sticky broadcasts? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q110: Explain when would you call getApplicationContext() and why? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q111: What is Intent vs Sticky Intent vs Pending Intent? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q112: What happens if the user navigates away or closes the app while I still have a reference to the Activity the user just closed in my AsyncTask? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q113: What is the onTrimMemory method? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Angular Interview Questions

Q1: What is Routing Guard in Angular? ⭐

Answer: Angular’s route guards are interfaces which can tell the router whether or not it should allow navigation to a requested route. They make this decision by looking for a true or false return value from a class which implements the given guard interface.

Source: medium.com

Q2: What is a module, and what does it contain? ⭐

Answer: An Angular module is set of Angular basic building blocks like component, directives, services etc. An app can have more than one module.

A module can be created using @NgModule decorator.

@NgModule({
  imports:      [ BrowserModule ],
  declarations: [ AppComponent ],
  bootstrap:    [ AppComponent ]
})
export class AppModule { }

Source: stackoverflow.com

Q3: What are pipes? Give me an example. ⭐

Answer: A pipe takes in data as input and transforms it to a desired output. You can chain pipes together in potentially useful combinations. You can write your own custom pipes. Angular comes with a stock of pipes such as DatePipe, UpperCasePipe, LowerCasePipe, CurrencyPipe, and PercentPipe.

Consider:

<p>The hero's birthday is {{ birthday | date }}</p>

In this page, you'll use pipes to transform a component's birthday property into a human-friendly date.

Source: angular.io

Q4: What is the minimum definition of a component? ⭐⭐

Answer: The absolute minimal configuration for a @Component in Angular is a template. Both template properties are set to optional because you have to define either template or templateUrl.

When you don't define them, you will get an exception like this:

No template specified for component 'ComponentName'

A selector property is not required, as you can also use your components in a route.

Source: stackoverflow.com

Q5: What's the difference between an Angular component and module? ⭐⭐

Answer: Components control views (html). They also communicate with other components and services to bring functionality to your app.

Modules consist of one or more components. They do not control any html. Your modules declare which components can be used by components belonging to other modules, which classes will be injected by the dependency injector and which component gets bootstrapped. Modules allow you to manage your components to bring modularity to your app.

Source: stackoverflow.com

Q6: How would you run unit test? ⭐⭐

Answer: The Angular CLI downloads and install everything you need to test an Angular application with the Jasmine test framework.

The project you create with the CLI is immediately ready to test. Just run this one CLI command:

ng test

Source: angular.io

Q7: What is a service, and when will you use it? ⭐⭐

Answer: Angular services are singleton objects which get instantiated only once during the lifetime of an application. They contain methods that maintain data throughout the life of an application, i.e. data does not get refreshed and is available all the time. The main objective of a service is to organize and share business logic, models, or data and functions with different components of an Angular application.

The separation of concerns is the main reason why Angular services came into existence. An Angular service is a stateless object and provides some very useful functions.

Source: dzone.com

Q8: What is interpolation? ⭐⭐

Answer: Interpolation is a special syntax that Angular converts into property binding. It’s a convenient alternative to property binding. It is represented by double curly braces({{}}). The text between the braces is often the name of a component property. Angular replaces that name with the string value of the corresponding component property. Let's take an example,

    <h3>
      {{title}}
      <img src="{{url}}" style="height:30px">
    </h3>

In the example above, Angular evaluates the title and url properties and fills in the blanks, first displaying a bold application title and then a URL.

Source: github.com/sudheerj

Q9: What is a bootstrapping module? ⭐⭐

Answer: Every application has at least one Angular module, the root module that you bootstrap to launch the application is called as bootstrapping module. It is commonly known as AppModule. The default structure of AppModule generated by AngularCLI would be as follows,

    /* JavaScript imports */
    import { BrowserModule } from '@angular/platform-browser';
    import { NgModule } from '@angular/core';
    import { FormsModule } from '@angular/forms';
    import { HttpClientModule } from '@angular/common/http';

    import { AppComponent } from './app.component';

    /* the AppModule class with the @NgModule decorator */
    @NgModule({
      declarations: [
        AppComponent
      ],
      imports: [
        BrowserModule,
        FormsModule,
        HttpClientModule
      ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule { }

Source: github.com/sudheerj

Q10: What is the equivalent of ngShow and ngHide in Angular? ⭐⭐

Answer: Just bind to the hidden property

Source: stackoverflow.com

Q11: What are observables? ⭐⭐

Answer: Observables are declarative which provide support for passing messages between publishers and subscribers in your application. They are mainly used for event handling, asynchronous programming, and handling multiple values. In this case, you define a function for publishing values, but it is not executed until a consumer subscribes to it. The subscribed consumer then receives notifications until the function completes, or until they unsubscribe.

Source: github.com/sudheerj

Q12: What is an observable? ⭐⭐

Answer: An Observable is a unique Object similar to a Promise that can help manage async code. Observables are not part of the JavaScript language so we need to rely on a popular Observable library called RxJS. The observables are created using new keyword. Let see the simple example of observable,

    import { Observable } from 'rxjs';

    const observable = new Observable(observer => {
      setTimeout(() => {
        observer.next('Hello from a Observable!');
      }, 2000);
    });`

Source: github.com/sudheerj

Q13: What is a component? Why would you use it? ⭐⭐

Answer: Components are the most basic building block of an UI in an Angular application. An Angular application is a tree of Angular components. Angular components are a subset of directives. Unlike directives, components always have a template and only one component can be instantiated per an element in a template.

A component must belong to an NgModule in order for it to be usable by another component or application. To specify that a component is a member of an NgModule, you should list it in the declarations field of that NgModule.

@Component({selector: 'greet', template: 'Hello {{name}}!'})
class Greet {
  name: string = 'World';
}

Source: angular.io

Q14: What is an observer? ⭐⭐

Answer: Observer is an interface for a consumer of push-based notifications delivered by an Observable. It has below structure,

    interface Observer<T> {
      closed?: boolean;
      next: (value: T) => void;
      error: (err: any) => void;
      complete: () => void;
    }

A handler that implements the Observer interface for receiving observable notifications will be passed as a parameter for observable as below,

    myObservable.subscribe(myObserver);

Note: If you don't supply a handler for a notification type, the observer ignores notifications of that type.

Source: github.com/sudheerj

Q15: What is the purpose of base href tag? ⭐⭐

Answer: The routing application should add element to the index.html as the first child in the tag inorder to indicate how to compose navigation URLs. If app folder is the application root then you can set the href value as below

    <base href="/">

Source: github.com/sudheerj

Q16: You have an HTML response I want to display. How do I do that? ⭐⭐

Answer: The correct syntax is the following:

<div [innerHTML]="theHtmlString"></div>

Working in 5.2.6

Source: medium.com

Q17: What is the difference between Structural and Attribute directives in Angular? ⭐⭐

Answer:

  • Structural directives are used to alter the DOM layout by removing and adding DOM elements. It is far better in changing the structure of the view. Examples of Structural directives are NgFor and Nglf.

  • Attribute Directives These are being used as characteristics of elements. For example, a directive such as built-in NgStyle in the template Syntax guide is an attribute directive.

Source: onlineinterviewquestions.com

Q18: How can I select an element in a component template? ⭐⭐

Answer: You can get a handle to the DOM element via ElementRef by injecting it into your component's constructor:

constructor(myElement: ElementRef) { ... }

Source: medium.com

Q19: What is the equivalent of "ngShow" and "ngHide" in Angular? ⭐⭐

Answer: Just bind to the hidden property:

[hidden]="!myVar"

Source: medium.com

Q20: What is the difference between *ngIf vs [hidden]? ⭐⭐

Answer: *ngIf effectively removes its content from the DOM while [hidden] modifies the display property and only instructs the browser to not show the content but the DOM still contains it.

Source: medium.com

Q21: What are the differences between AngularJS (angular 1.x) and Angular (Angular 2.x and beyond)? ⭐⭐

Answer: Angular and AngularJS is basically a different framework with the same name.

Angular is more ready for the current state of web standards and the future state of the web (ES6\7, immutiablity, components, shadow DOM, service workers, mobile compatibilty, modules, typescript and so on and so on... )

Angular killed many main features in AngularJS like - controllers, $scope, directives (replaced with @component annotations), the module definition, and much more, even simple things like ng-repeat has not left the same as it was.

Also:

  1. They added an angular cli.
  2. Your angular code is written in ES6 Typescript and it compiles at runtime to Javascript in the browser.
  3. You bind to your HTML similarly like how you would if in an Angular 1 directive. So variable like $scope and $rootScope have been deprecated.

Source: stackoverflow.com

Q22: What are some differences between Angular 2 and 4? ⭐⭐

Answer: Just to name a few:

  • Improvements in AOT,
  • allowing the "else" clause in ngIf,
  • support for TypeScript 2.1
  • breaking out the animations package

Source: github.com/WebPredict

Q23: What is the difference between "@Component" and "@Directive" in Angular? ⭐⭐

Answer:

  • Directives add behaviour to an existing DOM element or an existing component instance.
  • A component, rather than adding/modifying behaviour, actually creates its own view (hierarchy of DOM elements) with attached behaviour.

Write a component when you want to create a reusable set of DOM elements of UI with custom behaviour. Write a directive when you want to write reusable behaviour to supplement existing DOM elements.

Source: medium.com

Q24: How would you protect a component being activated through the router? ⭐⭐

Answer: The Angular router ships with a feature called guards. These provide us with ways to control the flow of our application. We can stop a user from visitng certain routes, stop a user from leaving routes, and more. The overall process for protecting Angular routes:

  • Create a guard service: ng g guard auth
  • Create canActivate() or canActivateChild() methods
  • Use the guard when defining routes
// import the newly created AuthGuard
const routes: Routes = [
  {
    path: 'account',
    canActivate: [AuthGuard]
  }
];

Some other available guards:

  • CanActivate: Check if a user has access
  • CanActivateChild: Check if a user has access to any of the child routes
  • CanDeactivate: Can a user leave a page? For example, they haven't finished editing a post
  • Resolve: Grab data before the route is instantiated
  • CanLoad: Check to see if we can load the routes assets

Source: scotch.io

Q25: What does this line do? ⭐⭐

Details:

@HostBinding('[class.valid]') isValid;

Answer: @HostBinding lets you set properties on the element or component that hosts the directive.

The code applies the css class valid to whatever is using this directive conditionally based on the value of isValid.

Source: alligator.io

Q26: What is router outlet? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: What is difference between "declarations", "providers" and "import" in NgModule? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: What's new in Angular 6 and why shall we upgrade to it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: Why would you use a spy in a test? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What is TestBed? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is Protractor? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What is the point of calling "renderer.invokeElementMethod(rendererEl, methodName)"? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: How would you control size of an element on resize of the window in a component? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is AOT? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: What is Redux and how does it relate to an Angular app? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: What is the use of codelyzer? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: How to inject base href? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: How to bundle an Angular app for production? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: When would you use eager module loading? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: What are the Core Dependencies of Angular 7? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: Why Incremental DOM Has Low Memory Footprint? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What are the ways to control AOT compilation? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What is Angular Universal? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: Do I need a Routing Module always? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What is the purpose of Wildcard route? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What is activated route? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: What is router state? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: What is Reactive Programming and how to use one with Angular? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: Why should ngOnInit be used, if we already have a constructor? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: What are dynamic components? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: Explain how custom elements works internally? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: What are custom elements? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: What are the utility functions provided by RxJS? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: How do you perform error handling in observables? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: What is multicasting? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: What is the difference between promise and observable? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: Can you explain the difference between Promise and Observable in Angular? In what scenario can we use each case? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What is subscribing? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q59: How do you perform Error handling for HttpClient? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q60: What is the difference between @Component and @Directive in Angular? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q61: Explain the difference between "Constructor" and "ngOnInit" ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q62: What is a parameterized pipe? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q63: How do you categorize data binding types? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q64: Explain the difference between Promise and Observable in Angular? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q65: What happens if you use script tag inside template? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q66: What is the option to choose between inline and external template file? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q67: What's new in Angular 8? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q68: Angular 8: What is Bazel? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q69: Angular 8: What is Angular Ivy? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q70: Angular 8: Explain Lazy Loading in Angular 8? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q71: Name some security best practices in Angular ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q72: How to set headers for every request in Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q73: What is ngUpgrage? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q74: What are the mapping rules between Angular component and custom element? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q75: Why would you use renderer methods instead of using native element methods? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q76: Angular 9: What are some new features in Angular 9? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q77: Do I need to bootstrap custom elements? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q78: How do you create application to use scss? What changed for Angular 6? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q79: Name and explain some Angular Module Loading examples ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q80: What does "detectChanges" do in Angular jasmine tests? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q81: Why would you use lazy loading modules in Angular app? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q82: When does a lazy loaded module is loaded? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q83: What are the lifecycle hooks for components and directives? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q84: When should I store the "Subscription" instances and invoke unsubscribe() during the NgOnDestroy life cycle and when can I simply ignore them? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q85: What would be a good use for NgZone service? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q86: What is Ivy Renderer? Is it supported by Angular 7? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q87: What is incremental DOM? How is it different from virtual DOM? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q88: What is the difference between pure and impure pipe? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q89: What is Zone in Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q90: How to detect a route change in Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q91: What are the advantages with AOT? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q92: Could I use jQuery with Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q93: How would you insert an embedded view from a prepared TemplateRef? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Read answer on 👉 FullStack.Cafe

Q95: What does a just-in-time (JIT) compiler do (in general)? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q96: Angular 8: Why we should use Bazel for Angular builds? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q97: What is the need for SystemJS in Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q98: What is Reactive programming and how does it relate to Angular? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q99: Explain the purpose of Service Workers in Angular ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q100: Why do we need compilation process? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q101: Angular 9: How Would You Compare View Engine vs Ivy? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q102: What is the Angular equivalent to an AngularJS "$watch"? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q103: Why Incremental DOM is Tree Shakable? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q104: What is the difference between BehaviorSubject vs Observable? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q105: What's new in Angular 7? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q106: Name some differences between SystemJS vs WebPack? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q107: What are observable creation functions? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q108: Is there no equivalent to $scope.emit() or $scope.broadcast() in Angular? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q109: What is the default compilation for Angular 5? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q110: Could you provide some particular examples of using ngZone? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q111: Why angular uses url segment? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q112: When to use query parameters versus matrix parameters? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q113: Angular 8: How does Ivy affect the (Re)build time? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q114: Angular 8: What are some changes in Location module? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q115: Do you know how you can run angularJS and angular side by side? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q116: How would you extract webpack config from angular cli project? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q117: Just-in-Time (JiT) vs Ahead-of-Time (AoT) compilation. Explain the difference. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q118: Angular 9: What is Locality principle for Ivy? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q119: Angular 9: Explain improvements in Tree-Shaking ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q120: Why did the Google team go with incremental DOM instead of virtual DOM? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] AngularJS Interview Questions

Q1: Why to use AngularJS? ⭐

Answer: There are following reasons to choose AngularJS as a web development framework:

  1. It is based on MVC pattern which helps you to organize your web apps or web application properly.
  2. It extends HTML by attaching directives to your HTML markup with new attributes or tags and expressions in order to define very powerful templates.
  3. It also allows you to create your own directives, making reusable components that fill your needs and abstract your DOM manipulation logic.
  4. It supports two-way data binding i.e. connects your HTML (views) to your JavaScript objects (models) seamlessly. In this way any change in model will update the view and vice versa without any DOM manipulation or event handling.
  5. It encapsulates the behavior of your application in controllers which are instantiated with the help of dependency injection.
  6. It supports services that can be injected into your controllers to use some utility code to fullfil your need. For example, it provides $http service to communicate with REST service.
  7. It supports dependency injection which helps you to test your angular app code very easily.
  8. Also, AngularJS is mature community to help you. It has widely support over the internet.

Source: github.com/krosti

Q2: What is the difference between "ng-show"/"ng-hide" and "ng-if" directives? ⭐

Answer: ng-show/ng-hide will always insert the DOM element, but will display/hide it based on the condition. ng-if will not insert the DOM element until the condition is not fulfilled.

ng-if is better when we needed the DOM to be loaded conditionally, as it will help load page bit faster compared to ng-show/ng-hide.

We only need to keep in mind what the difference between these directives is, so deciding which one to use totally depends on the task requirements.

Source: codementor.io

Q3: Does AngularJS has dependency on jQuery? ⭐⭐

Answer: AngularJS has no dependency on jQuery library. But it can be used with jQuery library.

Source: _ github.com/krosti_

Q4: How do you hide an HTML element via a button click in AngularJS? ⭐⭐

Answer: This can be done by using the ng-hide directive in conjunction with a controller to hide an HTML element on button click.

<div ng-controller="MyCtrl">
    <button ng-click="hide()">Hide element</button>
    <p ng-hide="isHide">Hello World!</p>
</div>
function MyCtrl($scope) {
	$scope.isHide = false;
	$scope.hide = function () {
		$scope.isHide = true;
	};
}

Source: codementor.io

Q5: What is a singleton pattern and where we can find it in AngularJS? ⭐⭐

Answer: Is a great pattern that restricts the use of a class more than once. We can find singleton pattern in angular in dependency injection and in the services.

In a sense, if the you do 2 times new Object() without this pattern, the you will be alocating 2 pieces of memory for the same object. With singleton pattern, if the object exists, it'll be reused.

Source: codementor.io

Q6: What are the AngularJS features? ⭐⭐

Answer: The features of AngularJS are listed below:

  1. Modules
  2. Directives
  3. Templates
  4. Scope
  5. Expressions
  6. Data Binding
  7. MVC (Model, View & Controller)
  8. Validations
  9. Filters
  10. Services
  11. Routing
  12. Dependency Injection
  13. Testing

Source: github.com/krosti

Q7: When dependent modules of a module are loaded? ⭐⭐

Answer: A module might have dependencies on other modules. The dependent modules are loaded by angular before the requiring module is loaded.

In other words the configuration blocks of the dependent modules execute before the configuration blocks of the requiring module. The same is true for the run blocks. Each module can only be loaded once, even if multiple other modules require it.

Source: github.com/krosti

Q8: What is Angular’s prefixes $ and $$? ⭐⭐

Answer: To prevent accidental name collisions with your code, Angular prefixes names of public objects with $ and names of private objects with $$. So, do not use the $ or $$ prefix in your code.

Source: github.com/krosti

Q9: What are Filters in AngularJS? ⭐⭐

Answer: Filters are used to format data before displaying it to the user. They can be used in view templates, controllers, services and directives. There are some built-in filters provided by AngularJS like as Currency, Date, Number, OrderBy, Lowercase, Uppercase etc. You can also create your own filters.

Filter Syntax:

{{ expression | filter}}

Source: github.com/krosti

Q10: What are Directives in AngularJS? ⭐⭐

Answer: AngularJS directives are a combination of AngularJS template markups (HTML attributes or elements, or CSS classes) and supporting JavaScript code. The JavaScript directive code defines the template data and behaviors of the HTML elements.

AngularJS directives are used to extend the HTML vocabulary i.e. they decorate html elements with new behaviors and help to manipulate html elements attributes in interesting way.

There are some built-in directives provided by AngularJS like as ng-app, ng-controller, ng-repeat, ng-model etc.

Source: github.com/krosti

Q11: What are Directives? ⭐⭐

Answer: Directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) that tell AngularJS’s HTML compiler ($compile) to attach a specified behavior to that DOM element (e.g. via event listeners), or even to transform the DOM element and its children.

Angular comes with a set of these directives built-in, like ngBind, ngModel, and ngClass. Much like you create controllers and services, you can create your own directives for Angular to use. When Angular bootstraps your application, the HTML compiler traverses the DOM matching directives against the DOM elements.

Source: codementor.io

Q12: Explain what is a "$scope" in AngularJS ⭐⭐

Answer: Scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hierarchical structure which mimic the DOM structure of the application. Scopes can watch expressions and propagate events. Scopes are objects that refer to the model. They act as glue between controller and view.

Source: codementor.io

Q13: What directive would you use to hide elements from the HTML DOM by removing them from that DOM not changing their styling? ⭐⭐

Answer: The ngIf Directive, when applied to an element, will remove that element from the DOM if it’s condition is false.

Source: codementor.io

Q14: What is the difference between one-way binding and two-way binding? ⭐⭐

Answer:

  • One way binding implies that the scope variable in the html will be set to the first value its model is bound to (i.e. assigned to)
  • Two way binding implies that the scope variable will change it’s value everytime its model is assigned to a different value

Source: codementor.io

Q15: What is auto bootstrap process in AngularJS? ⭐⭐

Answer: Angular initializes automatically upon DOMContentLoaded event or when the angular.js script is downloaded to the browser and the document.readyState is set to complete. At this point AngularJS looks for the ng-app directive which is the root of angular app compilation and tells about AngularJS part within DOM. When the ng-app directive is found then Angular will:

  1. Load the module associated with the directive.
  2. Create the application injector.
  3. Compile the DOM starting from the ng-app root element. This process is called auto-bootstrapping.
<html>
<body ng-app="myApp">
<div ng-controller="Ctrl"> Hello {{msg}}!
</div>
    <script src="lib/angular.js"></script>
    <script>
var app = angular.module('myApp', []); app.controller('Ctrl', function ($scope) {
              $scope.msg = 'World';
          });
    </script>
</body>
</html>

Source: github.com/krosti

Q16: How would you specify that a scope variable should have one-time binding only? ⭐⭐

Answer: By using “::” in front of it.

Source: codementor.io

Q17: What is scope in AngularJS? ⭐⭐

Answer: Scope is a JavaScript object that refers to the application model. It acts as a context for evaluating angular expressions. Basically, it acts as glue between controller and view.

Scopes are hierarchical in nature and follow the DOM structure of your AngularJS app. AngularJS has two scope objects: $rootScope and $scope.

Source: github.com/krosti

Q18: How do you disable a button depending on a checkbox’s state? ⭐⭐

Answer: We can use the ng-disabled directive and bind its condition to the checkbox’s state.

<body ng-app>
    <label>
        <input type="checkbox" ng-model="checked" />Disable Button
    </label>
    <button ng-disabled="checked">Select me</button>
</body>

Source: codementor.io

Q19: What is scope hierarchy? ⭐⭐

Answer: The $scope object used by views in AngularJS are organized into a hierarchy. There is a root scope, and the $rootScope can has one or more child scopes. Each controller has its own $scope (which is a child of the $rootScope), so whatever variables you create on $scope within controller, these variables are accessible by the view based on this controller.

For example, suppose you have two controllers: ParentController and ChildController as given below:

<html>
  <head>
    <script src="lib/angular.js"></script>
    <script>
      var app = angular.module('ScopeChain', []); app.controller("parentController", function ($scope) {
      	$scope.managerName = 'Shailendra Chauhan';
      	$scope.$parent.companyName = 'Dot Net Tricks'; //attached to $rootScope
      });
      app.controller("childController", function ($scope, $controller) {
                 $scope.teamLeadName = 'Deepak Chauhan';
             });
         
    </script>
  </head>
  <body ng-app="ScopeChain">
    <div ng-controller="parentController ">
      <table style="border:2px solid #e37112">
        <caption>Parent Controller</caption>
        <tr>
          <td>Manager Name</td>
          <td>{{managerName}}</td>
        </tr>
        <tr>
          <td>Company Name</td>
          <td>{{companyName}}</td>
        </tr>
        <tr>
          <td>
            <table ng-controller="childController" style="border:2px solid #428bca">
              <caption>Child Controller</caption>
              <tr>
                <td>Team Lead Name</td>
                <td>{{ teamLeadName }}</td>
              </tr>
              <tr>
                <td>Reporting To</td>
                <td>{{managerName}}</td>
              </tr>
              <tr>
                <td>Company Name</td>
                <td>{{companyName}}</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </div>
  </body>
</html>

Source: github.com/krosti

Q20: How do you share data between controllers? ⭐⭐

Answer: Create an AngularJS service that will hold the data and inject it inside of the controllers.

Using a service is the cleanest, fastest and easiest way to test. However, there are couple of other ways to implement data sharing between controllers, like:

– Using events
– Using $parent, nextSibling, controllerAs, etc. to directly access the controllers
– Using the $rootScope to add the data on (not a good practice)

The methods above are all correct, but are not the most efficient and easy to test.

Source: codementor.io

Q21: What are the basic steps to unit test an AngularJS filter? ⭐⭐

Answer:

  • Inject the module that contains the filter.
  • Provide any mocks that the filter relies on.
  • Get an instance of the filter using $filter('yourFilterName').
  • Assert your expectations.

Source: codementor.io

Q22: What are the basic steps to unit test an AngularJS filter? ⭐⭐

Answer:

  1. Inject the module that contains the filter.
  2. Provide any mocks that the filter relies on.
  3. Get an instance of the filter using $filter('yourFilterName').
  4. Assert your expectations.

Source: codementor.io

Q23: What are the advantage of AngularJS? ⭐⭐

Answer: There are following advantages of AngularJS:

  1. Data Binding - AngularJS provides a powerful data binding mechanism to bind data to HTML elements by using scope.
  2. Customize & Extensible - AngularJS is customized and extensible as per you requirement. You can create your own custom components like directives, services etc.
  3. Code Reusability - AngularJS allows you to write code which can be reused. For example custom directive which you can reuse.
  4. Support – AngularJS is mature community to help you. It has widely support over the internet. Also, AngularJS is supported by Google which gives it an advantage.
  5. Compatibility - AngularJS is based on JavaScript which makes it easier to integrate with any other JavaScript library and runnable on browsers like IE, Opera, FF, Safari, Chrome etc.
  6. Testing - AngularJS is designed to be testable so that you can test your AngularJS app components as easy as possible. It has dependency injection at its core, which makes it easy to test.

Source: github.com/krosti

Q24: Explain what is services in AngularJS ⭐⭐

Answer: In AngularJS services are the singleton objects or functions that are used for carrying out specific tasks. It holds some business logic and these function can be called as controllers, directive, filters and so on.

Source: github.com/krosti

Q25: Explain what is directive and mention what are the different types of Directive? ⭐⭐

Answer: During compilation process when specific HTML constructs are encountered a behaviour or function is triggered, this function is referred as directive. It is executed when the compiler encounters it in the DOM.

Different types of directives are:

  • Element directives
  • Attribute directives
  • CSS class directives
  • Comment directives

Source: guru99.com

Q26: How would you validate a text input field for a twitter username, including the @ symbol? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Read answer on 👉 FullStack.Cafe

Q28: How would you react on model changes to trigger some further action? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: What is jQLite/jQuery Lite? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What should be the maximum number of concurrent “watches”? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is a digest cycle in AngularJS? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: Where should we implement the DOM manipulation in AngularJS? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: Is it a good or bad practice to use AngularJS together with jQuery? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: If you were to migrate from Angular 1.4 to Angular 1.5, what is the main thing that would need refactoring? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: Explain what Angular JS routes does? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: Explain what is Angular Expression? Explain what is key difference between angular expressions and JavaScript expressions? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: What is restrict option in directive? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: How would you make an Angular service return a promise? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: What is the role of services in AngularJS and name any services made available by default? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: How do you reset a "$timeout", "$interval()", and disable a "$watch()"? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What are different ways to invoke a directive? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What is the role of ng-app, ng-init and ng-model directives? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: How to access jQLite? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: What is an interceptor? What are common uses of it? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What is manual bootstrap process in AngularJS? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What makes the angular.copy() method so powerful? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: Explain what is linking function and type of linking function? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Explain what is injector? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: When creating a directive, it can be used in several different ways in the view. Which ways for using a directive do you know? How do you define the way your directive will be used? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: When should you use an attribute versus an element? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: Explain what is DI (Dependency Injection ) and how an object or function can get a hold of its dependencies? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: Explain how $scope.$apply() works? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: How AngularJS is compiled? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: What is DDO (Directive Definition Object)? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: Can you define multiple restrict options on a directive? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: What is the difference between $scope and scope? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: How would you implement application-wide exception handling in your Angular app? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What is $scope and $rootScope? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q59: How would you programatically change or adapt the template of a directive before it is executed and transformed? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q60: How AngularJS compilation is different from other JavaScript frameworks? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q61: How Directives are compiled? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q62: What are Compile, Pre and Post linking in AngularJS? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Azure Interview Questions

Q1: What are the benefits of severless applications? ⭐

Answer:

  • Avoid managing servers
  • Flexible scaling by demand
  • Pay for time and resources it takes to execute your code

Q2: What is Azure Cloud Service? ⭐

Answer: By creating a cloud service, you can deploy a multi-tier web application in Azure, defining multiple roles to distribute processing and allow flexible scaling of your application. A cloud service consists of one or more web roles and/or worker roles, each with its own application files and configuration. Azure Websites and Virtual Machines also enable web applications on Azure. The main advantage of cloud services is the ability to support more complex multi-tier architectures

Source: mindmajix.com

Q3: What is a web role? ⭐

Answer: A web role provides a dedicated Internet Information Services (IIS) web-server used for hosting front-end web applications.

Source: mindmajix.com

Q4: What is Azure Functions? ⭐

Answer: Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. We can write just the code we need for the problem at hand, without worrying about a whole application or the infrastructure to run it and use language of our choice such as C#, F#, Node.js, Java, or PHP. Azure Functions lets us develop serverless applications on Microsoft Azure.

Q5: What is serverless computing? ⭐

Answer: Serverless computing is the abstraction of servers, infrastructure, and operating systems. When you build serverless apps you don’t need to provision and manage any servers, so you can take your mind off infrastructure concerns. Serverless computing is driven by the reaction to events and triggers happening in near-real-time—in the cloud.

As a fully managed service, server management and capacity planning are invisible to the developer and billing is based just on resources consumed or the actual time your code is running.

Q6: Is Azure Table Storage Nosql? ⭐⭐

Answer: Azure Table storage is a service that stores structured NoSQL data in the cloud, providing a key/attribute store with a schemaless design.

Source: docs.microsoft.com

Q7: What is Kudu? ⭐⭐

Answer: Every Azure App Service web application includes a "hidden" service site called Kudu.

Kudu Console for example is a debugging service for Azure platform which allows you to explore your web app and surf the bugs present on it, like deployment logs, memory dump, and uploading files to your web app, and adding JSON endpoints to your web apps, etc.

Q8: What is a role instance? ⭐⭐

Answer: A role instance is a virtual machine on which the application code and role configuration run. A role can have multiple instances, defined in the service configuration file.

Source: mindmajix.com

Q9: What is a guest operating system? ⭐⭐

Answer: The guest operating system for a cloud service is the operating system installed on the role instances (virtual machines) on which your application code runs.

Source: mindmajix.com

Q10: What is Azure Blob Storage? ⭐⭐

Answer: Azure Blob storage is Microsoft's object storage solution for the cloud. Blob storage is optimized for storing massive amounts of unstructured data, such as text or binary data. Azure Storage offers three types of blobs:

  • Block blobs store text and binary data, up to about 4.7 TB. Block blobs are made up of blocks of data that can be managed individually.
  • Append blobs are made up of blocks like block blobs, but are optimized for append operations. Append blobs are ideal for scenarios such as logging data from virtual machines.
  • Page blobs store random access files up to 8 TB in size. Page blobs store the VHD files that back VMs.

Source: docs.microsoft.com

Q11: How to include external dll into Azure Function? ⭐⭐

Answer:

  • Add the assembly to the BIN directory using KUDU
  • Include the assembly and code the Azure Function to use it
  • Add the using declaration so that the methods within the DLL can be accessed.
#r "D:\home\site\wwwroot\GreetingsAssemblyReference\bin\benjamin.dll"

using benjamin;

Q12: What is an Azure subscription? ⭐⭐

Answer: A Windows Azure subscription grants you access to Windows Azure services and to the Windows Azure Platform Management Portal. A Windows Azure subscription has two aspects:

  • The Windows Azure account, through which resource usage is reported
  • Services are billed.

Source: blogs.msdn.microsoft.com

Q13: What is Azure ARM? ⭐⭐

Answer: The Azure Resource Manager (ARM) is the service used to provision resources in your Azure subscription. It was first announced at Build 2014 when the new Azure portal ( portal.azure.com) was announced and provides a new set of API's that are used to provision resources. The ARM is:

  • Template-driven – Using templates to deploy all resources.
  • Declarative – You declare the resources you want to have instead of imperative where you need to make rules.
  • Idempotent – You can deploy the template over and over again without affecting the current state of resources.
  • Multi-service – All services can be deployed using Azure Resource Manager, Website, Storage, VMs etc.
  • Multi region - You can choose in which region you would like to deploy the resources.
  • Extensible – Azure Resource Manager is extensible with more resource providers and thus resources.

Source: azurestack.blog

Q14: Explain the Azure ARM Templates ⭐⭐

Answer: An Azure Resource Template is a JSON file used to deploy resources with Azure Resource Manager. It defines:

  • Parameters
  • Variables
  • Resources - the actual resources that you are going to deploy or update
  • Outputs

Source: onlinetech.com

Q15: What is a cloud service role? ⭐⭐

Answer: A cloud service role is comprised of application files and a configuration. A cloud service can have two types of roles:

  • web role
  • worker role

Source: mindmajix.com

Q16: What is Azure Redis Cache? ⭐⭐

Answer: Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. Azure Redis Cache is based on the popular open-source Redis cache. It gives you access to a secure, dedicated Redis cache, managed by Microsoft, and accessible from any application within Azure. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.

Source: quora.com

Q17: What is Azure Service Fabric? ⭐⭐

Answer: Azure Service Fabric is a distributed systems platform that makes it easy to package, deploy, and manage scalable and reliable micro-services. Service Fabric also addresses the significant challenges in developing and managing cloud applications. Developers and administrators can avoid complex infrastructure problems and focus on implementing mission-critical, demanding workloads that are scalable, reliable, and manageable. Service Fabric represents the next-generation middleware platform for building and managing these enterprise-class, tier-1, cloud-scale applications.

Source: quora.com

Q18: How can I use applications with Azure AD that I’m using on-premises? ⭐⭐

Answer: Azure AD gives you an easy and secure way to connect to the web applications you choose. You can access these applications in the same way you access your SaaS apps in Azure AD, no need for a VPN to change your network infrastructure.

Source: quora.com

Q19: What is Azure Resource Group? ⭐⭐

Answer: Resource groups (RG) in Azure is an approach to group a collection of assets in logical groups for easy or even automatic provisioning, monitoring, and access control, and for more effective management of their costs. The underlying technology that powers resource groups is the Azure Resource Manager (ARM).

Source: onlinetech.com

Q20: What Is Azure Key Vault? ⭐⭐

Answer: Key Vault help you safeguard cryptographic keys and other secrets used by your applications whenever they are On-Premise or in the cloud. More and more services on Azure are now integrating Azure Key Vault as their secret/key source for things like deployments, data or even disk encryption.

Source: codeisahighway.com

Q21: What is a Blob Container? ⭐⭐

Answer: A container organizes a set of blobs, similar to a folder in a file system. All blobs reside within a container. A storage account can contain an unlimited number of containers, and a container can store an unlimited number of blobs.

Source: docs.microsoft.com

Q22: How can you stop a VM using Power Shell? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q23: How can you retrieve the state of a particular VM? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q24: How can one create a VM in Azure CLI? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q25: What do you know about Azure WebJobs? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q26: What is Azure MFA? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q27: How can one create a Virtual Machine in Powershell? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q28: How much storage can I use with a virtual machine? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q29: Is it possible to add an existing VM to an availability set? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q30: What is a worker role? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q31: What is Azure VPN? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q32: What is the difference between Service Bus Queues and Storage Queues? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q33: What are the differences between Subscription Administrator and Directory Administrator? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q34: What is a VNet? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q35: What is key vault in Azure? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q36: What are stateful and stateless microservices for Service Fabric? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q37: Do scale sets work with Azure availability sets? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: What are Network Security Groups? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: What are Update Domains? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: What are Fault Domains? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What is an Availability Set? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: What are virtual machine scale sets in Azure? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What is deployment environments? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: What are Cloud Service Roles and why do we use them? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: What is Azure Table Storage? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: What is Azure Resource Manager and why we need to use one? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: What is Azure Search? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: What are Redis databases? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: Is it possible to create a Virtual Machine using Azure Resource Manager in a Virtual Network that was created using classic deployment? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: How to create a new storage account and container using Power Shell? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: What is the meaning of application partitions? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: What is the difference between “price,” “software price,” and “total price” in the cost structure for Virtual Machine offers in the Azure Marketplace? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: What is Azure VNET? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: How to create a Network Security Group and a Network Security Group Rule? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: How are Azure Marketplace subscriptions priced? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: What are special Azure Regions? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: Explain Azure NSG ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What VPN types are supported by Azure? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Behavioral Interview Questions

Q1: How do you spend your time outside work? ⭐

Answer:

Q2: Why are you interested in this opportunity? ⭐

Answer:

Q3: Why do you want to work for X company? ⭐

Answer: The interviewer is looking for similar things whether asking about company or position. The hiring manager wants to:

  • Learn about your career goals and how this position fits into your plan
  • Make sure that you are sincerely interested in the job and will be motivated to perform if hired
  • Find out what you know about the company, industry, position (and if you took the time to research)
  • Understand your priorities and preferences — which aspects of the company and/or job are appealing to you and why?

Source: github.com/yangshun/tech-interview-handbook

Q4: Why do you want to leave your current/last company? ⭐

Answer: Here are some things your interviewer is likely looking for:

  • Did you leave for a good reason?
  • Did you leave voluntarily?
  • Did you leave on good terms?
  • What are your work values?

Source: biginterview.com

Q5: A hammer and a nail cost $1.10 together, and the hammer costs one dollar more than the nail. How much does the nail cost? ⭐

Answer:

Source: startups.co

Q6: What are you looking for in your next role? ⭐

Answer:

Source: github.com/yangshun/tech-interview-handbook

Q7: How large was the last team that you worked on? ⭐

Answer:

Q8: Do you plan to advance your education while working here? ⭐

Answer:

Q9: What are your hobbies? ⭐

Answer:

Q10: Tell me the story of how you became who you are today and what made you apply to X. ⭐

Answer:

Q11: Why do you think you’re a good fit for this company? ⭐⭐

Answer:

Q12: What’s are your favorite five apps? ⭐⭐

Answer:

Q13: Why do you want to come work at a startup, as opposed to an established company? ⭐⭐

Answer:

Q14: Share one of your trips with us. ⭐⭐

Answer:

Q15: What project are you currently working on? ⭐⭐

Answer:

Q16: Do prefer to work at a single company for a long time or would you rather take a job that suits you at the time? ⭐⭐

Answer:

Q17: Can you give an example of a career goal that you set and how you went about meeting it? ⭐⭐

Answer:

Q18: How quickly can you learn to use a new technology? ⭐⭐

Answer:

Q19: What does "belong anywhere" mean to you? ⭐⭐

Answer:

Q20: Can you list any deal breakers that would deter you from working for an employer? ⭐⭐

Answer:

Q21: Are you more interested in a career that offers great compensation, flexibility or the chance to do something meaningful? ⭐⭐

Answer:

Q22: What are you excited about? ⭐⭐

Answer:

Q23: Why do people resist change? ⭐⭐

Answer:

Source: github.com

Q24: Can you tell me what part of your resume you are most proud of? ⭐⭐

Answer:

Q25: Tell me about your last project - what worked and what didn’t? ⭐⭐

Answer:

Q26: What would your previous boss say your biggest strength was? ⭐⭐

Answer:

Q27: How do you stay up to date with the latest technologies? ⭐⭐

Answer:

Q28: What is the hardest technical problem you have run into? ⭐⭐

Answer:

Q29: What have you built as your side project? ⭐⭐

Answer:

Q30: If someone has a different viewpoint to do a project like different programming language, how would handle this situation? ⭐⭐

Answer:

Q31: What are your personal goals? ⭐⭐

Answer:

Q32: What was the most fun thing you did recently? ⭐⭐

Answer:

Q33: How do you deal with difficult coworkers? Think about specific instances where you resolved conflicts. ⭐⭐

Answer:

Q34: State an experience about how you solved a technical problem. Be specific about the diagnosis and process. ⭐⭐

Answer:

Q35: What is your biggest strength and area of growth? ⭐⭐

Answer:

Q36: Have you worked in a distributed team before? What challenges did you face? ⭐⭐

Answer:

Q37: What’s the most difficult part of being a member of a team for you? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q38: Tell me about a time your work responsibilities got a little overwhelming. What did you do? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q39: Where do you want to be in five years? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q40: Tell me about a time in which you had a conflict and needed to influence somebody else. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q41: What can you actually do for us? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q42: How did you win over the difficult employees? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q43: What are your three strengths and three weaknesses? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q44: What does it mean to be a "Professional Developer"? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q45: Would you prefer working on Green Field or Brown Field projects? Why? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q46: Describe company X to your grandmother. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q47: Tell me a time when you predicted something. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q48: Tell me a situation where you would have done something differently from what you actually did. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q49: In my professional experience have you worked on something without getting approval from your manager? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q50: Explain me your toughest project and the working architecture. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q51: What makes good code good? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q52: If you were to open your own business in the future, what kind of business will you open and why? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q53: Would you rather be good at a lot of things or an expert at one thing? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q54: Tell me something you are learning right now. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q55: Tell me about a challenge you faced recently in your role. How did you tackle it? What was the outcome? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q56: What does your best day of work look like? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q57: Tell me about a time when you had a conflict with a co-worker. ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q58: What is the best gift you have ever given or received? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q59: What is something that you had to push for in your previous projects? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q60: What’s the best advice you’ve recently received? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q61: Can you explain this gap in your resume? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q62: What is something that you don't want from your last internship/job? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q63: If you had an unlimited budget and you could go somewhere, where would you go? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q64: What large problems in the world would you solve today? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q65: What frustrates you? ⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q66: If you had an unlimited budget and you could buy one gift for one person, what would you buy and who would you buy it for? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q67: Tell me about a time you needed information from someone who wasn't responsive. What did you do? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q68: What is the most exceedingly bad misstep you've made at any point? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q69: What books have inspired you in you live? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q70: What is the biggest mistake that you made in your last position? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q71: What is something new that you can teach your interviewer in a few minutes? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q72: What are some of the new ideas you would implement in this position? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q73: Are you comfortable assuming responsibilities outside your job description? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q74: What is the most challenging aspect of your current project? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q75: Tell me something about yourself and why you'd be a good fit for the position. ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q76: What are some of the best and worst things about your current company? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q77: How do you respond to constructive criticism? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q78: Explain streaming and how you would implement it. ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q79: Apart from technical knowledge, what did you learn during your work at Y? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q80: Talk about a project you are most passionate about, or one where you did your best work. ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q81: What was the most difficult bug that you fixed in the past 6 months? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q82: Imagine it is your first day here at the company. What do you want to work on? What features would you improve on? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q83: How do you deal with a failed deadline? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q84: Do you prefer to work in a team or individually? ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q85: How do you tackle challenges? Name a difficult challenge you faced while working on a project, how you overcame it, and what you learned. ⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q86: What are the most interesting projects you have worked on and how might they be relevant to this company's environment? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q87: What is the craziest thing you’ve ever done? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q88: What is your superpower? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q89: What is something you had to persevere at for multiple months? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q90: Tell me about a time you had to give someone terrible news. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q91: Imagine there's a perfect clone of yourself. Imagine that that clone is your boss. Would you like to work for him/her? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q92: Interview me ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q93: Why are Quora's answers better than Yahoo Answers' ones? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q94: Let's play a game: defend Cobol against modern languages, and try to find as many reasonable arguments as you can. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q95: Where will you be in 10 years? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q96: You are my boss and I'm fired. Inform me. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q97: I want to refactor a legacy system. You want to rewrite it from scratch. Argument. Then, switch our roles. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q98: Your boss asks you to lie to the Company. What's your reaction? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q99: Tell me about a time you had a disagreement with your manager. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q100: What would happen if you put a mirror in a scanner? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q101: As a software engineer you want both to innovate and to be predictable. How those 2 goals can coexist in the same strategy? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q102: Name a situation where you were impressed by a company's customer service. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q103: If you were given $1 million dollars every year for the rest of your life, what would you do? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q104: What risks do you feel you should never take? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q105: What is something 90% of people disagree with you about? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q106: Is developing software an art, a craftsmanship or an engineering endeavour? Your opinion. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q107: Tell me about a time you were uncomfortable and how you dealt with it. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q108: In one word, describe yourself. ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q109: Who do you look to as a role model? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q110: What is the most constructive feedback you have received in your career? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q111: What is broken around you? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

Q112: If you could travel back in time, which advice would you give to your younger self? ⭐⭐⭐⭐⭐

Read answer on 👉 FullStack.Cafe

[⬆] Big Data Interview Questions

Q1: What is the meaning of big data and how is it different? ⭐

Answer: Big data is the term to represent all kind of data generated on the internet. On the internet over hundreds of GB of data is generated only by online activity. Here, online activity implies web activity, blogs, text, video/audio files, images, email, social network activity, and so on. Big data can be referred to data created from all these activities. Data generated online is mostly in unstructured form. Big data will also include transactions data in the database, system log files, along with data generated from smart devices such as sensors, IoT, RFID tags, and so on in addition to online activities.

Big data needs specialized systems and software tools to process all unstructured data. In fact, according to some industry estimates almost 85% of data generated on the internet is unstructured. Usually, relational databases have a structured format and the database is centralized. Hence, with RDBMS processing can be quickly done using a query language such as SQL. On the other hand, big data is very large and is distributed across the internet and hence processing big data will need distributed systems and tools to extract information from them. Big data needs specialized tools such as Hadoop, Hive, or others along with high-performance hardware and networks to process them.

Source: www.educba.com

Q2: What are the characteristics of big data? ⭐

Answer: Big data has three main characteristics: Volume, Variety, and Velocity. Volume characteristic refers to the size of data. Estimates show that over 3 million GB of data is generated every day. Processing this volume of data is not possible in a normal personal computer or in a client-server network in an office environment with limited compute bandwidth and storage capacities. However, cloud services provide solutions to handle big data volumes and process them efficiently using distributed computing architectures.

Variety characteristic refers to the format of big data – structured or unstructured. Traditional RDBMS fits into the structured format. An example of unstructured data format is, a video file format, image files, plain text format, from web document or standard MS Word documents, all have unique formats, and so on. Also to note, RDBMS does not have the capacity to handle unstructured data formats. Further, all this unstructured data must be grouped and consolidated which creates the need for specialized tools and systems. In addition new, data is added each day, or each minute and data grows continuously. Hence big data is more synonymous with variety.

The velocity characteristic refers to the speed at which data is created and the efficiency required to process all the data. For example, Facebook is accessed by over 1.6 billion users in a month. Likewise, there are other social network sites, YouTube, Google services, etc. Such data streams must be processed using queries in real time and must be stored without data loss. Thus, velocity characteristic is important in big data processing. In addition, other characteristics include veracity and value. Veracity will determine the dependability and reliability of data and value is the value derived by organizations from big data processing.

Source: www.educba.com

Q3: Why is big data important for organizations? ⭐

Answer: This is the basic Big Data interview question asked in an interview. Big data is important because by processing big data, organizations can obtain insight information related to:

  • Cost reduction
  • Improvements in products or services
  • To understand customer behaviour and markets
  • Effective decision making
  • To become more competitive

Source: www.educba.com

Q4: Name some tools or systems used in big data processing? ⭐

Answer: Big data processing and analysis can be done using:

  • Hadoop
  • Hive
  • Pig
  • Mahout
  • Flume

Source: www.educba.com

Q5: How can big data support organizations? ⭐⭐

Answer: Big data has the potential to support organizations in many ways. Information extracted from big data can be used in:

  • Better coordination with customers and stakeholders and to resolve problems
  • Improve reporting and analysis for product or service improvements
  • Customize products and services to selected markets
  • Ensure better information sharing
  • Support in management decisions
  • Identify new opportunities, product ideas, and new markets
  • Gather data from multiple sources and archive them for future reference
  • Maintain databases, systems
  • Determine performance metrics
  • Understand interdependencies between business functions
  • Evaluate organizational performance

Source: www.educba.com

Q6: Explain how big data can be used to increase business value? ⭐⭐

Answer: While understanding the need for analyzing big data, such analysis will help businesses to identify their position in markets, and help businesses to differentiate themselves from their competitors. For example, from the results of big data analysis, organizations can understand the need for customized products or can understand potential markets towards increasing revenue and value. Analyzing big data will involve grouping data from various sources to understand trends and information related to business. When big data analysis is done in a planned manner by gathering data from the right sources, organizations can easily generate business value and revenue by almost 5% to 20%. Some examples of such organizations are Amazon, Linkedin, WalMart, and many others.

Source: www.educba.com

Q7: What is big data solution implementation? ⭐⭐

Answer: Big data solutions are implemented at a small scale first, based on a concept as appropriate for the business. From the result, which is a prototype solution, the business solution is scaled further. This is the most popular Big Data interview questions asked in a Big Data interview Some of the best practices followed in the industry include:

  • To have clear project objectives and to collaborate wherever necessary
  • Gathering data from the right sources
  • Ensure the results are not skewed because this can lead to wrong conclusions
  • Be prepared to innovate by considering hybrid approaches in processing by including data from structured and unstructured types, include both internal and external data sources
  • Understand the impact of big data on existing information flows in the organization

Source: www.educba.com

Q8: What are the steps involved in big data solutions? ⭐⭐

Answer: Big data solutions follow three standard steps in its implementation. They are:

Data ingestion: This step will define the approach to extract and consolidate data from multiple sources. For example, data sources can be social network feeds, CRM, RDBMS, etc. The data extracted from different sources is stored in a Hadoop distributed file system (HDFS).

Data storage: This is the second step, the extracted data is stored. This storage can be in HDFS or HBase (NoSQL database).

Process the data: This is the last step. The data stored must be processed. Processing is done using tools such as Spark, Pig, MapReduce, and others.

Source: www.educba.com

[⬆] Blockchain Interview Questions

Q1: What is blockchain? ⭐

Answer: Blockchain is a secure distributed ledger (data structure or database) that maintains a continuously growing list of ordered records, called “blocks”, that are linked using cryptography. Each block contains a cryptographic hash of the previous block, a timestamp, and transaction data.

By design, a blockchain is resistant to modification of the data. It is "an open, distributed ledger that can record transactions between two parties efficiently and in a verifiable and permanent way".

Once recorded, the data in any given block cannot be altered retroactively without alteration of all subsequent blocks, which requires consens

Truncated — view the full README on GitHub.

angular
full-stack
full-stack-development
full-stack-web-developer
interview-practice
interview-preparation
interview-questions
interview-test
react
vuejs

Significant stargazers

Siddhant Khare

1,094 followers · starred May 2021

ky505

15 followers · starred Jul 2025

Deivasigamani Duraisamy

14 followers · starred Apr 2022