Question: Answer questions based on Python programming language Comments Rule for writing valid comments Examples of comments Identifiers Rules for writing valid identifiers Length of an

Answer questions based on Python programming language

  • Comments

    • Rule for writing valid comments

    • Examples of comments

  • Identifiers

    • Rules for writing valid identifiers

    • Length of an identifier

    • Case sensitivity: are uppercase and lowercase characters different?

    • Connectors

    • Examples

    • Keywords/Reserved words: Are keywords reserved words?

    • Standard identifiers: does the language have standard identifiers?

  • Constant Data/ Literal Constants

    • Possible constant data follow:

      • Boolean constants

      • Character constants

      • Integer constants

      • Decimal constants

      • Floating-point constants

      • String constants

      • Special constants

  • Variables, Basic Data Types and Type Binding

    • Name: how is it referred to?

    • Address: is the address of a variable accessible? If Yes, how?

    • Is the size of a data type dependent on the computer?

    • Possible Basic Data Types:

      • Signed integers

      • Unsigned integers

      • Floating-point Types

      • Decimal

      • Boolean types

      • Character Types

      • Character String Type (is there a basic data type to represent strings?)

      • String Length

      • Static length strings, limited dynamic length strings or dynamic length strings?

    • Type Binding:

      • Is the type binding static or dynamic? Do we have type inference?

      • If the type binding is static, do we have implicit or explicit declarations of variables?

  • Arithmetic Expressions

    • (character/integer/floating point) arithmetic operators?

    • Rule for writing (character/integer/floating point) arithmetic expressions.

    • Rule for evaluating arithmetic expression

    • Does the language allow mixed-mode expressions? If yes, what is the type conversion rule?

    • Order of operands evaluation.

    • Are there restrictions on operand evaluation side effects?

    • Does the language allow user-defined operator overloading?

    • Does the language have decimal arithmetic operations?

  • Logical Expressions

    • Relational operators?

    • Logical operators?

    • Precedence of basic operators?

  • Assignment Statements

    • Syntax

    • Are mixed-mode assignments allowed? If yes, what is the coercion rule?

    • Is the assignment an operator?

    • Do we have compound assignments?

    • Initial values of variables?

    • Naming constants?

    • Increment and decrement operators?

  • Representations of String Data

    • If strings are not represented by a basic data type, how are they represented?

    • What are the operations on strings?

    • Converting strings of digits to numerical values?

    • Converting numerical values to strings?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!