Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Turing Test Review

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
15-07-2023
Written in
2022/2023

Turing Quiz Review Multiple Choice Identify the choice that best completes the statement or answers the question. 1. Which loop will count 16, 12, 8, 4, 0 a. for decreasing number : 16..0 by -4 b. for decreasing by 4 number : 16..0 c. for decreasing number : 16..1 by 4 d. for decreasing number : 16..0 by 4 2. Which statement has an error? a. a := 77 + 33 c. x := maxx b. name = “Ralph” d. b := a 3. What will this code segment display? var count : int := 2 var total : int := 0 loop total := total + count exit when total 9 count := count + 1 end put loop count a. b. 4 3 c. 6 d. 5

Show more Read less
Institution
Course

Content preview

Turing Quiz Review




Multiple Choice
Identify the choice that best completes the statement or answers the question.

1. Which loop will count 16,
12, 8, 4, 0

a. for decreasing number :
16..0 by -4
b. for decreasing by 4 number : 16..0
c. for decreasing number : 16..1 by 4
d. for decreasing number : 16..0 by 4



2. Which statement has an
error?

a. a := 77 + 33 c. x := maxx
b. name = “Ralph” d. b := a



3. What will this code
segment display?
var count :
int := 2
var total : int := 0
loop
total := total +
count
exit when total >
9
count := count +
1
end loop
put count

a. 3 c. 6
b. 4 d. 5

, 4. Which choice will
complete this code
segment to tests
whether response
is an “A” or “a’”?

var responseStatus :
string
var response :
string
// lines omitted

responseStatus :
= "Account Type"
end if




a. if (response = "A" or
response = "Z") then
b. if (response = "A" or response = "a") then
c. if (response >= "A" or response <= "a") then
d. if (response = "A" and response = "a") then



5. If the letter ‘A’ is ASCII
code 65, then what
statements
prints 65

a. put chr(65) c. put
code(‘A’)
b. put ord(‘A’) d. get chr(‘A’)



6. How many choices are
possible when using a
single if-then-else
state ment?

Written for

Course

Document information

Uploaded on
July 15, 2023
Number of pages
5
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$15.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
kevwac
5.0
(1)

Get to know the seller

Seller avatar
kevwac Harvard College
Follow You need to be logged in order to follow users or courses
Sold
7
Member since
3 year
Number of followers
5
Documents
404
Last sold
9 months ago
lecture materials and Sell Notes online. your online seller for latest and updated course notes and study materials, exams tips, cheat sheets, flashcards ,class notes, revision techniques and study guides for guaranteed test passing.

Provides access online course material by selling study notes and course material at favorable prices. we offer notes for sale online to help learners with exam preparation for improved scores. despite earning money by uploading notes, i will gain further satisfaction in helping you ace your latest exam tests.

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions