The zeroth-order general Randić index (usually denoted by R 0 α ) and variable sum exdeg index (denoted by SEI a ) of a graph G are defined as R 0, a is a positive real number different from 1 and α is a real number other than 0 and 1. A segment of a tree is a path P , whose terminal vertices are branching or pendent, and all non-terminal vertices (if exist) of P have degree 2. For n ≥ 6, let PT n,n1 , ST n,k , BT n,b be the collections of all n-vertex trees having n 1 pendent vertices, k segments, b branching vertices, respectively. In this paper, all the trees with extremum (maximum and minimum) zeroth-order general Randić index and variable sum exdeg index are determined from the collections PT n,n1 , ST n,k , BT n,b . The obtained extremal trees for the collection ST n,k are also extremal trees for the collection of all n-vertex trees having fixed number of vertices with degree 2 (because it is already known that the number of segments of a tree T can be determined from the number of vertices of T with degree 2 and vise versa).