FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the result of the following code:myList = [2, 3, 67, 89, 4]len(myList)
A
5
B
4
C
2
D
2, 3, 67, 89, 4
Explanation: 

Detailed explanation-1: -Logic programming languages, of which PROLOG (programming in logic) is the best known, state a program as a set of logical relations (e.g., a grandparent is the parent of a parent of someone). Such languages are similar to the SQL database language.

Detailed explanation-2: -Imperative programming paradigm You give the computer little orders to do and it does them one at a time and reports back. The paradigm consists of several statements, and after the execution of all of them, the result is stored. It’s about writing a list of instructions to tell the computer what to do step by step.

Detailed explanation-3: -Conditional statements help you to make a decision based on certain conditions. These conditions are specified by a set of conditional statements having boolean expressions which are evaluated to a boolean value of true or false.

There is 1 question to complete.