Question
What will be the value of `x` after the following
pseudo-code execution? ``` x = 0 data = [10, 20, 30] for item in data: if item > 15: x = x + item else: x = x - item ```Solution
Dry Run: `x = 0` `item = 10`: `10 > 15` is false. `x = 0 - 10 = -10` `item = 20`: `20 > 15` is true. `x = -10 + 20 = 10` `item = 30`: `30 > 15` is true. `x = 10 + 30 = 40` Final `x = 40`
What does a light pen contain?
In web search, finding a large number of documents with very little relevant information is termed:
Setting fonts for the text in your document is an example of ____________ .
In Word Processing the green underline indicates
Which of the following is not an output device?
The_________records the name and exact location of every file on a disk.
A central computer that holds collections of data and programs for many PCs, workstations and other computers is a
What is the full form of USB as used in computer-related activities?
____________ deletes all the files that it infects.
What is the base of the Octal Number system?