  We evaluate the exact one-loop partition function for fundamental strings
whose world-surface ends on a cusp at the boundary of AdS_4 and has a "jump" in
CP^3. This allows us to extract the stringy prediction for the ABJM generalized
cusp anomalous dimension Gamma_{cusp}^{ABJM} (phi,theta) up to NLO in
sigma-model perturbation theory. With a similar analysis, we present the exact
partition functions for folded closed string solutions moving in the AdS_3
parts of AdS_4 x CP^3 and AdS_3 x S^3 x S^3 x S^1 backgrounds. Results are
obtained applying to the string solutions relevant for the AdS_4/CFT_3 and
AdS_3/CFT_2 correspondence the tools previously developed for their AdS_5 x S^5
counterparts.
