subject

A certain programming language uses 4-bit binary sequences to represent nonnegative integers. For example, the binary sequence 0101 represents the corresponding decimal value 5. Using this programming language a programmer attempts to add them in decimal values 14 and 15 and assing the sum to the variable "total". Which of the following best describes the result of this operation? A-The correct sum of 29 will be assigned to the variable "total"

B-an overflow error will occur because 4 bits is not large enough to represent either of the values 14 or 15

C-an overflow error will occur because 4 bits is not large enough to represent 29, the sum of 14 and 15.

D-a round-off error will occur because the decimal values 14 and 15 are represented as approximations due to the fixed number of bits used to represent numbers

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Your task this week is to write a very simple spam classifier in python. it will classify messages as either spam (unwanted) or ham (wanted). the program will have a set of spam_words, words that are known to appear in spam messages. that set is included in the template file spam.pypreview the document. you will also define a spam threshold which reflects the allowed percentage of spam words in the message. you'll compute a 'spam indicator', which is the ratio of spam words to the total number of unique words in the message. if the spam indicator exceeds the spam threshold, the message is classified as spam. otherwise it is classified as ham. we'll assume that the spam threshold is a constant and has a value of 0.10. your program will prompt the user for a message and then will print the corresponding spam indicator with two decimal digits and the corresponding classification (spam or ham). the program will be case insensitive. the spam words are detected whether they are in lower case or upper case or mixed case. each word, spam or not, is counted once (even if it appears multiple times in the message.) the program will remove punctuation from the message before identifying the words and computing the spam indicator. for example '! ' must be identified as the spam word 'now'.
Answers: 3
question
Computers and Technology, 22.06.2019 10:00
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
You know the right answer?
A certain programming language uses 4-bit binary sequences to represent nonnegative integers. For ex...
Questions
question
English, 01.01.2020 02:31
question
Social Studies, 01.01.2020 02:31
question
Mathematics, 01.01.2020 02:31
question
Mathematics, 01.01.2020 02:31
Questions on the website: 13722367