Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

What is the corresponding UCS2 code?

  1. May 17, 2005 #1
    i was preparing for my compsci exam doing past papers
    and encountered a few questions i dont get
    can someone help me plz?

    The following bytes are encountered in a UTF8 stream. What is the corresponding UCS2 code? (Express your answer in hexadecimal)
    23 E8 96 BC C2 8B

    i dunno wat's UTF8 and UCS2, cant find it in my lecture notes

    another question
    Express the performance of the following methods using big-Oh notation in terms of the parameter n. Give reasons for your answers.

    public void determineComplexity(int n) {
    int add = 0;
    if (n ==0)

    for this one, is the answer equals
    if n = 1000
    it'll take 3 times before n == 0
  2. jcsd
  3. May 23, 2005 #2
    Last edited by a moderator: Apr 21, 2017
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook