Programming and Databases

Programming and Databases

12th Grade

17 Qs

quiz-placeholder

Similar activities

System Software

System Software

9th - 12th Grade

13 Qs

Information Technology

Information Technology

12th Grade - University

15 Qs

Computer Software

Computer Software

University

20 Qs

Lesson 1 - Introduction to Operating Systems

Lesson 1 - Introduction to Operating Systems

University

12 Qs

Computer Hardware and Software Quiz

Computer Hardware and Software Quiz

12th Grade

19 Qs

N4 Theory - 2

N4 Theory - 2

12th Grade - University

15 Qs

ICT Computer Basics pt1

ICT Computer Basics pt1

10th - 12th Grade

12 Qs

System and network support and management

System and network support and management

11th Grade - Professional Development

20 Qs

Programming and Databases

Programming and Databases

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Anastasia Martindale

Used 1+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the decimal number 75 in binary and hexadecimal?

Answer explanation

Hex notation is often indicated using 0x to precede the hex digits, so you may see this written like 0x4b. To work out the answer without a calculator, write out the place values for each notation system. For binary you'd have columns for 64, 32, 16, 8, 4, 2, and 1 and put a 1 in each column you need to add up to 75 and a 0 in the others. For hex you only need 16 and 1 (75 divided by 16 is 4 remainder 11, which is represented as "B" in hex)

The binary number 0100 1011 represents 75 in decimal. Binary uses 0s and 1s, not hex. In hex, 0x4b (or 4B) represents the decimal number 75.

5C in hex represents the decimal number 92. 5C is not a binary representation and 0101 1100 is not a hex representation.

Although 0101 1100 is binary, it represents the decimal 92, not 75. Similarly, the hex representation of 5C equates to the decimal 92, not 75.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which notation system supports presenting the largest numbers using the fewest digits?

Answer explanation

The notational system that supports presenting the largest numbers using the fewest digits is hexadecimal. With hexadecimal notation, each digit can store 16 bits of information. Because of this efficiency, hex is ideal for handling large values. Hexadecimal is also referred to as base 16.

In a decimal system, a single digit stores 4 bits of information. Decimal is also referred to as base 10.

In binary notation, a single digit stores only 1 bit of information. Binary is also referred to as base 2.

A KiloByte is a unit of measure and not a notational system.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type provides for whole numbers only?

Answer explanation

The integer data type is for whole numbers expressed in decimal notation (0-9).

The boolean data type is used for binary notation where there are only two digits represented (0 or 1), indicating conditions such as False/True or Off/On.

Some, but not all computer languages provide for hexadecimal data types to store numbers expressed in hexadecimal notation, which gives you the ability to assign more than 10 values to a column (up to 15). Values in hexadecimal notation are 0 to 9, and then alpha characters (A to F) are used for 10 to 15.

Secondary notation like italics and bold characters are used in programming to bring attention to the code, so as to make it easier to notice important information, but it is not a data type.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In general, what is the difference between the char and string data types?

Answer explanation

A character (or char) can be a letter of the alphabet, a symbol, or a numerical character (a, D, 7, $, @, #). A string is a collection of characters such as "XYZ" and the infamous "Hello world." There is no real limit on the amount of storage that can be used by a string. Generally, you define the string length when you define the data type.

A character is typically a single byte, whereas a string is unlimited.

A number entered as a either a character or a string data type typically cannot have mathematical operations performed on it. Mathematical operations can be performed on integers, floats, and other numerical representations.

There is a limit on the amount of storage that can be used on a character (typically 1 byte), whereas there is no limit on a string.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is TRUE about legal protection for a novel software algorithm?

Answer explanation

You can legally protect a novel software algorithm through both a copyright and a patent. The difference being that you do not have to actually create a product (just the idea) for a patent.

Trademark is the term used to protect a name or a logo so that a company can promote its goods without fear of someone stealing the brand.

A copyright is an automatic legal protection granted to certain types of work, indicating that the copyright holder owns the right to control the use of the work, including rights of publication, distribution, or sale. Copyright includes the entire work, not just the name.

Protection of intellectual property is a major concern in today's digital environment. A software algorithm and the software it is used in can all be protected.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data protection technology could you implement in order to restrict the type of activity that a user could employ on digital products that they have purchased or rented?

Answer explanation

Digital rights management (DRM) is a set of access control technologies for restricting the use of proprietary hardware and copyrighted works. "Pay-per-use" policies were meant to prevent intellectual property from being copied freely, just as physical locks are needed to prevent personal property from being stolen.

Patents protect inventions and ideas and are legal protections, not a technical solution that can be implemented.

Trademarks are protections assigned to names and logos, not technical measures to enforce copyright.

Copyright is a legal protection granted to certain types of work, not a technical protection implemented to restrict the activities a user can employ on digital products.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data representation format can encode the widest range of characters?

Answer explanation

Unicode is the standard maintained by the Unicode Consortium, and as of June 2018 the most recent version is Unicode 11.0. It can encode the widest range of characters.

ASCII codes represent text in computers, telecommunications equipment, and other devices. Most modern character-encoding schemes are based on ASCII, although they support many additional characters. ASCII supports 256 characters.

Data representation defines how character data is presented. Binary is not a data representation format that encodes characters.

Hex is not a data representation format that encodes characters.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?