Principles of Programming Set 5

Principles of Programming Set 5

University

40 Qs

quiz-placeholder

Similar activities

Unix

Unix

1st Grade - Professional Development

36 Qs

Flowchart, Algorithm & Pseudo code

Flowchart, Algorithm & Pseudo code

University

37 Qs

Softwares&Hardwares

Softwares&Hardwares

University

45 Qs

Chapter 1-Computer System

Chapter 1-Computer System

University

40 Qs

Computer Generation

Computer Generation

University

38 Qs

quiz operasi pascal

quiz operasi pascal

KG - Professional Development

39 Qs

OpenShift AI - Challenge 2025

OpenShift AI - Challenge 2025

University

40 Qs

CompTIA Security+ SY0-601 Chapters 9 - 12

CompTIA Security+ SY0-601 Chapters 9 - 12

University

40 Qs

Principles of Programming Set 5

Principles of Programming Set 5

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

DUC Class

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Chomsky's Hierarchy based on?

Performance
AI use
Grammar complexity
Indentation rules
Storage size

Answer explanation

It classifies languages by grammar type.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an advantage of using a JIT compiler over interpretation alone?

Simpler syntax
More memory overhead
Slower execution
Runtime optimization
No need for profiling

Answer explanation

JIT compiles and optimizes code as it's being used during runtime.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of data structure is a dictionary in Python?

Set
Tuple
Map
Hash table
List

Answer explanation

A dictionary is an implementation of a hash table.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key function of a shell in CLI environments?

Create spreadsheets
Interpret user commands
Encrypt files
Run markdown
Build GUIs

Answer explanation

The shell executes user-typed commands.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which languages are considered high-level languages (HLLs)?

Assembly and C
Python and Java
Machine code and Go
Binary and Rust
Shell and HTML

Answer explanation

Which languages are considered high-level languages (HLLs)?

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation?

^
**
pow
^*
^^

Answer explanation

** is used to raise powers in Python.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which paradigm sends messages instead of calling methods?

OOP message-passing
Procedural
Declarative
Structured
C++

Answer explanation

This is seen in Smalltalk and Self.

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?