চর্চাচর্চা
রেজিস্ট্রেশন
Chorcha
01605-002711
[email protected]
Moho, House No- 568, Road 1/A, Rajshahi 6207

Features

Mock Exam
Question Bank

Streams

SSC Science
HSC Science
HSC Arts
HSC Commerce
BCS/Job

Company

About
OurSchool
Affiliates
Help
FAQ

Legal

Terms & Conditions
Privacy Policy
Refund Policy
E-TIN NUMBER: 371617991290
Trade licence No: 03/B - 2673
Get it on Google PlayDownload on the app store

© 2026 Chorcha Tech Ltd. All rights reserved.

Institution management for schools — ourschool.io

Identifying Errors

1. An algorithm allows a user to input their password and checks that there are at least eight characters in the password. Then, the user is asked to re-input the password to check that both inputs are the same. The user is allowed three attempts at inputting a password of the correct length and a matching pair of passwords.

The pre-defined function LEN(X) returns the number of characters in the string, X

01 Attempt ← 0 02 REPEAT 03 PassCheck ← TRUE 04 OUTPUT "Please enter your password " 05 INPUT Password 06 IF LEN(Password) < 8 07 THEN 08 PassCheck ← TRUE 09 ELSE 10 OUTPUT "Please re-enter your password " 11 INPUT Password2 12 IF Password <> Password 13 THEN 14 PassCheck ← FALSE 15 ENDIF 16 ENDIF 17 Attempt ← Attempt + 1 18 UNTIL PassCheck OR Attempt <> 3 19 IF PassCheck 20 THEN 21 OUTPUT "Password success" 22 ELSE 23 OUTPUT "Password fail" 24 ENDIF

Identify the three errors in the pseudocode and suggest a correction to remove each error.

June 2022 0478/22 2
Identifying Errors টপিকের ওপরে পরীক্ষা দাও
ai robot

তোমার যে কোন ডাউট সলভ করো চর্চা

Ai এর মাধ্যমে

Try চর্চা Ai
বিগত বছরসমূহের প্রশ্ন ব্যাংক

বিগত বছরসমূহের প্রশ্ন ব্যাংক

১০ লক্ষ+ প্রশ্ন ডাটাবেজ

আনলিমিটেড পরীক্ষা ও ব্যাখ্যা

আনলিমিটেড পরীক্ষা ও ব্যাখ্যা

প্র্যাকটিস এর মাধ্যমে নিজেকে তৈরি করে ফেলো

ডাউট সলভিং চর্চা AI

ডাউট সলভিং চর্চা AI

উত্তর দিবে তোমার বই থেকে ও তোমার মত করে।

সারা দেশব্যাপী লিডারবোর্ড

সারা দেশব্যাপী লিডারবোর্ড

সারা দেশের শিক্ষার্থীদের মধ্যে নিজের অবস্থান যাচাই

সবকিছু এক প্রিমিয়াম প্যাকেজে

Related question

No related questions found