This may seem like a very rookie question for you Linux-users, but I just started using Linux. Thanks.
gnome-terminal, the standard terminal in Ubuntu, is mainly written in C.
You can see the source code here.
The Ubuntu Terminal app, which is/will be used in Unity8 (eg. Ubuntu Phone), is developed at launchpad.net/ubuntu-terminal-app
On this page is states the languages used are: