1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
elena-s [515]
3 years ago
15

Is_sum_odd that takes a non-negative integer number as parameter and returns true if the sum of individual digits is odd, false

otherwise.
Computers and Technology
1 answer:
lara31 [8.8K]3 years ago
6 0
Make sure that you understand how addDigits( number, base ) works!

```
#!/usr/bin/python

import sys


def addDigits( number, base ):
    if( number ):
        return( addDigits( number // base, base ) + ( number % base ) )
    else:
        return( 0 )


def wrapper( number, base=10 ):
    if( ( addDigits( number, base ) ) % 2 ):
        return True
    else:
        return False


if( __name__ == "__main__" ):
    if( len( sys.argv ) != 2 ):
        sys.stderr.write( "usage: " + sys.argv[ 0 ] + " <integer>\n" )
        exit( 127 )

    print wrapper( int( sys.argv[ 1 ] ) )
```

You might be interested in
a particular variety of database that works by connecting tables to each other. It is the most popular form of database and the
NeTakaya

Answer:

Relational Database      

Explanation:

  • Relational Database is the type of database in which data is stored and presented in the form of tables and it is used to access, manipulate and manage data.
  • Table is also called a relation. It consists of rows and columns where rows represent a record of data and columns represent the attributes of the data.
  • Every table has a primary key which uniquely identifies a row in a table and a foreign key is used to establish relationships among tables.
  • In relational database domain is used to define specify the possible values that an attribute can have.
  • Constraints can also be applied to the values of the attributes in the table.
  • There are many advantages of a relational database.
  • It can organize and manage bulk of information.
  • It is easy to add or delete data in the relational database according to the change in requirements.
  • Relational database ensures the consistency and integrity of data when many users obtain the same database at same time by using concurrency control methods.
  • It ensures security by limiting access rights to the data.
  • It also eliminates data redundancy and dependency using normalization technique which ensures data integrity and accuracy.
3 0
3 years ago
On the 80x86 CPU, the ESP register keeps track of the value on the top of the runtime stack.
Ronch [10]

Answer:

True

Explanation:

The ESP register acts as an indirect operand pointing to the top of the stack at any time.

Stack grows downwards from high memory when a program adds to the stack. However, when items are removed from the stack, it shrinks upwards from low to high memory.

The assembler reduces the stack pointer(ESP) register by 2, when a word value is pushed on to the stack. On the other hand, the assembler increases the stack pointer by 2 when a word value is popped off.

The assembler decreases or increases the ESP register by 4 when a double word value is pushed or popped off the stack respectively. Therefore the ESP register changes in multiples of 4.

8 0
3 years ago
Dwayne wants a variable called "name" to appear in the interpreter and does not want a space after it. Which of these should be
ICE Princess25 [194]

Answer:

name + name

Explanation:

When assigning values to a Variable  in python, the + operator sums the values assigned to the variable into a single value hence there won't be any space between the values assigned .

Name + Name = NameName    in python programming

7 0
3 years ago
B2B partners often connect to each other on the Internet through special __________ designed to facilitate information exchanges
Alenkasestr [34]

Answer:

web portals

Explanation:

B2B (business-to-business) is a marketing strategy that deals with meeting the needs of other businesses, by selling products or services to the organizations for resale to other consumers, used in production of goods or for the operation of an organisation.

B2B (business-to-business) model focuses on facilitating sales transactions between businesses.

Under the B2B, the producer sells its products directly to other businesses such as wholesalers or retailers and not the end consumers.

B2B partners often connect to each other on the Internet through special web portals that are designed to facilitate exchange of information and simplified business transactions.

Additionally, a popular application of the seller-side marketplace model, which is a major business-to-business (B2B) e-commerce model, is e-procurement of goods through the use of web portals over the internet and as such eliminating the option of physical buying or procurement.

3 0
2 years ago
To use cut and paste, click the cut button from the ____ group on the home tab.
Setler [38]

I guess the correct answer is Clipboard

A clipbοard is a tеmpοrary stοragе arеa fοr data that thе usеr wants tο cοpy frοm οnе placе tο anοthеr. In a wοrd prοcеssοr applicatiοn, fοr еxamplе, thе usеr might want tο cut tеxt frοm οnе part οf a dοcumеnt and pastе it in anοthеr part οf thе dοcumеnt οr sοmеwhеrе еlsе.


5 0
3 years ago
Other questions:
  • In 1–2 sentences describe how you would insert a row in a spreadsheet.
    6·2 answers
  • What kind of video are you are able to watch by downloading it from the Internet?
    10·1 answer
  • Lonnie has several workbooks that contain financial and sales data. He needs to ensure that if the data in a single cell in one
    5·1 answer
  • Code example 5-1 import java.util.Scanner; import java.text.NumberFormat; public class WeightConverter { public static void main
    13·1 answer
  • Check examples of a good work ethic. *
    6·1 answer
  • Pleeeese help me for these questions
    8·1 answer
  • A student registers for a course in a university. Courses may have limited enrollment i.e a student must
    5·1 answer
  • Tower of Hanoi algorithm 4 disks
    12·2 answers
  • Under which reflection(s) is the image of line m also a line?
    14·2 answers
  • What is the difference between a loop and a function?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!