Search Header Logo

IMPERATIVE PROGRAMMING WITH C

Authored by 'Aisyah Sa'dan

Computers

University

Used 3+ times

IMPERATIVE PROGRAMMING WITH C
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This component of a subprogram declares name, type and parameter of the subprogram.

Subprogram call

Subprogram header

Subprogram declaration

Subprogram definition

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variables that are defined inside subprograms are called

user-defined variable

pre-defined variable

global variable

local variable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is TRUE regarding pass-by-reference?

Two ways communication, but by referring to memory location

A returning value to the caller by the callee

A process by copying the parameter values from actual parameters to formal parameters.

Two ways communications with in only passing parameters.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the TRUE statement about imperative language.

Default commands are executed in sequential manner

Can handle class data type mechanism

Smalltalk is example of programming language in this category.  

A dynamic typing programming

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which are the key concepts of imperative programming?

                      I.    Variables

                     II.    Commands

                   III.    Procedures

                  IV.    Class

I, II, III

I, II, IV

II, III, IV

I, III, IV

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a primitive data type?

integer

floating

string

char

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The parameters in the subprogram header are called

A. actual parameters

B. positional parameters

C. declaration parameters

D. formal parameters

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?

Discover more resources for Computers