Search Header Logo

Quiz on Basic Semantics in Programming Languages

Authored by Dr. Singh

Computers

University

Used 4+ times

Quiz on Basic Semantics in Programming Languages
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the fundamental abstraction mechanism in programming languages?

Use of functions

Use of data types

Use of names or identifiers

Use of loops

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the term 'binding' refer to in programming languages?

The association of attributes with names

The declaration of variables

The process of executing code

The allocation of memory

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of static binding?

Dynamic memory allocation

Using a pointer

Declaring a constant

Assigning a value to a variable during execution

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a symbol table?

A method for parsing code

A list of all variables in a program

A function that expresses the binding of attributes to names

A data structure for managing memory

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In block-structured languages, what is the scope of a binding?

The global scope

Only the function where it is declared

The block in which the declaration appears

The entire program

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between static and dynamic attributes?

There is no difference

Static attributes are only for constants, dynamic attributes are for variables

Static attributes are bound prior to execution, dynamic attributes during execution

Static attributes are bound during execution, dynamic attributes are not

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the term 'dangling reference' refer to?

A reference that is not defined

A reference to a global variable

A reference to a variable that has been deallocated

A reference to a variable that is still in scope

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?