Download DevOps - Supporting Software Development Exam Prep 2026 and more Exams Computer Science in PDF only on Docsity!
DevOps - Supporting Software Development
Exam Prep 2026
- What does devel- oping software re- quire?
- In which two ways can the type of file be indicated?
- What is the role of file extensions in different operating systems, particular- ly in Windows?
- What are media container formats used to?
- What are applica- tion container for- mats used to?
- What are archive formats for? - Developing software requires manipulating a wide range of file types
The type of a file can be indicated in two ways:
- By a file extension which appears as part of the name of the file, separated by a. Traditionally these are three letters long but they may be more.
- By a file type indicator within the file which can be read by the computer.
Only Windows requires file extensions, which identify file types.
While Mac OS and Unix don't require them, they're often used for convenience.
Although Windows hides file extensions in File Manager by default, they can be displayed via a setting, and are always visible in the command line.
Media container formats are used to keep parts of a piece of media together - for example, a movie will have video and audio encoded ditterently.
- Application container formats are used to keep parts of a piece of software together - usually the machine code program, plus data files or media it needs to load.
These are not available on all operating systems, and on some that do have them application authors are not forced to use them.
- Archive formats are for direct user use to keep sets files compressed and combined together.
They are often used for backups or for sending files over the internet. You will use them for uploading your coursework!
DevOps - Supporting Software Development
Exam Prep 2026
- What do plain text files usually have?
- However what do text files do inter- nally?
- What text format did older comput- ers use? - Plain text files usually have the extension .txt and can be edited with any text editor (not a word processor) - However, text files do internally have an encoding. Computers store all data as numbers, so text is stored by mapping each character in the text to a number; for example, the character A is actually stored as the (byte) number 65. Small a is stored as 97. - Older computers used the ASCII (American Standard Code for Information Interchange) standard list of equivalent numbers.
- However what does •However, ASCII has the diflculty that it only contains the English alphabet, ASCII have the diffi- cult of?
- What did non-Eng-
some European accented English letters, and a range of symbols. Languages with ditterent alphabets, such as Japanese, Russian or Greek, cannot be stored as ASCII.
- Originally non-English languages had to define their own encoding systems, lish languages orig- and many ditterent ones existed, such as Win-1251 or KOI8-R for Russian, inally have to do?
- What was done to deal with multiple standards?
- What do larger numbers do?
- How much more space would Uni-
ISO 8859 for Greek, and ShiftJIS and EUC for Japanese. Any text editor had to support all of these!
- To deal with these multiple standards, Unicode was created - initially by Apple in 1987. Unicode combines all alphabets into a single large coding standard.
- Larger numbers take more space to store in binary. ASCII and previous formats were limited to 255 characters each - which could be stored in one byte (eight bits). Unicode stores 128,237, which could require up to 32 bits!
storing a file in raw Unicode would require four times as much space as one in ASCII! Fortunately Unicode is not normally stored this way.
opened that uses LF on a system that ex- pects CRLF?
- What happens •^ Opening^ a^ text^ file^ that^ uses^ CRLF^ on^ a^ system^ that^ expects^ only^ LF^ will^ cause when a text file that a nonsense character (the ignored CR) to appear at the end of each line. uses CRLF on a sys- tem that expects only LF?
- What happens if a mismatch occurs?
- Did Unicode fix this?
- What's the stan-
- On the web, the standard is CRLF, and most programs are able to translate between the two, but occasionally a mismatch may occur. If this happens, software can be downloaded for fixing up the line endings.
- Unfortunately, Unicode did not fix this because the creators of Unicode in- tended that files should be able to translate from ASCII to Unicode and back with no changes.
- On the Web, the standard method for indicating the type of a file is the MIME dard method for in- type (Multipurpose Internet Mail Extensions, since it was first developed for dicating the type of file?
- What are MIME types indicated by?
e-mailing files, but is now used for a wide range of other purposes too)
- MIME types are indicated by a string placed inside the file or sent along with it, called the Content-Type. For example, plain text is of type text/plain, JPG images are image/jpeg, .doc files are application/msword, and so on.
- What does windows •Windows internally uses a system called CLSID to identify types of file. CLSIDs use to identify types are long hex numbers which are not human readable. of file? The reason for using them is that they are easy to uniquely generate.
This means that if a program creates its own type of file, it can easily obtain a CLSID with no risk of clashing with another program.
- What is a trick used by malware?
- What happens when writing soft- ware?
- What are the sim- plest types of files we need to deal with?
- A very common trick used by malware is to lie to the user about the type of a file, usually making an executable file appear to be something else
- When writing software, we need to use file formats that are not commonly used in other situations.
- The simplest types of file that we need to deal with are:The source code (human readable program in a programming language) and, if we are using a compiler the executable (the program file runnable by the operating system)
- What do executable •Executable files will contain the program translated into machine code or files contain? virtual machine code, plus other data used to interact with the operating systems.
Most executable formats are specialized containers but are not intended to contain large amounts of data apart from the program.
- What do executable •Under Windows, executable files have the extension .EXE. Under Mac OS files have under windows?
and UNIX, executable files do not normally have extensions, although some programmers choose to use .EXE, .APP, or .ELF.
- What do executable •Executables for the Java virtual machine have the extension .CLASS although files have under java?
these files are used for purposes other than executables as well.
- What do executable •Executables for the Microsoft .NET virtual machine have the extension .EXE ; files have under Mi- they are distinguished from Windows native executable files by their contents. crosoft?
- What does the ex- tension of an exe-
brary, what does it need?
- What do not all li- brary's need to be?
- How are shared li- braries and static li- braries used in Win- dows?
- What are resources in .EXE files and why are they used in programming?
- How are libraries and executables handled in inter- preted languages like Python and in Java?
- What does a pack- age manager do?
library file itself, but older compiled languages like C++ cannot, and require header files storing this data.
- Not all libraries need to be shared. Some will be only used by a small number of programs and can be added to the executable by the compiler.
- If these are provided in object code format, they have extension .lib (under Windows) or .a (under UNIX and Mac OS)
In Windows, when using a shared library (.dll file), you also need a static library (.lib file) that handles its search, version check, and potential absence.
To run the program, only the .dll file is needed as the .lib file gets included in the .exe file by the compiler.
Resources are small data pieces stored in a simple database within .EXE files.
They're commonly used for storing strings in software, enabling easy trans- lation into other languages by modifying the resource database, rather than rewriting the program.
In Python, an interpreted language with no compiler, libraries are provided as source code and loaded during runtime.
An "intermediate" source format can be used for code protection. In Java, .class files serve as both executables and shared libraries, including their own header data.
These must be available at runtime, whether within the Java installation, the application's jar file, or elsewhere.
- A package manager will deal with downloading and installing libraries from the internet for you. If those libraries themselves require libraries, they will be loaded too.
- What does a pack- •If you choose to release your source code, providing a package manager age manager file do configuration file (commonly called a manifest) will enable other programmers if you release your source code?
- What are the pack- age managers of? Python Java C# JavaScript/Web Haskell Common LISP C or C++
- What do package managers depend on?
- What does the GPL and CC-SA state?
- Why can open-li-
to download your source code and then quickly obtain the necessary libraries to compile it.
In languages without package management, this could quickly become a night- mare!
PIP (no relation) Maven NuGet Npm, Bower Cabal ASDF You wish...
- Package managers depend on libraries being made freely available, since they usually cannot deal with paid licenses or digital rights management.
- The GPL (Gnu Public License) and CC-SA (Creative Commons Share Alike) licenses state that if a library is placed under one of these licenses, the program it is used in must be too (and thus given away free). Relatively few free libraries actually use these licenses (preferring LGPL or BSD) but if you are writing software for an employer it is often necessary to check.
Open library usage can be a threat to security: brary usage be a se- •Hackers may deliberately write libraries containing hidden malicious code. curity threat? • A library may accidentally contain a security breach which is then included in all programs that use it (eg, Heartbleed in OpenSSL, 2012)
- What is dist/? •dist/ - directory holding the program as it will be supplied to end users.
- What is the purpose A version control system stores source code versions during development, of a version control system in software development?
- What is an artefact database / store?
- What's the differ-
enabling quick recovery of older versions, avoiding version confusion, and facilitating team collaboration.
It's typically used on source code and configuration files, but not on non-hu- man-readable files or source code not updated by the developer, like some libraries.
- An artefact database or artefact store is used to store the parts of the software for which a version control system does not work well.
- This include any resources needed by the program that are not human read- able, and ditterent versions of the produced files and shared libraries.
- The ditterence between a VCS and an artefact database is in how conflicts ence between a VCS are handled (or if they are handled at all) and the amount of tracking of links and an artefact?
- What is automated testing?
between files.
- it is also often possible to write code to test other code. This automated testing can save a lot of testing time and help programmers by giving them immediate feedback.
- Automated testing can be done at ditterent levels - on ditterent parts of the program, or on the entire produced program.
- What is a container? •A container is a closed software environment containing only the software and the listed prerequisites of the software.
- Testing and developing inside a container has the benefit of being able to more reliably reproduce the running of the software on a user machine or environment - rather than on a development system, which tends to be abnormally configured.