Principles of Programming Set 5

Principles of Programming Set 5

University

40 Qs

quiz-placeholder

Similar activities

Secure Scripting: Exam 1 Review: Modules 1 - 4

Secure Scripting: Exam 1 Review: Modules 1 - 4

University

38 Qs

Exception Handling

Exception Handling

University

39 Qs

Model test

Model test

University

40 Qs

TensorFlow

TensorFlow

University

37 Qs

Principles of Programming Set 3

Principles of Programming Set 3

University

40 Qs

Principles of Programming Set 2

Principles of Programming Set 2

University

40 Qs

Python Basics till Logical Operators

Python Basics till Logical Operators

University

35 Qs

Array in Python

Array in Python

University

45 Qs

Principles of Programming Set 5

Principles of Programming Set 5

Assessment

Quiz

Computers

University

Medium

Created by

DUC Class

Used 1+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?