Class Activity

Class Activity

University

10 Qs

quiz-placeholder

Similar activities

Introduction to Computer Science, Group 1,

Introduction to Computer Science, Group 1,

University

10 Qs

INF 242 (Q2)

INF 242 (Q2)

University

11 Qs

INTRODUCCION A BASE DE DATOS

INTRODUCCION A BASE DE DATOS

University

10 Qs

Informatika

Informatika

10th Grade - University

10 Qs

Assembly Language and MIPS Architecture Quiz

Assembly Language and MIPS Architecture Quiz

University

15 Qs

Programming Quiz

Programming Quiz

University

12 Qs

IT/CS Review Quizzizz

IT/CS Review Quizzizz

6th Grade - University

15 Qs

Internet și web

Internet și web

University

10 Qs

Class Activity

Class Activity

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Easy

Created by

Nurul Aziz

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following criteria is least relevant when selecting a language for a safety-critical embedded system?

Reliability

Efficiency

Readability

Writability

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following language criteria are directly related to runtime behavior? (Select two)

Portability

Efficiency

Reliability

Writability

Answer explanation

Explanation: Efficiency refers to runtime performance; reliability involves behavior under various runtime conditions.

3.

REORDER QUESTION

1 min • 1 pt

Rearrange the stages of the compilation process in the correct order:

1. Code Generation

  • 2. Lexical Analysis

  • 3. Intermediate Code Generation

  • 4. Optimization

  • 5. Semantic Analysis

Lexical Analysis

Code Generation

Intermediate Code Generation

Optimization

Semantic Analysis

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Language X is highly readable but has poor reliability. Language Y has moderate readability and high reliability.

Which is more suitable for a financial transaction system?

Language X

Language Y

Answer explanation

Reliability is crucial in financial systems to avoid unexpected crashes or incorrect behavior.

5.

DROPDOWN QUESTION

1 min • 1 pt

Match the feature with how it improves writability and reliability in a programming language.​ ​ ​

Strong type inference - (a)  

Real-time error hints - (b)  

Improves Efficiency
Improves portability
Improves Writability
Improves Reliability

6.

DRAW QUESTION

3 mins • 1 pt

Draw a parse tree using the Backus-Naur Form (BNF) grammar for the following expression:
(a + b) * (c + d)

Assume standard operator precedence and associativity: parentheses first, then addition, then multiplication.

Media Image

Answer explanation

*

/ \

+ +

/ \ / \

a b c d

7.

CATEGORIZE QUESTION

3 mins • 1 pt

Organize these characteristics into the correct semantic timing category.
Drag each item to either Static or Dynamic Semantic.

Groups:

(a) Static Semantic

,

(b) Dynamic Semantic

Affects runtime behavior

Type checking

Use of types and naming rules

Checked at compile-time

Evaluated during execution

Use of undeclared variables

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?