Interview QC Questions Part 1 Flashcards
What is a terminal?
A Terminal is a CLI (Command Line Interface) to interact with programs in the computer.
What is Git Bash?
Git Bash is an application for Microsoft Windows environments which provides an emulation layer for a Git command line experience.
Alternative explanation:
Git Bash is a command line interface application that mimics Unix style commands to provide a git command line experience.
What is an operating system?
An operating system is system software that manages computer hardware, software resources, and provides common services for computer programs.
Alternative explanation 1:
An operating system is a program that intermediates between a user and the computer hardware.
Alternative explanation 2:
An operating system interfaces with the application software and BIOS in order to allow applications to interact with computer hardware.
What does BIOS stand for? What is it?
Basic Input/Output System
It is the program a computer’s microprocessor uses to start the computer system after it is powered on.
How do I list all the contents in my current directory? hidden files?
using the list all command: ls -a
How do I change to a subdirectory?
To change to a subdirectory type cd (change directory) followed by a space and the name of the subdirectory. Example:
cd Documents
How do you change to a parent directory?
To change to a parent directory type cd (change directory) followed by a space and two periods. Example:
cd ..
How do I make a new directory? a new file?
To make a new directory you use the mkdir command.
To make a new file you use the echo command, for example:
echo your_text_here > filename.extension
The copy con command can also be used as followed:
copy con filename_with_extension, like the bellow example:
copy con MyFile.txt
What is nano?
Nano is a simple terminal-based text editor. An alternative to Nano is Vim, or Emacs.
What is git? GitHub?
Git is a version control system that lets you manage and keep track of your source code history.
GitHub is a cloud-based hosting service that lets you manage Git repositories.
Steps to upload my code to github-
The following steps are how one could upload code to github:
- Install Git.
- Create a new github repository by providing a repository name, description (optional), and other parameters.
- On the local machine, change to the directory where the source code is located.
- Create a new repository in this directory using git init.
- Add the files to the repository using git add ‘filename’, or git add . (note the period allows one to add all files to the repository rather than a single file).
- Commit the changes so that git can track them using git commit -m “message”. the -m command lets you include a message to the commit.
- Push the changes to the hosted repository on github by telling git to add a remote location. This is done using the remote add command as followed: git remote add origin “https://github.com/yourusername/your-repo-name.git”
Once the steps are complete Git will know about the remote repository and the following push command can be used to simplify the process: git push -u origin master
What is Java?
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.
What is the JDK, JRE, and JVM?
JDK, Java Development Kit, is a software development kit.
JRE, Java Runtime Environment, is a software bundle that allows Java programs to run.
JVM, Java Virtual Machine, is an environment for executing bytecode. The JVM is what allows Java programs to run on any system.
What are some primitive data types
byte , short , int , long , float , double , boolean and char.
What is a class? An object?
A class is a user-defined type that describes what a certain type of object will look like. Example:
public class NameOfClass {
int x = 4;
}
An object is a single instance of a class. Example:
public class NameOfClass ( ) { // This is the class
int x = 4; // This is a variable
public static void main(String[ ] args) { // This is the main method ClassObejct obj = new ClassObject( ); // This is an object System.out.print(obj.x); // This outputs / prints the object } }