Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

PLCY 110 UNC Exam COMP Quiz 60: Computing Systems & Programming Fundamentals, Exams of Computer Science

A comprehensive set of questions and answers covering fundamental concepts in computing systems and programming. It explores topics such as layers of a computing system, processes, operating system kernel, hardware components, programming languages, syntax and semantics, interpreters, variables, data types, and operators. Valuable for students learning about the basics of computer science and programming.

Typology: Exams

2024/2025

Available from 12/12/2024

Martin-Ray-1
Martin-Ray-1 🇺🇸

5

(8)

6.2K documents

1 / 9

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
PLCY 110 UNC Exam COMP Quiz 60
Questions.
What layer of a computing system will the programs you write exist? -
Answers. ✔✔User Space Processes
Which of the following is a "program in motion"? - Answers.
✔✔Process
What layer of a computing system's purpose is to make it easy for you
as the user to start, control, and stop the processes running on a
computing system? - Answers. ✔✔Shell
Which of the following kinds of shells exist? - Answers. ✔✔-Graphical
User Interface
-Textual (Command-line-Interface)
What is the name of the program or VSCode pane that you use to run a
textual shell? - Answers. ✔✔Terminal
What are the primary purposes of the operating system kernel? -
Answers. ✔✔-To fairly share the resources of your machine.
-Protects process from each other.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download PLCY 110 UNC Exam COMP Quiz 60: Computing Systems & Programming Fundamentals and more Exams Computer Science in PDF only on Docsity!

PLCY 110 UNC Exam COMP Quiz 60

Questions.

What layer of a computing system will the programs you write exist? - Answers. ✔✔User Space Processes Which of the following is a "program in motion"? - Answers. ✔✔Process What layer of a computing system's purpose is to make it easy for you as the user to start, control, and stop the processes running on a computing system? - Answers. ✔✔Shell Which of the following kinds of shells exist? - Answers. ✔✔-Graphical User Interface

  • Textual (Command-line-Interface) What is the name of the program or VSCode pane that you use to run a textual shell? - Answers. ✔✔Terminal What are the primary purposes of the operating system kernel? - Answers. ✔✔-To fairly share the resources of your machine.
  • Protects process from each other.

What are the three primary components of hardware we're concerned with in this course? - Answers. ✔✔-CPU

  • Memory (Ephemeral, Fast)
  • Storage (Persistent, Slow) What part of the system is responsible for controlling what resources are available to processes? - Answers. ✔✔OS Kernel When your program is running as a process, the process keeps track of what step the instructions it is currently working on or needs to do next. - Answers. ✔✔True When your program is running as a process, the process knows what memory it has available to it. - Answers. ✔✔True A program is a sequence of steps. - Answers. ✔✔True An algorithm is a set of instructions that is fixed in length and can only process a fixed amount of data. - Answers. ✔✔False A low-level program is one whose format is primarily intended for humans to read and write. - Answers. ✔✔False

The names you define in your code exist in the globals area. - Answers. ✔✔True The best way to get back to your workspace in VSCode is through File > Open Recent. - Answers. ✔✔True The File Explorer lists the directories (folders) and files in your workspace. These are normal directories and files saved on your computer. - Answers. ✔✔True To begin a Terminal Shell, go to Terminal > New Terminal. - Answers. ✔✔True When you see >>> that your can type in, you are working in an interactive python interpreter process. - Answers. ✔✔True To begin a Python process in interactive mode, run python - m [directory].[python filename not including .py] - Answers. ✔✔False Use the built-in quit () to end an interactive Python interpreter session.

  • Answers. ✔✔True

Stored Python programs typically end in what file extension suffix? - Answers. ✔✔.py To begin a Python process such that it evaluates a stored Python program, run python - m [directory].[python filename not including .py]

  • Answers. ✔✔True How many different patterns can be formed with 16 bits? - Answers. ✔✔2^ What can the symbol x represent? - Answers. ✔✔-the English letter
  • the Roman Numeral digit for 10
  • a "kiss" in the context of XOXO
  • an unknown variable in a math expression
  • a mark on a map In the following function call expression which symbol is an argument? - Answers. ✔✔0b What is the type of True? - Answers. ✔✔<class 'bool'> What is the evaluation of 1_000+1_000_000 - Answers. ✔✔ 1001000

Which operator is used to find the remainder of an integer division calculation and results in an int typed value? - Answers. ✔✔% What is the result of evaluating the expression "A" > "b" - Answers. ✔✔False Comparing two string values using relational operators always works the way you would expect it to in the English language? - Answers. ✔✔False Which of the following relational operators tests whether two values are equal to one another? - Answers. ✔✔== What does the final variable access expression evaluate to in this sequence of statements:

x: int = 1 x = x + 1 x - Answers. ✔✔ 2 What does the final type function call evaluate to in this sequence of statements: course: str = "110"

type(int(course)) - Answers. ✔✔int What is the result of evaluating 2 +4 / 2 * 2 in Python? - Answers. ✔✔6. What is the result of evaluating the following expression in Python? 220 >= int(("1" + "1" + "0") * 2) - Answers. ✔✔False What type of value does the input function always result in? - Answers. ✔✔str The generic format of a variable declaration and initialization statement is the following: A: B = C What is A? - Answers. ✔✔The name of the variable being declared. The generic format of a variable declaration and initialization statement is the following: A: B = C What is B? - Answers. ✔✔The data type of the variable being declared. The generic format of a variable declaration and initialization statement is the following: