Programming languages and data types
Tech+ FC0-U71 · Lesson 12 of 18 · 1:35:46
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Tech+ FC0-U71 exam (CompTIA Tech+). In this lesson: interpreted and markup languages, compiled languages, query and assembly languages, and data types (char, string, integer, float, Boolean), with Oakhaven Library, a fictional public library with three branches, as the running example. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Four languages in one club
In Oakhaven's coding club, one teen builds the club's web page, another writes a Python script, a third works on a game in C plus plus, and the librarian searches the catalog with SQL. They are all programming, but with four different kinds of language. The exam asks you to tell these categories apart, and to know the basic types of data that programs use.
Interpreted languages
An interpreted language is run by a program called an interpreter, which reads the code and carries it out each time the program runs, with no separate build step. Scripting languages, like Python, JavaScript, PowerShell, and Bash, are interpreted, and they are often used to automate tasks. A script is easy to change and test: edit a line, run it again, and see the result. The interpreter must be installed on every computer that runs the script, and interpreted code usually runs slower than compiled code. The club's Python script renames hundreds of photo files in seconds.
Markup languages
A markup language describes the structure and the content of a document, with tags around each part. HTML is the markup language of web pages, with tags for headings, paragraphs, images, and links, and the browser reads it to display the page. XML uses tags too, to store and exchange data in a structure that both people and programs can read. Markup describes content, but it has no logic: no decisions, no loops, no calculations. That is why a web page combines HTML for the content, and a scripting language like JavaScript for the behavior.
Compiled languages
A compiled language is translated in advance, by a program called a compiler, into machine code that the processor runs directly. The result is an executable file, like a program that you install, and it does not need the source code, or a compiler, to run. Compiled programs usually run faster than interpreted ones, which suits games, operating systems, and heavy software. The cost is a build step: after every change, the code must be compiled again, and an executable is built for one kind of system. C, C plus plus, Go, and Rust are compiled languages, and the club's game is written in C plus plus.
Query and assembly languages
A query language asks a database for data, or changes it. SQL, the structured query language, is the most common, and a query like SELECT title FROM books asks for the titles of every book. Assembly language is at the other end: it is a low-level language, where each line is one instruction for the processor, like moving a value or adding two numbers. Assembly is hard to read and tied to one family of processors, so today it is used mainly for firmware, drivers, and code that must be as fast as possible. Most programmers rarely write it, but the exam expects you to recognize it.
Data types
Programs store each value with a data type, which tells the computer what kind of value it is. A char holds a single character, like the letter A, and a string holds a sequence of characters, like a name or a sentence. An integer is a whole number, like forty-two, and a float is a number with a decimal point, like 3.7 five. A Boolean holds only one of two values, true or false. Types matter: the number ten and the text ten are not the same, and you cannot do math on a string.
Recap
Let's recap. Interpreted languages, including scripting languages like Python and PowerShell, run through an interpreter, with no build step. Markup languages like HTML and XML describe structure and content, with tags, and no logic. Compiled languages like C plus plus are translated in advance into fast executables. SQL is a query language for databases, and assembly is a low-level language, one instruction per line. Char, string, integer, float, and Boolean are the basic data types.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
A teen writes the structure of the club’s web page: its headings, its paragraphs, and its links, with tags around each one. Which category of language is this?
- A scripting language
- A markup language
- A compiled language
- A query language
Show the answer
A markup language
A markup language, like HTML, describes the structure and content of a page with tags. “A scripting language” would add logic and automation, like JavaScript, but not the page's structure. “A compiled language” would be translated in advance into an executable program. And “A query language” is for asking a database for data.
A developer needs a program that runs as fast as possible, and ships it as an executable file, translated in advance. Which category of language fits?
- A scripting language
- A markup language
- A query language
- A compiled language
Show the answer
A compiled language
A compiled language is translated in advance into an executable, which usually runs fast. “A scripting language” is run by an interpreter each time, with no executable built in advance. “A markup language” would describe the content of a document, with no logic at all. And “A query language” is for asking a database for data, not for building programs.
The catalog needs to store whether each book is checked out right now, with only two possible values: yes or no. Which data type fits best?
- A string
- An integer
- A Boolean
- A float
Show the answer
A Boolean
A Boolean holds one of two values, true or false. “A string” would hold text, which wastes space and invites spelling mistakes. “An integer” is for whole numbers, like a count of copies. And “A float” is for numbers with a decimal point, like a late fee.