there is no such thing as a small two-masted vessel with a mainsail and jib
Sloop.
A sloop
schooner
catalina capri 14
A ketch or a yawl.
a dinghy would be a small (6 to 16 foot) sailboat, these can have almost any sail rig. the type of rig you described is called a sloop. a sloop is a sailboat with a triangular mainsail and a jib (this sail configuration is called a marconi rig, or bermudian rig), and are very common. so a small, one masted vessel with a mainsail and jib would just be called a sloop, or dinghy.
The most common single masted sailing vessel with a mainsail and one jib is the sloop.A cutter has one mast with one mainsail but two jibs.A catboat has one mast and a huge mainsail but (usually) no jib. The mast is located very much forward on the vessel.There are other sailboats that have just one mast and a mainsail such as the Sunfish or a Dhow, both of which have a lateen rig (one mast, one mainsail.)
Sloop rig
A ketch or a yawl.
Yawls, ketches and two-masted schooners all match this definition. The jib or headsail is not used to define the boat, as almost all fore-and-aft rigged boats have a headsail of some kind.
This could be a sloop (main + jib), a cutter (main + jib + foresail), or a cat boat (main alone). There are many variations.