🔒 Closed Para po sa Python Masters diyan

Status
Not open for further replies.

k4rm4

Honorary Poster

Patulong po mga Python Masters
Nagcompile po ako ng questions na lumalabas sa online exam sa huawei. Baka pede po patulong para makapasa po sa OJT :(
Posible po magbigay ako reward kapag nakapasa po ako sa exam.
Eto po katuyan nagbibigay po ako rewards
https://phcorner.org/threads/registration-form-php-meron-prize-na-1k-load.986819/

I. True of False

1. In Python, static variables and static methods are instances.
2. In Python, multiple inheritance is supported during class.
3. When a function is called in Python, the immutable objects such as number and character are called by value.
4. In Python, a static method can be directly accessed and does not need to be called using CLASSNAME_STATIC_METHOD_NAME().


II. Multiple Choice
1. Assume that the statement print(6.3 – 5.9 == 0.4) is executed in the Python interpreter, and the result is False. Which of the following statements about the result is true?
a. The Boolean operation cannot be used for comparing floating-point numbers
b. It is caused by the priority of operators.
c. Python cannot exactly represent floating numbers.
d. In Python, the non-zero value is interpreted as False.

2. Which of the following is invalid in Python
a. x = y = z = 1
b. x = (y = z + 1)
c. x,y = y,x
d. x += y

3. Which of the following statements about strings is false?
a. Characters should be considered as a string of one character
b. A string with three single quotations (‘’’) can contain special character such as line feed and carriage return
c. A string ends with \0
d. A string can be created by using a single quotation mark (‘) or double quotation mark (‘’)

4. Which of the following is false?
a. (1)
b. (1,)
c. (1, 2)
d. (1, 2, (3, 4))

5. The syntax of string formatting is?
a. GNU\’s Not %s %%’ % ‘UNIX’
b. ‘GNU\’ Not %d %%’ % ‘UNIX’
c. GNU\’s Not %d %%’ % ‘UNIX’
d. ‘Gnu’s Not %d %%’ % ‘UNIX’

6. The result of invoking the following function is?
def basefunc(first):
def innerfunc(second):
return first ** second
return innterfunc
a. Base(2)(3) == 8
b. Base (2)(3) == 6
c. Base (3)(2) == 8
d. Base (3)(2) == 6


III. Multiple Answer (pede 1, 2, 3 or lahat tama)

1. About the single-underscored member proc, double-underscored __proc member, and __proc_ in Python, which of the following statement are true
a. From module import * can be directly used to import the single-underscored member _proc
b. From module import * cannot be directly used to import the double-underscored member __proc
c. In Python, the parser user _classname__proc to replace the double-underscore member __proc
d. In Python, proc is a specific indicator for magic methods

2. What are the difference between init and new in python?
a. init is an instance method, whereas new is a static method
b. No value is returned for init, whereas an instance is returned for new
c. new is called to create an instance, whereas init is called to initialize an instance
d. Only when new returns a cls instance, the subsequent init can be called

3. If data = (1, 3, 5, 7, 9, 11), which of the following operations are valid
a. data[1 : -1]
b. data[1 : 7]
c. list(data)
d. data * 3

4. If there is a = range(100), which of the following operations are valid
a. a[-1]
b. a[2 : 99]
c. a[ : -1 : 2]
d. a[5 - 7]
 
hindi po ako python master pero kng ako sayo lods try and look at your own, try mong irun yung mga codes nayan tska conding google pra kung nalilito ka
 
1-7 lng sasagutan ko. dami rin ksi.
False. possible din true yung sagot sa question 1.
True
True
True
True
True
True
 
hindi po ako python master pero kng ako sayo lods try and look at your own, try mong irun yung mga codes nayan tska conding google pra kung nalilito ka
Ginawa ko na po. Ayon po yung mga questions na hindi po ako sure nag-effort naman po ako
 
Yess po naka 58 na ako. Isang tamong sagot nalang :(
Baka kasi may mga mali parin ako jan sa python
Pwede ka naman mag retake kinabukasan, note mo nalang yong mga correct answers mo, may nakalagay dyan bago ka mag simula mag open ng final exam na everyday 0/1 retake.
 
Pwede ka naman mag retake kinabukasan, note mo nalang yong mga correct answers mo, may nakalagay dyan bago ka mag simula mag open ng final exam na everyday 0/1 retake.
Yes po nakaka 4 tries na po ako. Pang 5 ko na po mamaya.
Yang post ko po di po ako sure jan kaya nanghihingi po ako ng tulong
Nag tatake karin po ba? ano po course na binigay ng school nyo?
 
Yes po nakaka 4 tries na po ako. Pang 5 ko na po mamaya.
Yang post ko po di po ako sure jan kaya nanghihingi po ako ng tulong
Nag tatake karin po ba? ano po course na binigay ng school nyo?
Yong friend ko, nakapag try palang sya kahapon. Anong branch ka ba ng sti? main kasi sya.
 
Test ||

1. C


Bob0 kasi si python sa math😆 dejk

6.3 – 5.9 ang equal kasi nyan sa python
0.39999999999999947

Dahil daw yan sa out of memory ata pag katanda ko

Ket sa node js din ganun
 
Test ||

1. C


Bob0 kasi si python sa math😆 dejk

6.3 – 5.9 ang equal kasi nyan sa python
0.39999999999999947

Dahil daw yan sa out of memory ata pag katanda ko

Ket sa node js din ganun
Oo nga po ehh parang hindi nag round off sa 6.3 - 5.9 si python kaya naging False
Tanong ko lang po kung bakit po naging C sagot
 
Status
Not open for further replies.

About this Thread

  • 29
    Replies
  • 2K
    Views
  • 9
    Participants
Last reply from:
Calamansi_07

Online now

Members online
775
Guests online
645
Total visitors
1,420

Forum statistics

Threads
2,275,554
Posts
28,964,019
Members
1,231,861
Latest member
james_1923
Back
Top