-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmock-api.js
More file actions
51 lines (49 loc) · 2.52 KB
/
mock-api.js
File metadata and controls
51 lines (49 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const api = [
{
"id":0,
"title" : " Introduction to Java",
"content":`tanding them or thinking about them—simply because of the way it is physically put together.
This is not an easy concept. A computer is a machine built of millions of tiny switches called
transistors, which have the property that they can be wired together in such a way that an
output from one switch can turn another switch on or off. As a computer computes, these
switches turn each other on or off in a pattern determined both by the way they are wired
together and by the program that the computer is executing.
Machine language instructions are expressed as binary numbers. A binary number is made
up of just two possible digits, zero and one. So, a machine language instruction is just a sequence
of zeros and ones. Each particular sequence encodes some particular instruction. The data that
the computer manipulates is also encoded as binary numbers. A computer can work directly
with binary numbers because switches can readily represent such numbers: Turn the switch on
to represent a one; turn it off to represent a zero. Machine language instructions are stored
in memory as patterns of switches turned on or off. When a machine language instruction
is loaded into the CPU, all that happens is that certain switches are turned on or off in the
pattern that encodes that particular instruction. The CPU is built to respond to this pattern
by executing the instruction it encodes; it does this simply because of the way all the other
switches in the CPU are wired together.
So, you should understand this much about how computers work: Main me
`
},
{ "id":1,
"title" : " Introductiom to Study",
"content": `Svbvb vvghvhgvgg
bhbhbgvghvgh
jjnjnjknjbhjbhjbhjbbbbv hvhghbhjbhjbjhbjhbhjbhj
bbhjbjhbhjb
jbjbhbhbhn`
},
{ "id": 2,
"title": "JavaForLoop",
"content": `Loop means jo baar baar chale jb tak condition true ho
//Java Program to demonstrate the example of for loop
//which prints table of 1
public class ForExample {
public static void main(String[] args) {
//Code of Java for loop
for(int i=1;i<=10;i++){
System.out.println(i);
}
}
}
`
},
]
export default api;