Answer:
try:
cardNumber = str(input('Enter your card number her: \n'))
if (len(cardNumber) > 16 or len(cardNumber < 16)):
raise
except:
print ('You have entered an invalid cardNumber.')
else:
if cardNumber.startswith("2"):
print('American Express Card')
elif cardNumber.startswith("4"):
print('Visa Card')
elif cardNumber.startswith("5"):
print('Master Card')
else:
print('Unknown Card')
Explanation:
In the try block section:
The first line prompt the user for input, which is converted to string and assigned to cardNumber variable. The next line test the length of the cardNumber entered, if it is less than 16 or greater than 16; an exception is raise.
In the except section:
An error message is displayed telling the user that he/she has entered an invalid card number.
In the else section:
This is where is program check for type of card using an if...elif...else statement block. If the cardNumber start with 2; an output of "American Express card" is displayed. If the cardNumber start with 4; an output of "Visa card" is displayed. If the cardNumber start with 5; an output of "Master card" is display else "Unknown card" is displayed to the user.
Answer:
A. Arbitrary code execution
Explanation:
A buffer-overrun, also known as buffer overflow occurs when a programmer makes an error during coding, which could make his system easily susceptible to attacks from a hacker. The root cause of this problem is an overflow of data in a buffer, and programs that are written in C and C+ + are more likely to be affected by this problem. When a buffer-overrun occurs, it would most likely lead to arbitrary code execution.
Arbitrary code execution is an uncontrolled and unrestricted coding by the attacker which alters the original coding. The attacker could input more information into the coding, which alters the original information and which would make the application porous and accessible by just anyone. It is important that programmers run regular tests on their programs, so as to detect any coding errors.
Doesn't look like there are any..
Answer:
The answer is Lines.
Explanation:
A visible line, or object line is a thick continuous line, used to outline the visible edges or contours of an object. A hidden line, also known as a hidden object line is a medium weight line, made of short dashes about 1/8” long with 1/16”gaps, to show edges, surfaces and corners which cannot be seen.
Video Editing software is used to play, create, and modify audio and video files.