Chapter 5 Notes Computer Science
Chapter 5 Notes Computer Science
Q1 define programming language? What are the most commonly used programming languages?
The languages that are used to write a program or set of instructions are called "Programming
languages". Programming languages are broadly categorized into three types − Machine level
language. Assembly level language. High-level language.
Q2 differentiate between the types of programming languages
Both High level language and low level language are the programming language’s types. The
main difference between high level language and low level language is that, Programmers can
easily understand or interpret or compile the high level language in comparison of machine or
low level language.
The most basic and easy way to run a Python script is by using the python command. You need
to open a command line and type the word python followed by the path to your script file like
this: python first_script.py Hello World! Then you hit the ENTER button from the keyboard, and
that's it.
Q5 how do you use blocks to create a script in scratch?
To use my blocks in Scratch, just click on the “My Blocks” button which is a pink-colored circle
available on the left side of the screen, and then click on the “Make a Block” option to create
your own customized block. What is the advantage of running scripts and code without a screen
fresh in Scratch?
Q6 can you give some examples of different types of blocks that are available in scratch?
Blocks
Computer programs are sets of commands, which we use to explain to the computer how to
complete a certain task or solve a problem. Given that most programming languages are
textual, developers often type commands.
In the visual programming language Scratch, we don’t write commands, but instead we use
blocks, which represent them. We create programs by arranging (stacking) blocks in the
appropriate order.
Chapter 4 question and answers