here are some ideas
some things i wished i knew before coming into middle school:
1. be organized
2. dont worry about other peoples opinions
3. DO YOUR HOMEWORK
things you learned so far:
1. a lot of things...
2. take notes
3.people change
advice:
if you stress too much, it gets hard.
its okay to get a bad grade on an assignment every once and a while.
be flexable with the people around you
TAKE DEEP BREATHS
DONT TALK DURING CLASS
going into the next grade:
i would change my dynamics and sleeping habits
so there are some ideas that i hope will help!!!
Answer:
Explanation:
a)use order by clause for sorting
for $x in doc("books.xml")/bib/book order by xs:float($x/price) return $x/title (default sorted in ascending order)
or
for $x in doc("books.xml")/bib/book order by xs:float($b/price) descending return $b/title (sorted in descending order)
b)doc("books.xml")//book[author = 'Abiteboul']
c)for $x in distinct-values(doc("bib.xml")/bib/book/author)
return <res>
<name>{$x}</name>
<count>
{count (doc("bib.xml")//book[exists(indexof(author,$x))]) }
</count>
<res>
Answer:
def insSort(arr):
ct=0;
for i in range(1, len(arr)):
key = arr[i]
j = i-1
while j >=0 and key < arr[j] :
arr[j+1] = arr[j]
j -= 1
ct=ct+1;
arr[j+1] = key
return arr,ct;
print(insSort([2,1]))
Output of the program is also attached.
The question above has multiple choices as below;
<span>a. </span>Wear aggregation.
<span>b.
</span>Wear mitigation.
<span>c. </span>Wear prevention
<span>d.
</span>Wear leveling
The answer is d) Wear leveling.
This technique by some SSD controllers to increase the
memory’s lifetime is called wear leveling. The mechanism for this principle is
simple: distribute the entries for all the blocks evenly so that they will wear
out evenly. Flash controller typically manages wear leveling and uses a wear
leveling algorithm to control which physical block to use.