Interview Flashcards

1
Q

What is the difference between an abstract class and an interface and when would you use one over the other?

A

The main difference between them is that a class can implement more than one interface but can only inherit from one abstract class. Since C# doesn’t support multiple inheritance, interfaces are used to implement multiple inheritance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Abstract Class

A

An abstract class cannot be instantiated. The purpose of an abstract class is to provide a common definition of a base class that multiple derived classes can share

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Interface

A

An interface contains only the signatures of methods, properties, events or indexers. A class or struct that implements the interface must implement the members of the interface that are specified in the interface definition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe the troubleshooting process you’d follow for a crashing program.

A
  1. Free up RAM by closing other programs.
  2. Restart the software.
  3. Shut down and restart the computer.
  4. Google, Stackoverflow, internet.
  5. Undo any recent hardware and software changes.
  6. Uninstall and reinstall the software.
  7. Look for software patches.
  8. Scan for viruses and maleware.
  9. Check for firewall conflict or IIS conflict.
  10. Boot up in safe mode.
  11. Defragment the hard drive.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you debug a program while it’s being used?

A

Using a debugger or the console window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Some things that you can use the debugger to determine are:

A

The flow of the program (what happens next on a line by line basis)
The creation of variables
The data being stored in each variable
The entering/leaving of functions
The calculations that are made
The entering of IF statements or ELSE statements
The LOOPING of code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe the programming processes at work from the time you type in a website’s URL to when it finishes loading on your screen.

A

When I enter a website’s URL, in the transport layer, it will ask a local DNS what is the IP of the provided URL. We know the IP of the local DNS server by the DHCP protocol, when a node connects to internet and gets an IP address.

After that, a browser will try to establish a TCP connection with a server having the retrieved IP by 3-way handshake. When it establish a TCP connection, the browser will form an HTTP request containing an HTTP header and body.

After the HTTP request is sent and the server responds with an HTTP response, the browser will parse the HTTP response header and body, and will render the website. If the document contains additional assets, the browser will create HTTP requests for the assets and send them like above.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Name some limitations of a web environment vs. a Windows environment

A

Access to the file system. Lag mainly - less responsive experience for most of web than on Windows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Cloud computing/cloud sysstem

A

cloud computing means storing and accessing data and programs over the Internet instead of your computer’s hard drive. The cloud is just a metaphor for the Internet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Cloud systems. What are their pros and cons?

A
Pros:
1. Cost Efficient
2. ALmost unlimited Storage
3. Back up and Recovery are easier
4. Easy Access to Information
5. Quick Deployment
Cons:
1. Prone to Attack
2. Securing information in the cloud
3. Network and Internet connectivity can cause issues
How well did you know this?
1
Not at all
2
3
4
5
Perfectly