Search Header Logo

UAS Pemrograman Lanjut Part III

Authored by Ndaru Atmi Purnami

Mathematics, Computers

1st Grade - University

Used 1+ times

UAS Pemrograman Lanjut Part III
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Following code :


print(3 * 'abc' + 'xyz')


prints :

abcabcabcxyz

xyzxyzxyzxyz

abcxyzxyzxyz

abcabcxyzxyz

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Knowing that a function named fun( ) resides in a module named mod, and it has been imported using the following line :


import mod


Choose the way it can be invoked in your code :

mod.fun( )

mod->fun( )

mod::fun( )

fun( )

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code :


print(ord('c') - ord('a'))


prints :

1

3

2

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code :


x = ' \ ' '

print(len(x))


prints :

20

1

3

2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code :


print('Mike' > "Mikey")


prints :

1

0

False

True

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

UTF-8 is

a synonym for byte

a form of encoding Unicode code points

a Python version name

the 9th version of the UTF standard

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code :


print(float("1,3"))

prints 1.3

raises a VallueError exception

prints 13

prints 1,3

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?