Nemerle Flashcards

(25 cards)

1
Q

Who created Nemerle?

A

Kamil Skalski, Michał Moskal, Prof. Leszek Pacholski, Paweł Olszta

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When did it first appeared?

A

2003

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Nemerle Latest Version

A

v1.2.507.0 (August 6, 2016)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Nemerle Program Paradigm

A

Multiparadigm (supports functional, imperative, and object-oriented programming)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Type system

A

Strongly Type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ways to implement constant in Nemerle

A

using “def”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Construct a constant in Nemerle using def

A

def Pi: double = 3.14159;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

true or false. variables in nemerle are immutable

A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

use to define variable in nemerle

A

def

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

construct a variable with the value 5

A

def a = 5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

2 types of variable in nermele

A

Mutable
Normally defined

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

nemerle is staticaly type

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

inline comment in nemerle

A

//

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

multiline comment in nemerle

A

/* */

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

escape sequence in nemerle

A

\n (newline), \t(tab), (backslash), “(double quote), ‘ (single quote)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Delimeter in Nemerle

A

curly brace ({}) - block of code
parentheses (()) - group of expression

17
Q

true or false. parentheses are use to separate block of code in nemerle

18
Q

true or false. nemerle follows the standard text formatting, Keywords and identifiers are case-sensitive, and while indentation is not strictly required, it is widely used to improve readability.

19
Q

construct an array in nemerle with an index of 10

A

mutable numbers : array[int] = arrayint;

20
Q

construct a record in nemerle

A

record person(name: string, age : int)

21
Q

true or false. Semicolon are used to terminate statements. In nemerle semicolon are optional

22
Q

construct a code that prints hello world in nemerle

A

class myProgram{
static main() : void{

}
}
Console.WriteLine(“hello world”);

23
Q

true or false. nemerle does not have a goto statement

24
Q

construct a multiway selection statement in Nemerle

A

match(x){
case(1)=> Console.WriteLine(“one”);
case(2)=> Console.WriteLine(“two”);
default=> Console.WriteLine(“other”);
}

25