Home / MCQ Bank / Computer
Computer Exception Handling In Python Difficulty: Medium

What happens if the file is not found in the following Python code? a=False while not a: try: f_n = input("Enter file name") i_f = open(f_n, 'r') except: print("Input file not found")

Select the correct option to test your answer:

More Computer Questions

The column not returned by 'OPTIMIZE TABLE' is . . . . . . . . What will be the output of the following C# code? { struct abc { int i; } class Program { static void Main(string[] args) { abc x = new abc(); abc z; x.i = 10; z = x; z.i = 15; console.Writeline(x.i + " " + y.i) } } } What will be the output of the following C code? #include <stdio.h> struct p { struct p *next; int x; }; int main() { struct p *p1 = calloc(1, sizeof(struct p)); p1->x = 1; p1->next = calloc(1, sizeof(struct p)); printf("%d\n", p1->next->x); return 0; } The statement used to find out which character sets are available is . . . . . . . . Accounting principles are divided into two types. These are