The characteristic that jazz and rock 'n' roll share is:
B. Both are influenced by African rhythms.
Both genres of music have their roots in African musical traditions. Jazz emerged as a blend of various cultural and musical influences, including African rhythms, and rock 'n' roll also heavily drew from rhythm and blues, which has African American roots.