Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

Strings Test a

star
star
star
star
star
Posljednje ažuriranje about 2 years ago
20
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Pitanje 1
1.

What is output by the following code?

s = "dog food";

print( s )

Pitanje 2
2.

What is output by the following code?

s = "www.apluscompsci.com";

print( s )

Pitanje 3
3.

What is output by the following code?

s = "dog";

print( len(s) )

Pitanje 4
4.

What is output by the following code?

s = "dog food";

print( len(s) )

Pitanje 5
5.

What is output by the following code?

s = "www.apluscompsci.com";

print( len(s) )

Pitanje 6
6.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[0] )

Pitanje 7
7.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[1] )

Pitanje 8
8.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[4] )

Pitanje 9
9.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[5] )

Pitanje 10
10.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[0:2] )

Pitanje 11
11.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[2:5] )

Pitanje 12
12.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[0:0] )

Pitanje 13
13.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[0:1] )

Pitanje 14
14.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[:-2] )

Pitanje 15
15.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[8:-2] )

Pitanje 16
16.

What is output by the following code?

s = "www.apluscompsci.com";

print( s[8:-4] )

Pitanje 17
17.

What is output by the following code?

s = "www.apluscompsci.com";

print( s.find("s") )

Pitanje 18
18.

What is output by the following code?

s = "www.apluscompsci.com";

print( s.rfind("s") )

Pitanje 19
19.

What is output by the following code?

s = "www.apluscompsci.com";

print( s.find("x") )

Pitanje 20
20.

What is output by the following code?

s = "www.apluscompsci.com";

print( s.rfind("co") )