bbperic1236
bbperic1236 bbperic1236
  • 24-11-2019
  • Computers and Technology
contestada

What happens when the following code segment executes if test.txt does not exist?:
A,B,C,D?

What happens when the following code segment executes if testtxt does not exist ABCD class=

Respuesta :

r3t40
r3t40 r3t40
  • 24-11-2019

The answer is A.

In Python, if test.txt does not exists then opening it with mode 'w' will create new empty file.

Answer Link

Otras preguntas

Simplify. 5√ 10 1) 2√ 2) 2√2 3) 10√2 4) 5√
A farmer sells 8.8 kilograms of apples and pears at the farmer's market. 3 /4 of this weight is apples, and the rest is pears. How many kilograms of pears did s
The position of pharaoh was hereditary, meaning it was __________. A. assigned by the high priest B. passed from parent to child C. given to the wealthiest pers
From 1985 to 2005, the Supreme Court's ideological balance a gradually became more liberal. b gradually became more conservative. c became radically more libe
Can someone explain eastern shore
why did England want to establish colonies in North America​
On the first day of the credit cycle, Pam buys a laptop that costs $500.00. Her APR is 15 percent and her daily percentage rate is 0.04109. When the bill comes,
which type of light can humans perceive with the eye? A. ultraviolet B. infrared C. visible D. gamma
The Crisis, No. 1 by Thomas Paine (excerpt) THESE are the times that try men's souls. The summer soldier and the sunshine patriot will, in this crisis, shrink
what is the square root of -300?