Perl and Java

Perl and Java

University

8 Qs

quiz-placeholder

Similar activities

Peranti Input Ouput

Peranti Input Ouput

University

10 Qs

แบบทดสอบก่อนเรียน วิชา เครือข่ายคอมพิวเตอร์

แบบทดสอบก่อนเรียน วิชา เครือข่ายคอมพิวเตอร์

University

10 Qs

2024 - Struktur Data Quiz 1

2024 - Struktur Data Quiz 1

University

10 Qs

Hands-on Modul 3

Hands-on Modul 3

University

10 Qs

DSA quiz 3 set 1

DSA quiz 3 set 1

University

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

CBA Excel 1

CBA Excel 1

University

10 Qs

Software dan Hardware

Software dan Hardware

University

10 Qs

Perl and Java

Perl and Java

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Annapoorani G

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types are preceded by a dollar sign ($) in Perl?

Scalar

Array

Hashes

All of the above

Answer explanation

Scalars are preceded by a dollar sign ($).

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To verify if the variable $str contains the word “test” you would use

if ($str = ~/test/)

if ($str == “test”)

if ($str = “test”)

if ($str contains “test”)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To repeat a string, perl uses ___ operator.

/

.

x

\\

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

AVD stands for________

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output?

#!/usr/local/bin/perl

$a = 5;

until( $a > 10 ) {

printf "Value of a: $a\n";

$a = $a + 1;

}

Value of a: 5

Value of a: 6

Value of a: 7

Value of a: 8

Value of a: 9

Value of a: 10

5 6 7 8 9 10

Value of a: 5

6

7

8

9

10

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands is used to display the directory attributes

cat

ls

mkdir

cp

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Mystery animal game was based on

Media Image
Media Image
Media Image

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