## What will be the value of the i variable when the while e loop finishes its execution?

What will be the value of the i variable when the while e loop finishes its execution? A . 1B . 0C . 2D . the variable becomes unavailableView AnswerAnswer: A Explanation:

## What is the expected output of the following snippet?

What is the expected output of the following snippet? A . abcB . The code will cause a runtime exceptionC . ABCD . 123View AnswerAnswer: B Explanation:

## How many elements will the list2 list contain after execution of the following snippet?

How many elements will the list2 list contain after execution of the following snippet? A . zeroB . fiveC . sevenD . threeView AnswerAnswer: C Explanation:

## Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)

Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers) A . len(a)== len (b)B . a [0]-1 ==b [0]C . a [0]== b [0]D . b [0] - 1 ==a [0]View AnswerAnswer: AB Explanation:

## What is the output of the following piece of code?

What is the output of the following piece of code? A . ant’ bat’ camelB . ant”bat” camelC . antbatcamelD . print (a, b, c, sep= ‘ ” ’)View AnswerAnswer: B Explanation:

## A file name like this one below says that: (Select three answers)

A file name like this one below says that: (Select three answers) services, cpython 36.pycA . the interpreter used to generate the file is version 3.6B . it has been produced by CPythonC . it is the 36th version of the fileD . the file comes from the services.py source...

## What would you used instead of XXX if you want to check weather a certain ‘key’ exists in a dictionary called dict? (Select two answers)

What would you used instead of XXX if you want to check weather a certain ‘key’ exists in a dictionary called dict? (Select two answers) A . ‘key’ in dictB . dict [‘key’] != NoneC . dict.exists (‘key’)D . ‘key’ in dict.keys ( )View AnswerAnswer: BD Explanation: Reference: https://thispointer.com/python-how-to-check-if-a-key-exists-in-dictionary/