Do Mocktest Online Test Series

DOMOCKTEST

Basic Computer Programming Quizzes

Domocktest a digital platform created Basic Computer Programming Quizzes this quizzes are all free of cost. This quizzes will be really helpful to those students who have newly started learning programming languages

Quizzes are available for the following programming languages

1. HTML

HTML stands for Hyper Text Markup Language which is used to build web pages. With HTML you can create your own website. HTML is the easiest language among all the programming languages.

HTML Example

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>

2. CSS

CSS stands for Cascading Style Sheets which is used to style an HTML document. CSS describes how HTML elements should be displayed.

CSS Example

body {
  background-color: lightblue;
}
h1 {
  color: white;
  text-align: center;
}
p {
  font-family: verdana;
  font-size: 20px;
}

3. C programming Quizzes

C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

C Example
#include <stdio.h>

int main(){

printf("Hello World");

return 0;
}

4. JAVASCRIPT

JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages. We can make changes in an HTML document using JavaScript

JavaScript Example

<!DOCTYPE html>
<html>
<body>
<h2>What can JavaScript do?</h2>
<p id=”demo”> JavaScript can change HTML content.</p>
<button type=”button” onclick=’document.getElementById(“demo”).innerHTML = “Hello JavaScript!” ‘>Click Me!</button>
</body>
</html>

5. C++

C++ is an object-oriented programming language which gives a clear structure to programs and allows code to be reused, lowering development costs. C++ is portable and can be used to develop applications that can be adapted to multiple platforms. C++ is fun and easy to learn!

C++ Example

#include <iostream>
int main(){
cout<<“Hello World”;
return 0;
}


6. JAVA

Java is a widely used object-oriented programming language and software platform that runs on billions of devices, including notebook computers, mobile devices, gaming consoles, medical devices and many others. The rules and syntax of Java are based on the C and C++ languages.

JavaScript Example

class simple
public static void main(String args[]){
system.out.println(“Hello World”);
}
}

7. PYTHON

Python is a computer programming language often used to build websites and software, automate tasks, and conduct data analysis. Python is a general-purpose language, meaning it can be used to create a variety of different programs and isn’t specialized for any specific problems.

Python Example

print(‘Hello, world!’)

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top