Coding Questions PDF
Document Details
Uploaded by Deleted User
Tags
Summary
This document contains a set of questions related to coding topics. The questions cover various aspects, including PictoBlox and Python programming. They are structured to test comprehension of programming concepts.
Full Transcript
a. What are the blocks palette used for in PictoBlox? b.What do you do in the scripting area of the PictoBlox interface? c.List out the components of PictoBlox and explain their purpose in short. d.What does the “When green flag clicked” block do? e.How do we choose a backdrop and sprite...
a. What are the blocks palette used for in PictoBlox? b.What do you do in the scripting area of the PictoBlox interface? c.List out the components of PictoBlox and explain their purpose in short. d.What does the “When green flag clicked” block do? e.How do we choose a backdrop and sprite in PictoBlox? a.Which block is used to add an item to the last position of a list in PictoBlox? b.Which block is used to delete an element from a list in PictoBlox? c.How do you get an element from a list using the index position? d. How do you calculate the length of a list in PictoBlox? e.List out the steps to create a new list in PictoBlox a.Define a variable. b.List out any 5 datatypes available in coding and describe them. c.What kind of value does a variable of boolean datatype hold? d.How do you create a variable in Python? e.Differentiate between integer and float datatypes. a.Define algorithms and flowcharts. b.List down the symbols used in flowcharts with their meanings. c.Write down the advantages of flowcharts over algorithms. d.Write an algorithm and draw a flowchart to add 2 numbers. e.Write an algorithm and draw a flowchart to find whether a number is positive, negative, or zero. a.What is a loop in coding? b.What do conditional statements do in coding? c.What are the 2 types of loops in Python? d. Differentiate between if…else and if…elif..else statements in Python? e.What is an indentation in Python? Write an example to show why indentation matters using a for loop a.What do input() and print() functions do in Python? b.What is the output of print(“a”+”b”) print(10+15) x= True print(x) c.Define comments in Python. Why are comments used?