Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

HLA Programming Basics: I/O, Variables, Control Structures, and Registers, Quizzes of Computer Architecture and Organization

A comprehensive overview of hla programming basics, covering topics such as printing strings, requesting user input, new lines, logical operators, the structure of a program, importing print statements, setting variables, registers, condition codes, avoiding registers for calculations, control structures (if, for, while, repeat, forever, try), printing values with space, input functions, unprotected clause, push and pop. It is suitable for university students studying computer science or programming.

Typology: Quizzes

2012/2013

Uploaded on 02/11/2013

jmo1012
jmo1012 🇺🇸

12 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
TERM 1
How do you print a string?
DEFINITION 1
stdout.put()
TERM 2
how do you request user input?
DEFINITION 2
stdin.get()
TERM 3
How do you print a new line?
DEFINITION 3
stdout.newln()
TERM 4
how do you write "and" when comparing two
items?
DEFINITION 4
&&
TERM 5
how do you write "or" when comparing two
items?
DEFINITION 5
||
pf3
pf4
pf5

Partial preview of the text

Download HLA Programming Basics: I/O, Variables, Control Structures, and Registers and more Quizzes Computer Architecture and Organization in PDF only on Docsity!

How do you print a string?

stdout.put()

TERM 2

how do you request user input?

DEFINITION 2

stdin.get()

TERM 3

How do you print a new line?

DEFINITION 3

stdout.newln()

TERM 4

how do you write "and" when comparing two

items?

DEFINITION 4

TERM 5

how do you write "or" when comparing two

items?

DEFINITION 5

what is the first line in a program?

Program NAME-OF-PROGRAM;

TERM 7

How do you import the print statements?

DEFINITION 7

#include("stdlib.hhf")

TERM 8

What do you do to set the variables in a

program?

DEFINITION 8

static -or- var

TERM 9

After setting the variables, what happens

next?

DEFINITION 9

begin NAME-OF-PROGRAM;

TERM 10

What is the very last line in a program?

DEFINITION 10

end NAME-OF-PROGRAM;

List the eight 32-bit registers

EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP

TERM 17

List the 8 16-bit

registers.

DEFINITION 17

AX, BX, CX, DX, SI, DI, BP

TERM 18

List the 8 8-bit

registers.

DEFINITION 18

AL, AH, BL, BH, CL, CH, DL, DH

TERM 19

What are the condition codes, and what are

their locations?

DEFINITION 19

Overflow - 11Carry - 0sign - 7Zero - 6

TERM 20

Which registers are to be avoided for generic

calculations?

DEFINITION 20

ESP & EBP

What does an "If" statement look

like?

if(expression) then <<Sequence of

statement(s)>>elseif(expression) then <<Sequence of

statements>>else <>endif;

TERM 22

what does a "For" loop look

like?

DEFINITION 22

For(statement) do <>endfor;

TERM 23

What does the "While" statement look

like?

DEFINITION 23

while(expression) do <>endwhile;

TERM 24

What does a repeat statement look

like?

DEFINITION 24

repeat <>until(expression);

TERM 25

what does a forever statement look like, and

what is it good for?

DEFINITION 25

forever <>endfor;good for user input/selection

what does "Push"

do?

Takes the content of a register and puts it into a stack to

protect the value of that value

TERM 32

What does "Pop"

do?

DEFINITION 32

Takes the value of a register out of the stack and puts it in a

register.