Computer Science and Entrepreneurship Python Programming Basic Python Syntax and Structure Medium Q1. What is the output of the code? age = 25; print('Age:', age) Age: 25 25 Age age
Computer Science and Entrepreneurship Python Programming Basic Python Syntax and Structure Medium Q2. Which of the following is a valid variable name in Python? variablel Ivariable variable-name variable name
Computer Science and Entrepreneurship Python Programming Basic Python Syntax and Structure Medium Q3. What should you do when installing Python to run it from the command line easily? Uncheck 'Add Python to PATH' Choose a different IDE Check 'Add Python to PATH' Install only the IDE
Computer Science and Entrepreneurship Python Programming Basic Python Syntax and Structure Medium Q4. Which of the following steps is NOT part of the basic programming process? Write Code Compile/Interpret Execute Ignore Errors
Computer Science and Entrepreneurship Python Programming Basic Python Syntax and Structure Medium Q5. How do you take decimal number input from the user? int(input()) str(intput()) float(input()) input(float)
Computer Science and Entrepreneurship Python Programming Basic Python Syntax and Structure Medium Q6. Which function changes text input into a number? print() int() str() bool()
Computer Science and Entrepreneurship Python Programming Basic Python Syntax and Structure Medium Q7. What does the input() function do? Shows text Loops code Takes user input Stops program
Computer Science and Entrepreneurship Python Programming Basic Python Syntax and Structure Medium Q8. What type of data is stored in name = "amna"? Integer Boolean String Float
Computer Science and Entrepreneurship Python Programming Basic Python Syntax and Structure Medium Q9. Which of the following is a valid variable name? 1name student_name
Computer Science and Entrepreneurship Python Programming Basic Python Syntax and Structure Medium Q10. What is a variable in Python? Fixed value A comment Data container Function