From d488ae8599d965dd4ca45d62fed5bbe81a085b57 Mon Sep 17 00:00:00 2001 From: ankitamk14 Date: Fri, 30 Sep 2022 16:12:21 +0530 Subject: [PATCH 1/3] removed media file contents --- media/videos/44/.DS_Store | Bin 8196 -> 0 bytes .../44/448/answer-to-question-3947.html | 163 ---- .../44/448/answer-to-question-4285.html | 164 ---- .../videos/44/448/answer-to-question-588.html | 321 ------- .../videos/44/448/answer-to-question-673.html | 251 ----- media/videos/44/448/show-video-Assamese.html | 903 ------------------ .../44/449/answer-to-question-2010.html | 251 ----- .../videos/44/449/answer-to-question-418.html | 286 ------ media/videos/44/449/show-video-Assamese.html | 806 ---------------- media/videos/44/450/show-video-Assamese.html | 705 -------------- .../44/451/answer-to-question-2013.html | 181 ---- .../videos/44/451/answer-to-question-655.html | 163 ---- media/videos/44/451/show-video-Assamese.html | 807 ---------------- media/videos/44/452/show-video-Assamese.html | 703 -------------- .../44/453/answer-to-question-2030.html | 181 ---- .../videos/44/453/answer-to-question-590.html | 216 ----- media/videos/44/453/show-video-Assamese.html | 805 ---------------- media/videos/44/454/show-video-Assamese.html | 705 -------------- .../44/455/answer-to-question-2536.html | 269 ------ .../44/455/answer-to-question-4487.html | 163 ---- .../videos/44/455/answer-to-question-531.html | 251 ----- media/videos/44/455/show-video-Assamese.html | 854 ----------------- media/videos/44/456/show-video-Assamese.html | 704 -------------- .../videos/44/457/answer-to-question-601.html | 251 ----- media/videos/44/457/show-video-Assamese.html | 763 --------------- media/videos/44/list-videos-Assamese.html | 378 -------- 26 files changed, 11244 deletions(-) delete mode 100644 media/videos/44/.DS_Store delete mode 100644 media/videos/44/448/answer-to-question-3947.html delete mode 100644 media/videos/44/448/answer-to-question-4285.html delete mode 100644 media/videos/44/448/answer-to-question-588.html delete mode 100644 media/videos/44/448/answer-to-question-673.html delete mode 100644 media/videos/44/448/show-video-Assamese.html delete mode 100644 media/videos/44/449/answer-to-question-2010.html delete mode 100644 media/videos/44/449/answer-to-question-418.html delete mode 100644 media/videos/44/449/show-video-Assamese.html delete mode 100644 media/videos/44/450/show-video-Assamese.html delete mode 100644 media/videos/44/451/answer-to-question-2013.html delete mode 100644 media/videos/44/451/answer-to-question-655.html delete mode 100644 media/videos/44/451/show-video-Assamese.html delete mode 100644 media/videos/44/452/show-video-Assamese.html delete mode 100644 media/videos/44/453/answer-to-question-2030.html delete mode 100644 media/videos/44/453/answer-to-question-590.html delete mode 100644 media/videos/44/453/show-video-Assamese.html delete mode 100644 media/videos/44/454/show-video-Assamese.html delete mode 100644 media/videos/44/455/answer-to-question-2536.html delete mode 100644 media/videos/44/455/answer-to-question-4487.html delete mode 100644 media/videos/44/455/answer-to-question-531.html delete mode 100644 media/videos/44/455/show-video-Assamese.html delete mode 100644 media/videos/44/456/show-video-Assamese.html delete mode 100644 media/videos/44/457/answer-to-question-601.html delete mode 100644 media/videos/44/457/show-video-Assamese.html delete mode 100644 media/videos/44/list-videos-Assamese.html diff --git a/media/videos/44/.DS_Store b/media/videos/44/.DS_Store deleted file mode 100644 index fc9b4d4471fd0dccce9ec33415b0ad7b1d991d73..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8196 zcmeI1zfTlF6vy8H#U(V96c!r_1F`Yo7Pv%{g`B00XF^Mm1WoQ(LZV=|1qnw-K}T=t ze?VbEYht36Him|R($>Q7{BY;J9kJs_@#Zq~_U5~@pSRz;+r4*3L}vBvW}9f5h+612 zPEBI?N3*)^NgE3@bBG4(soj574tLxvo@-MF)B$xs9Z(0x1ZXjkM79mzXLP0ZrDWYF$LWyDga?EF8 zzaqrSN57m*C_YRen^2(`N5}Cqw>z1_M;+Axbs%-X*6!of!DD%_#q0O{TU3T+ueUKM zH!#zBda(EV!SH;AtDFB(cV6?Ou4CC>-n;(p_MqI}!i@b;`z*R53;J~y6`sY5&y6g) z!!l-(sxk{4)AMqAEO|%vvSKrV!g=SHg6Gu8OI5+6;L+%$<}Gqw_ep~X zHS$tb@c8?4N%GDPYu*y)y(t?!sF9bdlJ`aL|FBh?I&h~BjC=aDt^c20|NH-)=BRLW zKpnVQ2h2pT-&+ME)Yb{jeksn-*U@dW`&B-=B^c~3cHWiai1i - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Assignment Query -
- -
-
- How and where can I submit my Assignments. Please Help!!!!! Please Don't Ignore it. -
-
- - - - - Advanced-Cpp - - - - - - - - Classes-And-Objects - - - - - - - - 06-07 min - - - - - - - - 0-10 sec - - - - - - - - - 04-04-21, 10:34 p.m. - - - - - Ankush511 - - -
-
-
- -

Answers:

- - - - -
-
-
- -
-
Hi Ankush,

There is no need to submit the assignments to ST IIT Bombay.
Do share the details mentioned on my email id given below - akankshasaini2012@gmail.com

Full Name-
College name
Event Name-
Course Name-
HOD name and contact number-

Thanks and Regards,
Akanksha Saini
-
- - - - - 09-04-21, 1:46 p.m. - - - - - akanksha - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/448/answer-to-question-4285.html b/media/videos/44/448/answer-to-question-4285.html deleted file mode 100644 index bafa195..0000000 --- a/media/videos/44/448/answer-to-question-4285.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- assignment queries -
- -
-
- where to run code and how to submit assignment ?
-
-
- - - - - Advanced-Cpp - - - - - - - - Classes-And-Objects - - - - - - - - 05-06 min - - - - - - - - 0-10 sec - - - - - - - - - 31-07-21, 1:39 p.m. - - - - - vijeshribarapatre@gmail.com - - -
-
-
- -

Answers:

- - - - -
-
-
- -
-
Dear User,
Please go through the Instruction Sheet thoroughly.  Please follow all -the steps and then begin with the video.  Here is the link-
https://spoken-tutorial.org/media/videos/44/Advanced-Cpp-Instruction-Sheet-English.pdf

Assignments are only for self-assessment. You don't have to submit the assignments anywhere.
-
- - - - - 02-08-21, 11:50 a.m. - - - - - hbammkanti - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/448/answer-to-question-588.html b/media/videos/44/448/answer-to-question-588.html deleted file mode 100644 index 6d41617..0000000 --- a/media/videos/44/448/answer-to-question-588.html +++ /dev/null @@ -1,321 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Binary no question -
- -
-
- Binary no of 10 -
-
- - - - - Advanced-Cpp - - - - - - - - Classes-And-Objects - - - - - - - - 00-01 min - - - - - - - - 0-10 sec - - - - - - - - - 21-11-17, 2:53 p.m. - - - - - nitingoldsmithy2012 - - -
-
-
- -

Answers:

- - - - -
-
-
- -
- decimal 10 (A) = binary 1010 -
- - - - - 15-04-19, 10:23 a.m. - - - - - alanshajuedasseril@gmail.com - - -
- -
-
- - -
-
- 11 -
- - - - - 03-05-21, 2:43 p.m. - - - - - saravana_7528 - - -
- - - - - -
-
-

-
-
- -
-
-
- -
- Decimal 10 (A) = Binary 1010 -
- - - - - 12-12-19, 3:02 p.m. - - - - - Diwakar24 - - -
- -
-
- - - - - - -
-
-

-
-
- -
-
-
- -
- -
- - - - - 04-05-20, 10:52 p.m. - - - - - Nityasree - - -
- -
-
- - - - - - -
-
-

-
-
- -
-
-
- -
-

Decimal:             0            1            2            3            4            5            6            7            8              9            10          11          12                

Binary:                0            1            10          11          100        101        110        111        1000         1001      1010      1011      1100        

-
- - - - - 04-05-20, 10:55 p.m. - - - - - Nityasree - - -
- -
-
- - - - - - -
-
-

-
-
- -
-
-
- -
- 10 -
- - - - - 03-05-21, 2:43 p.m. - - - - - saravana_7528 - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/448/answer-to-question-673.html b/media/videos/44/448/answer-to-question-673.html deleted file mode 100644 index efe4531..0000000 --- a/media/videos/44/448/answer-to-question-673.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Pointer -
- -
-
- What is pointer in C ? -
-
- - - - - Advanced-Cpp - - - - - - - - Classes-And-Objects - - - - - - - - 01-02 min - - - - - - - - 20-30 sec - - - - - - - - - 30-06-18, 12:01 p.m. - - - - - harekrishna.nitb@gmail.com - - -
-
-
- -

Answers:

- - - - -
-
-
- -
- Pls watch this tutorial to know about pointers in C.
https://spoken-tutorial.org/watch/C+and+Cpp/Understanding+Pointers/English/
-
- - - - - 24-03-19, 9:40 p.m. - - - - - nancy - - -
- -
-
- - -
-
- A pointer is a special variable which is used to store address of another variable. -
- - - - - 04-05-21, 4:48 p.m. - - - - - saravana_7528 - - -
- - - - - -
-
-

-
-
- -
-
-
- -
- A pointer is a special variable which is used to store address of another variable.

For ex.
   int a;
   int *p=&a;

in the above example, a is an integer type variable. p is a pointer variable which is used to store address of integer variable.

-
- - - - - 29-02-20, 3:59 p.m. - - - - - chetan_kamani - - -
- -
-
- - - - - - -
-
-

-
-
- -
-
-
- -
-

pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location.

Like any variable or constant, you must declare a pointer before using it to store any variable address

The general form of a pointer variable declaration is − type *var-name;

Refer to the following websites: 

https://www.tutorialspoint.com/cprogramming/c_pointers.htm

https://spoken-tutorial.org/watch/C+and+Cpp/Understanding+Pointers/English/

-
- - - - - 04-05-20, 11:07 p.m. - - - - - Nityasree - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/448/show-video-Assamese.html b/media/videos/44/448/show-video-Assamese.html deleted file mode 100644 index e60fe70..0000000 --- a/media/videos/44/448/show-video-Assamese.html +++ /dev/null @@ -1,903 +0,0 @@ - - - - - - Classes And Objects - Assamese | spoken-tutorial.org - - - - - - - - - - -
- -
- -
- - - - - -
-
-
-

Classes And Objects - Assamese

- -
-
- -
-
-
- -
- -
-
-
- -
- -
Outline:
C++ত ক্লাস আৰু অবজেক্ট - ক্লাস সংজ্ঞা কৰা -এটা ক্লাস তৈয়াৰ কৰা
-
-
-
- -
- -

Assignment

-
-

- Status: -

-
- - -
- -

Code files

- - - - - -
-

- Status: -

-
- - - - -
-
-
-
-
-
- - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/media/videos/44/449/answer-to-question-2010.html b/media/videos/44/449/answer-to-question-2010.html deleted file mode 100644 index 4df413b..0000000 --- a/media/videos/44/449/answer-to-question-2010.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Copy Constructor -
- -
-
- What is the main role of Copy Constructor in the concept of constructor and is it save the memory for system? -
-
- - - - - Advanced-Cpp - - - - - - - - Constructor-And-Destructor - - - - - - - - 00-01 min - - - - - - - - 50-60 sec - - - - - - - - - 10-04-20, 2:40 p.m. - - - - - Mann_19 - - -
-
-
- -

Answers:

- - - - -
-
-
- -
- Dear Mann_19,

A copy constructor is used for creating a new object from an existing one, without explicitly copying each member variables. It is not meant for saving memory, but it is just a matter of neat copying provided by c++.

nags



-
- - - - - 19-04-20, 11:17 p.m. - - - - - nags - - -
- -
-
- - -
-
- A copy constructor is a member function which initializes an object using another object of the same class. A copy constructor is called whenever a new variable is created from an object. -
- - - - - 03-05-21, 4:41 p.m. - - - - - saravana_7528 - - -
- - - - - -
-
-

-
-
- -
-
-
- -
-

A copy constructor is a member function which initializes an object using another object of the same class. A copy constructor is called whenever a new variable is created from an object.

A copy constructor has the following general function prototype:

ClassName (const ClassName &old_obj); 

-
- - - - - 04-05-20, 11:20 p.m. - - - - - Nityasree - - -
- -
-
- - - - - - -
-
-

-
-
- -
-
-
- -
- Copy constructor dynamically allocates memory for the copy first and then copies the actual value. In a deep copy, both objects which have to copy and another which has to be copied will be having different memory locations. So, the changes made to one will not affect another. This is used by a user-defined copy constructor.
         A  copy constructor is a member function that initializes an object using another object of the same class.This is the Role of copy constructor..                  
                                                          SACHIN VALAVI  20th  February 2022 
-
- - - - - 20-02-22, 4:50 p.m. - - - - - sachinvalavi99@gmail.com - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/449/answer-to-question-418.html b/media/videos/44/449/answer-to-question-418.html deleted file mode 100644 index efc7860..0000000 --- a/media/videos/44/449/answer-to-question-418.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- what is constuctor -
- -
-
- what is constructor and explain. -
-
- - - - - Advanced-Cpp - - - - - - - - Constructor-And-Destructor - - - - - - - - 00-01 min - - - - - - - - 10-20 sec - - - - - - - - - 20-10-16, 1:41 p.m. - - - - - manugowda287@gmail.com - - -
-
-
- -

Answers:

- - - - -
-
-
- -
- A constructor in Java is a block of code similar to a method that's called when an instance of an object is created. Here are the key differences between a constructor and a method: A constructor doesn't have a return type. The name of the constructo must be the same as the name of the class. -
- - - - - 08-11-16, 3:49 p.m. - - - - - Macsb07 - - -
- -
-
- - -
-
- A constructor in Java is a block of code similar to a method that's called when an instance of an object is created. Here are the key differences between a constructor and a method: A constructor doesn't have a return type. The name of the constructor must be the same as the name of the class. -
- - - - - 03-05-21, 4:43 p.m. - - - - - saravana_7528 - - -
- - - - - -
-
-

-
-
- -
-
-
- -
- A constructor in Java is a block of code similar to a method that's called when an instance of an object is created. Here are the key differences between a constructor and a method: A constructordoesn't have a return type. The name of the constructo must be the same as the name of the class. -
- - - - - 12-12-19, 11:41 a.m. - - - - - ajaysuryamurugesan@gmail.com - - -
- -
-
- - - - - - -
-
-

-
-
- -
-
-
- -
-
  • It is a special method that holds the same name as the class name and initializes the object whenever it is created. So it is simple and easy to execute.
  • It is mainly used for memory management. They are used to initialize and remove memory block when it is no longer required by having New and Delete options as specified by the programmer
-
- - - - - 29-02-20, 10:23 a.m. - - - - - sarvani.anandarao@gmail.com - - -
- -
-
- - - - - - -
-
-

-
-
- -
-
-
- -
- A constructor is a special type of member function of a class which initializes objects of a class. In C++, Constructor is automatically called when object(instance of class) create. It is special member function of the class because it does not have any return type.  -
- - - - - 20-02-22, 4:52 p.m. - - - - - sachinvalavi99@gmail.com - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/449/show-video-Assamese.html b/media/videos/44/449/show-video-Assamese.html deleted file mode 100644 index df68c2f..0000000 --- a/media/videos/44/449/show-video-Assamese.html +++ /dev/null @@ -1,806 +0,0 @@ - - - - - - Constructor And Destructor - Assamese | spoken-tutorial.org - - - - - - - - - - -
- -
- -
- - - - - -
-
-
-

Constructor And Destructor - Assamese

- -
-
- -
-
-
- -
- -
-
-
- -
- -
Outline:
কন্চট্ৰাক্টৰ আৰু দেচট্ৰাক্টৰ - -- কন্চট্ৰাক্টৰ আৰু দেচট্ৰাক্টৰ -এটা কন্চট্ৰাক্টৰ তৈয়াৰ কৰা
-
-
-
- -
- -

Assignment

-
-

- Status: -

-
- - -
- -

Code files

- - - - - -
-

- Status: -

-
- - - - -
-
-
-
-
-
- - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/media/videos/44/450/show-video-Assamese.html b/media/videos/44/450/show-video-Assamese.html deleted file mode 100644 index da3f12d..0000000 --- a/media/videos/44/450/show-video-Assamese.html +++ /dev/null @@ -1,705 +0,0 @@ - - - - - - Static Members - Assamese | spoken-tutorial.org - - - - - - - - - - -
- -
- -
- - - - - -
-
-
-

Static Members - Assamese

- - - - -
- -
Outline:
C++ত স্ট্যাটিক মেমবাৰ্চ --স্ট্যাটিক কীৱৰ্দ - --স্ট্যাটিক ভেৰিয়েবল -
-
-
-
- -
- -

Assignment

-
-

- Status: -

-
- - -
- -

Code files

- - - - - -
-

- Status: -

-
- - - - -
-
-
-
-
-
- - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/media/videos/44/451/answer-to-question-2013.html b/media/videos/44/451/answer-to-question-2013.html deleted file mode 100644 index b5c7e2a..0000000 --- a/media/videos/44/451/answer-to-question-2013.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Inheritance -
- -
-
- Can we use private members of base class which is stored in public member of same class in the derived class as you done in this tutorial using sub1,sub2,sub3 which is stored in public member total and then access this total in derived class?Cann't we use here access specifier protected? -
-
- - - - - Advanced-Cpp - - - - - - - - Inheritance - - - - - - - - 04-05 min - - - - - - - - 50-60 sec - - - - - - - - - 11-04-20, 2:21 p.m. - - - - - Mann_19 - - -
-
-
- -

Answers:

- - - - -
-
-
- -
-
Please read the Data hiding rules:
1. Private members are not directly accessible by any derived classes.
2. Protected members always remain protected in the public and protected derivation of the derived classes, and change to private in private derivation.
3. Public members can be accessed outside the base class. Public members are inherited as public, protected, and private in the derived classes, based on the derived class derivation.

-nags
-
- - - - - 29-04-20, 12:56 p.m. - - - - - nags - - -
- -
-
- - -
-
- The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one of the most important feature of Object Oriented Programming. Sub Class: The class that inherits properties from another class is called Sub class or Derived Class. The inheried class is called as child class -
- - - - - 03-05-21, 4:54 p.m. - - - - - saravana_7528 - - -
- - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/451/answer-to-question-655.html b/media/videos/44/451/answer-to-question-655.html deleted file mode 100644 index f0fc4ad..0000000 --- a/media/videos/44/451/answer-to-question-655.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Bombay IIT -
- -
-
- Inheritance what ? -
-
- - - - - Advanced-Cpp - - - - - - - - Inheritance - - - - - - - - 05-06 min - - - - - - - - 20-30 sec - - - - - - - - - 23-04-18, 11:06 a.m. - - - - - ghanshyambharti843@gmail.com - - -
-
-
- -

Answers:

- - - - -
-
-
- -
- Your question is very vague.  Pls be more specific.
-
- - - - - 14-05-18, 12:09 p.m. - - - - - nancy - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/451/show-video-Assamese.html b/media/videos/44/451/show-video-Assamese.html deleted file mode 100644 index 5833e68..0000000 --- a/media/videos/44/451/show-video-Assamese.html +++ /dev/null @@ -1,807 +0,0 @@ - - - - - - Inheritance - Assamese | spoken-tutorial.org - - - - - - - - - - -
- -
- -
- - - - - -
-
-
-

Inheritance - Assamese

- -
-
- -
-
-
- -
- -
-
-
- -
- -
Outline:
Inheritance - --Inheritance - --subclass আৰু superclassৰ ধাৰনা
-
-
-
- -
- -

Assignment

-
-

- Status: -

-
- - -
- -

Code files

- - - - - -
-

- Status: -

-
- - - - -
-
-
-
-
-
- - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/media/videos/44/452/show-video-Assamese.html b/media/videos/44/452/show-video-Assamese.html deleted file mode 100644 index 69d27e8..0000000 --- a/media/videos/44/452/show-video-Assamese.html +++ /dev/null @@ -1,703 +0,0 @@ - - - - - - More On Inheritance - Assamese | spoken-tutorial.org - - - - - - - - - - -
- -
- -
- - - - - -
-
-
-

More On Inheritance - Assamese

- - - - -
- -
Outline:
Inheritanceৰ উপৰত আৰু, যেনে --Multiple Inheritance --Hierarchical Inheritance
-
-
-
- -
- -

Assignment

-
-

- Status: -

-
- - -
- -

Code files

- - - - - -
-

- Status: -

-
- - - - -
-
-
-
-
-
- - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/media/videos/44/453/answer-to-question-2030.html b/media/videos/44/453/answer-to-question-2030.html deleted file mode 100644 index f7141fe..0000000 --- a/media/videos/44/453/answer-to-question-2030.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Virtual Keyword -
- -
-
- What is the meaning of the keyword Virtual that is used with operation function? -
-
- - - - - Advanced-Cpp - - - - - - - - Function-Overloading-And-Overriding - - - - - - - - 03-04 min - - - - - - - - 20-30 sec - - - - - - - - - 13-04-20, 1:18 p.m. - - - - - Mann_19 - - -
-
-
- -

Answers:

- - - - -
-
-
- -
-
Dear Mann_19,

Virtual functions are functions declared with a virtual keyword in the base class. Concrete derived classes override virtual functions from the base class by implementing the virtual function in the derived case. The resolution of a specific function call is done at run-time.

nags
-
- - - - - 29-04-20, 12:26 p.m. - - - - - nags - - -
- -
-
- - -
-
-
  • Virtual Keyword is used to make a member function of the base class Virtual. In Late Binding function call is resolved at runtime. Hence, now compiler determines the type of object at runtime, and then binds the function call. Late Binding is also called Dynamic Binding or Runtime Binding.
-
- - - - - 04-05-21, 4:16 p.m. - - - - - saravana_7528 - - -
- - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/453/answer-to-question-590.html b/media/videos/44/453/answer-to-question-590.html deleted file mode 100644 index 414911c..0000000 --- a/media/videos/44/453/answer-to-question-590.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- function -
- -
-
- Can I use malloc() function of C language to allocate dynamic memory in C++? -
-
- - - - - Advanced-Cpp - - - - - - - - Function-Overloading-And-Overriding - - - - - - - - 02-03 min - - - - - - - - 0-10 sec - - - - - - - - - 23-11-17, 8:12 a.m. - - - - - AKHILJITH - - -
-
-
- -

Answers:

- - - - -
-
-
- -
- More about malloc() function is available in this webpage.
https://www.geeksforgeeks.org/dynamic-memory-allocation-in-c-using-malloc-calloc-free-and-realloc/
-
- - - - - 24-03-19, 9:44 p.m. - - - - - nancy - - -
- -
-
- - -
-
- Yes, we can use malloc()function in c++

-
- - - - - 04-05-21, 4:19 p.m. - - - - - saravana_7528 - - -
- - - - - -
-
-

-
-
- -
-
-
- -
- of course yes, the malloc function in c++ allocates a block of uninitialized memory and returns a void pointer to the first byte of the allocated memory block if the allocation succeeds. 
If the size is zero, the value returned depends on the implementation of the library.
https://www.programiz.com/cpp-programming/library-function/cstdlib/malloc/
-
- - - - - 06-05-20, 2:19 p.m. - - - - - Nityasree - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/453/show-video-Assamese.html b/media/videos/44/453/show-video-Assamese.html deleted file mode 100644 index 53b1eb7..0000000 --- a/media/videos/44/453/show-video-Assamese.html +++ /dev/null @@ -1,805 +0,0 @@ - - - - - - Function Overloading And Overriding - Assamese | spoken-tutorial.org - - - - - - - - - - -
- -
- -
- - - - - -
-
-
-

Function Overloading And Overriding - Assamese

- -
-
- -
-
-
- -
- -
-
-
- -
- -
Outline:
ফাংশন ওভাৰলোডিং -ফাংশন ওভাৰৰাইদিং -দুইটাৰ মাজত পার্থক্য
-
-
-
- -
- -

Assignment

-
-

- Status: -

-
- - -
- -

Code files

- - - - - -
-

- Status: -

-
- - - - -
-
-
-
-
-
- - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/media/videos/44/454/show-video-Assamese.html b/media/videos/44/454/show-video-Assamese.html deleted file mode 100644 index db32bdd..0000000 --- a/media/videos/44/454/show-video-Assamese.html +++ /dev/null @@ -1,705 +0,0 @@ - - - - - - Polymorphism - Assamese | spoken-tutorial.org - - - - - - - - - - -
- -
- -
- - - - - -
-
-
-

Polymorphism - Assamese

- - - - -
- -
Outline:
C++ত Polymorphism - --Polymorphism --ভার্চুয়েল মেমবাৰ্চ --ভার্চুয়েল ফাংশন
-
-
-
- -
- -

Assignment

-
-

- Status: -

-
- - -
- -

Code files

- - - - - -
-

- Status: -

-
- - - - -
-
-
-
-
-
- - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/media/videos/44/455/answer-to-question-2536.html b/media/videos/44/455/answer-to-question-2536.html deleted file mode 100644 index 3f539fe..0000000 --- a/media/videos/44/455/answer-to-question-2536.html +++ /dev/null @@ -1,269 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Question about assignment given. -
- -
-
- I need a help with assignment given where i am unable to print and calculate the total marks of 3 subjects and marks of sports.And unable to print name and roll no.
So, it will be be helpful if you provide the code for the assignment problem or explain me the problem with my code.I can provide the code file or images of the code.
Hopefully i ll get the reply as soon as possible.
 
-
-
- - - - - Advanced-Cpp - - - - - - - - Abstract-Class - - - - - - - - 04-05 min - - - - - - - - 30-40 sec - - - - - - - - - 08-05-20, 3:36 a.m. - - - - - vaibhavpherwani@gmail.com - - -
-
-
- -

Answers:

- - - - -
-
-
- -
- Please provide your code here. We will be happy to help. -
- - - - - 13-05-20, 1:51 p.m. - - - - - nags - - -
- -
-
- - -
-
- #include<iostream.h>
class student
protected:
int rno;
cha name[20];
int sub1,sub2,sub3;
int sportm;
int totalm;
virtual void info()=0;
};
class marks:public student
{
public:
void info()
{cout<<"Name:";
cin>>name;
cout<<"Roll no:";
cin>>rno;
}
void input()
{cout<<"Marks of sub1: ";
cin>>sub1;
cout<<"Marks of sub2:";
cin>>sub2;
cout<<"Marks of sub3:";
cin>>sub3;
totalm=sub1+sub2+sub3;
}
void display()
{cout<<"Name:"<<name;
cout<<"roll no:"<<rno;
cout<<"Total marks:"<<totalm<<endl;
}
};
class sports:public student
{
public:
void info(){
cout<<"Sports:"<<endl;
}
void input_sport()
{cout<<"Sports marks:";
cin>>sportm;
}
};
class result:public marks,public sports
{int totals;
public:
void show();
void calc();
};
void result::show()
{cout<<"name:"<<marks::name<<endl;
cout<<"Roll no.:"<<marks::rno<<endl;
}
void result::calc()
{
totals=marks::totalm+sports::sportm;
cout<<"Total marks:"<<totals<<endl;
}
int main()
{
marks m; 
sports s;
result r;

m.info();
m.input();
m.display();
s.info();
s.input_sport();
r.show();
r.calc();
return 0;
}
In here derived class result shows incorrect results.
Hope i will get a solution for my problem soon.
Thanking you.

-
- - - - - 13-05-20, 6:49 p.m. - - - - - vaibhavpherwani@gmail.com - - -
- -
-
- #include<iostream>
using namespace std;

class Student
{
    public:
    char name[30];
    char rollno[30];
    int s1,s2,s3,ss;
    int total;
    virtual void info() = 0;
};

class Marks:public Student
{
    public:
    void info()
    {
        cout<<"Enter Name - ";
        cin>>name;
        cout<<"Enter Roll number - ";
        cin>>rollno;
        cout<<"Enter the subject marks - "<<"\n";
        cin>>s1;
        cin>>s2;
        cin>>s3;
    }
};

class Sports:public Student
{
    public:
    void info()
    {
        cout<<"Enter sports weightage - ";
        cin>>ss;
        total = s1+s2+s3+ss;
    }
};

class Result:public Student
{
    public:
    void info()
    {
        cout<<"Name of the Student = "<<name<<"\n";
        cout<<"Roll number = "<<rollno<<"\n";
        cout<<"Total Marks obtained = "<<total<<"\n";
    }
};

int main()
{
    Marks m;
    Sports s;
    Result r;
    m.info();
    s.info();
    r.info();
    return 0;
}

I'm able to enter the inputs without any errors. But my code is not able to display the name, roll.no and total marks. Can anyone please correct my code ?
-
- - - - - 18-01-22, 5:25 p.m. - - - - - jayasai.surya2019@vitstudent.ac.in - - -
- - - - - -
-
-

-
-
- -
-
-
- -
-

-
- - - - - 13-05-20, 6:48 p.m. - - - - - vaibhavpherwani@gmail.com - - -
- -
-
- - - - - - -
-
-

-
-
- -
-
-
- -
-
Your program is having the following issues:
1) syntax error char name[20];
2) class student needs to be inherited as virtual in class marks and class sports
3) In your code, you had instantiated 3 objects in the main class, i.e., marks, sports, and result. The marks that were entered using the marks and sports objects were two separate instances, and the result object was not able to access the correct one. The solution is to use the result object alone, and access using the scope resolution operator (example, r.marks::info();)

-
- - - - - 27-05-20, 9:48 p.m. - - - - - nags - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/455/answer-to-question-4487.html b/media/videos/44/455/answer-to-question-4487.html deleted file mode 100644 index 38758ad..0000000 --- a/media/videos/44/455/answer-to-question-4487.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Prime number -
- -
-
- How to display prime numbers -
-
- - - - - Advanced-Cpp - - - - - - - - Abstract-Class - - - - - - - - 02-03 min - - - - - - - - 30-40 sec - - - - - - - - - 13-03-22, 8 a.m. - - - - - moinshaik - - -
-
-
- -

Answers:

- - - - -
-
-
- -
-
A meaningful program can be written as follows:
#include<iostream>
using namespace std;
int main()
{
    int i, chk=0, j;
    cout<<"Prime Numbers Between 1 to 100 are:\n";
    for(i=1; i<=100; i++)
    {
        for(j=2; j<i; j++)
        {
           if(i%j==0)
           {
               chk++;
               break;
           }
        }
        if(chk==0 && i!=1)
            cout<<i<<"\n";
        chk = 0;
    }
    return 0;
} -
- - - - - 14-03-22, 10:58 a.m. - - - - - hbammkanti - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/455/answer-to-question-531.html b/media/videos/44/455/answer-to-question-531.html deleted file mode 100644 index ec43dc6..0000000 --- a/media/videos/44/455/answer-to-question-531.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Question is about cpp -
- -
-
- What is cpp? -
-
- - - - - Advanced-Cpp - - - - - - - - Abstract-Class - - - - - - - - 00-01 min - - - - - - - - 0-10 sec - - - - - - - - - 19-08-17, 7:05 p.m. - - - - - PRANAV3827 - - -
-
-
- -

Answers:

- - - - -
-
-
- -
- Dear Pranav,

C++ is a general-purpose object-oriented programming (OOP) language, and is an extension of the C language.

If you are interested in learning C++, pls go through the C/C++ series on our website.
-
- - - - - 29-08-17, 10:57 a.m. - - - - - nancy - - -
- -
-
- - -
-
- C++ is a OOP language, and hence it is much more advanced compared to C. C++ is a middle-level programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. This C++ tutorial adopts a simple and practical approach to describe the concepts of C++ for beginners to advanded software engineers. -
- - - - - 04-05-21, 4:37 p.m. - - - - - saravana_7528 - - -
- - - - - -
-
-

-
-
- -
-
-
- -
- You can refer to https://www.webopedia.com/TERM/O/object_oriented.html -
- - - - - 12-12-19, 3:05 p.m. - - - - - Diwakar24 - - -
- -
-
- - - - - - -
-
-

-
-
- -
-
-
- -
- CPP file extension are source code files for applications written in C++ programming language. A single C++ project may contain more than one CPP files as application source code. Such a project consists of different file types, of which the CPP files are known as implementation files as they contain all the definitions of the methods declared in the header (.h) file. The C++ project as a whole results in an executable application when compiled as a whole.</span> -
- - - - - 24-08-21, 3:27 a.m. - - - - - Vijay1122 - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/455/show-video-Assamese.html b/media/videos/44/455/show-video-Assamese.html deleted file mode 100644 index b93baa3..0000000 --- a/media/videos/44/455/show-video-Assamese.html +++ /dev/null @@ -1,854 +0,0 @@ - - - - - - Abstract Class - Assamese | spoken-tutorial.org - - - - - - - - - - -
- -
- -
- - - - - -
-
-
-

Abstract Class - Assamese

- -
-
- -
-
-
- -
- -
-
-
- -
- -
Outline:
C++ত এব্চট্ৰাক্ট ক্লাছ --পিওৰ ভার্চুয়েল ফাংশন - এব্চট্ৰাক্ট ক্লাছ --এব্চট্ৰাক্ট মেথদ
-
-
-
- -
- -

Assignment

-
-

- Status: -

-
- - -
- -

Code files

- - - - - -
-

- Status: -

-
- - - - -
-
-
-
-
-
- - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/media/videos/44/456/show-video-Assamese.html b/media/videos/44/456/show-video-Assamese.html deleted file mode 100644 index bcfe570..0000000 --- a/media/videos/44/456/show-video-Assamese.html +++ /dev/null @@ -1,704 +0,0 @@ - - - - - - Friend Function - Assamese | spoken-tutorial.org - - - - - - - - - - -
- -
- -
- - - - - -
-
-
-

Friend Function - Assamese

- - - - -
- -
Outline:
Friend ফাংছন - - --friend ফাংছন
-
-
-
- -
- -

Assignment

-
-

- Status: -

-
- - -
- -

Code files

- - - - - -
-

- Status: -

-
- - - - -
-
-
-
-
-
- - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/media/videos/44/457/answer-to-question-601.html b/media/videos/44/457/answer-to-question-601.html deleted file mode 100644 index 24919e2..0000000 --- a/media/videos/44/457/answer-to-question-601.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - Spoken Tutorial Forums - - - - - - - - - -
-
-
- -
-
-
-
-
- -
-
-
-
- Exception handling -
- -
-
- what is exception handling in c++?

-
-
- - - - - Advanced-Cpp - - - - - - - - Exception-Handling - - - - - - - - 02-03 min - - - - - - - - 0-10 sec - - - - - - - - - 12-12-17, 3:18 p.m. - - - - - Revathi_29.N - - -
-
-
- -

Answers:

- - - - -
-
-
- -
- This is explained in the tutorial available on this link.
https://spoken-tutorial.org/watch/Advanced%2BCpp/Exception%2BHandling/English/
-
- - - - - 24-03-19, 9:43 p.m. - - - - - nancy - - -
- -
-
- - -
-
-

An exception is a problem that arises during the execution of a program. A C++ exception is a response to an exceptional circumstance that arises while a program is running, such as an attempt to divide by zero.

Exceptions provide a way to transfer control from one part of a program to another. C++ exception handling is built upon three keywords: try, catch, and throw.


-
- - - - - 04-05-21, 4:47 p.m. - - - - - saravana_7528 - - -
- - - - - -
-
-

-
-
- -
-
-
- -
- Exceptions allow a method to react to exceptional circumstances and errors (like runtime errors) within programs by transferring control to special functions called handlers. For catching exceptions, a portion of code is placed under exception inspection. Exception handling was not a part of the original C++. It is a new feature that ANSI C++ included in it. Now almost all C++ compilers support this feature. Exception handling technology offers a securely integrated approach to avoid the unusual predictable problems that arise while executing a program. -
- - - - - 29-02-20, 10:33 a.m. - - - - - sarvani.anandarao@gmail.com - - -
- -
-
- - - - - - -
-
-

-
-
- -
-
-
- -
-

Exception handling in C++ provides you with a way of handling unexpected circumstances like runtime errors. So whenever an unexpected circumstance occurs, the program control is transferred to special functions known as handlers. 

To catch the exceptions, you place some section of code under exception inspection. The section of code is placed within the try-catch block. 

If an exceptional situation occurs within that section of code, an exception will be thrown. Next, the exception handler will take over control of the

-
- - - - - 24-08-21, 3:24 a.m. - - - - - Vijay1122 - - -
- -
-
- - - - - - -
-
-

-
-
- - - Click here to reply/comment online - -
-
-
- -
- - \ No newline at end of file diff --git a/media/videos/44/457/show-video-Assamese.html b/media/videos/44/457/show-video-Assamese.html deleted file mode 100644 index 086054f..0000000 --- a/media/videos/44/457/show-video-Assamese.html +++ /dev/null @@ -1,763 +0,0 @@ - - - - - - Exception Handling - Assamese | spoken-tutorial.org - - - - - - - - - - -
- -
- -
- - - - - -
-
-
-

Exception Handling - Assamese

- -
-
- -
-
- - -
-
-
- -
- -
Outline:
Exception হেন্দলিং - - --Exceptions - --try - --throw - --catch
-
-
-
- -
- -

Assignment

-
-

- Status: -

-
- - -
- -

Code files

- - - - - -
-

- Status: -

-
- - - - -
-
-
-
-
-
- - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/media/videos/44/list-videos-Assamese.html b/media/videos/44/list-videos-Assamese.html deleted file mode 100644 index ef27fcd..0000000 --- a/media/videos/44/list-videos-Assamese.html +++ /dev/null @@ -1,378 +0,0 @@ - - - - - - Search Tutorials | spoken-tutorial.org - - - - - - - - -
- -
- -
- -
-
-
-

Search Tutorials

-
-
-
-
-
- -
-
- -
-
- -
-
-
-
-
-
- -
-
- -
-
- -
-

Foss: Advanced Cpp - Assamese

-

Outline: C++ত ক্লাস আৰু অবজেক্ট - ক্লাস সংজ্ঞা কৰা -এটা ক্লাস তৈয়াৰ কৰা

-
-
-
-
-
Basic
- -
-
-
- -
-
- -
-
- -
-

Foss: Advanced Cpp - Assamese

-

Outline: কন্চট্ৰাক্টৰ আৰু দেচট্ৰাক্টৰ - -- কন্চট্ৰাক্টৰ আৰু দেচট্ৰাক্টৰ -এটা কন্চট্ৰাক্টৰ তৈয়াৰ কৰা

-
-
-
-
-
Basic
- -
-
-
- -
-
- -
-
- -
-

Foss: Advanced Cpp - Assamese

-

Outline: C++ত স্ট্যাটিক মেমবাৰ্চ --স্ট্যাটিক কীৱৰ্দ - --স্ট্যাটিক ভেৰিয়েবল -

-
-
-
-
-
Basic
- -
-
-
- -
-
- -
-
- -
-

Foss: Advanced Cpp - Assamese

-

Outline: Inheritance - --Inheritance - --subclass আৰু superclassৰ ধাৰনা

-
-
-
-
-
Basic
- -
-
-
- -
-
- -
-
- -
-

Foss: Advanced Cpp - Assamese

-

Outline: Inheritanceৰ উপৰত আৰু, যেনে --Multiple Inheritance --Hierarchical Inheritance

-
-
-
-
-
Basic
- -
-
-
- -
-
- -
-
- -
-

Foss: Advanced Cpp - Assamese

-

Outline: ফাংশন ওভাৰলোডিং -ফাংশন ওভাৰৰাইদিং -দুইটাৰ মাজত পার্থক্য

-
-
-
-
-
Basic
- -
-
-
- -
-
- -
-
- -
-

Foss: Advanced Cpp - Assamese

-

Outline: C++ত Polymorphism - --Polymorphism --ভার্চুয়েল মেমবাৰ্চ --ভার্চুয়েল ফাংশন

-
-
-
-
-
Basic
- -
-
-
- -
-
- -
-
- -
-

Foss: Advanced Cpp - Assamese

-

Outline: C++ত এব্চট্ৰাক্ট ক্লাছ --পিওৰ ভার্চুয়েল ফাংশন - এব্চট্ৰাক্ট ক্লাছ --এব্চট্ৰাক্ট মেথদ

-
-
-
-
-
Basic
- -
-
-
- -
-
- -
-
- -
-

Foss: Advanced Cpp - Assamese

-

Outline: Friend ফাংছন - - --friend ফাংছন

-
-
-
-
-
Basic
- -
-
-
- -
-
- -
-
- -
-

Foss: Advanced Cpp - Assamese

-

Outline: Exception হেন্দলিং - - --Exceptions - --try - --throw - --catch

-
-
-
-
-
Basic
- -
-
-
- -
-
-
-
- -
- - - - - - - \ No newline at end of file From 4fd2d9dd68d60d63b769e9d92f1dde8070d00f6a Mon Sep 17 00:00:00 2001 From: ankitamk14 Date: Thu, 12 Jan 2023 15:38:08 +0530 Subject: [PATCH 2/3] bug-fix for retest --- csc/templates/csc/student_dashboard.html | 8 ++++---- csc/templates/csc/test_assign.html | 9 +++++++-- csc/utils.py | 7 ++++++- csc/vle_views.py | 15 ++++++++------- 4 files changed, 25 insertions(+), 14 deletions(-) diff --git a/csc/templates/csc/student_dashboard.html b/csc/templates/csc/student_dashboard.html index 97875f2..e122d5d 100644 --- a/csc/templates/csc/student_dashboard.html +++ b/csc/templates/csc/student_dashboard.html @@ -225,7 +225,7 @@ {% if attendance.status == 1%} - {% elif attendance.status >= 3%} @@ -242,7 +242,7 @@ Grade: {{grade_entry.mdlgrade}} {% elif grade_entry.status == 3 and not student.id|is_retest_allowed:course.testfoss_id %} - {% endif %} @@ -309,7 +309,7 @@ {% if attendance.status == 1%} - {% elif attendance.status >= 3%} @@ -323,7 +323,7 @@ Grade: {{grade_entry.mdlgrade}} {% elif grade_entry.status == 3 and not student.id|is_retest_allowed:course.testfoss_id %} - {% endif %} diff --git a/csc/templates/csc/test_assign.html b/csc/templates/csc/test_assign.html index a2fc725..4502868 100644 --- a/csc/templates/csc/test_assign.html +++ b/csc/templates/csc/test_assign.html @@ -67,8 +67,13 @@
- - + +
{{student.user.get_full_name|title}} diff --git a/csc/utils.py b/csc/utils.py index 4083d91..133f42f 100644 --- a/csc/utils.py +++ b/csc/utils.py @@ -146,7 +146,12 @@ def get_valid_students_for_test(vle,test): fosses.append(item.testfoss) fosses.append(item.foss) other_tests = Test.objects.filter(foss__in=fosses).exclude(id=test.id) - students = Student.objects.filter(vle_id=vle.id,student_foss__csc_foss_id__in=fosses,student_foss__foss_start_date__lte=datetime.date.today()-timedelta(days=10)).annotate(assigned=Exists(CSCTestAtttendance.objects.filter(student_id=OuterRef('id'),test=test))).annotate(ineligible=Exists(CSCTestAtttendance.objects.filter(student_id=OuterRef('id'),test__in=other_tests))).annotate(test_taken=Exists(CSCTestAtttendance.objects.filter(student_id=OuterRef('id'),test=test,status=TEST_COMPLETED_BY_STUDENT))).distinct() + all_tests = Test.objects.filter(foss__in=fosses) + students = Student.objects.filter(vle_id=vle.id,student_foss__csc_foss_id__in=fosses,student_foss__foss_start_date__lte=datetime.date.today()-timedelta(days=10)).annotate( + assigned=Exists(CSCTestAtttendance.objects.filter(~Q(status=RETEST),student_id=OuterRef('id'),test=test))).annotate( + ineligible=Exists(CSCTestAtttendance.objects.filter(student_id=OuterRef('id'),test__in=other_tests))).annotate( + test_taken=Exists(CSCTestAtttendance.objects.filter(student_id=OuterRef('id'),test=test,status=TEST_COMPLETED_BY_STUDENT))).annotate( + retest=Exists(CSCTestAtttendance.objects.filter(student_id=OuterRef('id'),test__in=all_tests,status=RETEST))).distinct() return students diff --git a/csc/vle_views.py b/csc/vle_views.py index 56e3494..948fd45 100644 --- a/csc/vle_views.py +++ b/csc/vle_views.py @@ -630,15 +630,15 @@ def test_assign(request): print(e) try: ta = CSCTestAtttendance.objects.create(test=test,student=student,mdluser_id=mdluser.id,mdlcourse_id=mdlcourse_id,status=0,mdlquiz_id=mdlquiz_id) - print("************* 4F") except IntegrityError as e: print(e) - print("************* 5F") - print('test: ',test.id) - ta= CSCTestAtttendance.objects.get(test=test,student=student,mdluser_id=mdluser.id,mdlcourse_id=mdlcourse_id,status=4,mdlquiz_id=mdlquiz_id) - ta.status=0 - ta.attempts=ta.attempts+1 - ta.save() + try: + ta= CSCTestAtttendance.objects.get(test=test,student=student,mdluser_id=mdluser.id,mdlcourse_id=mdlcourse_id,status=4,mdlquiz_id=mdlquiz_id) + ta.status=0 + ta.attempts=ta.attempts+1 + ta.save() + except CSCTestAtttendance.DoesNotExist as e: + pass if request.POST.get('action_type') == 'add_students': nta = CSCTestAtttendance.objects.filter(test=test,status=TEST_OPEN).exclude(student__user__email__in=assigned_students) for item in nta: @@ -646,6 +646,7 @@ def test_assign(request): else: print(f"\n\n action type is NOT add_students **************************** ") messages.add_message(request,messages.SUCCESS,f'Test assigned to the students.') + except Exception as e: print(e) messages.error(request,"No test in moodle for the selected foss.Please contact support.") From 5ed27b036c4a17b36ad29f4be47e252ce22e6e2d Mon Sep 17 00:00:00 2001 From: ankitamk14 Date: Thu, 12 Jan 2023 18:41:53 +0530 Subject: [PATCH 3/3] resolved bug of student-invigilator dual role --- csc/templates/csc/sidebar.html | 2 +- spoken/templates/spoken/base.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/csc/templates/csc/sidebar.html b/csc/templates/csc/sidebar.html index ca7ce80..ccaa6fb 100644 --- a/csc/templates/csc/sidebar.html +++ b/csc/templates/csc/sidebar.html @@ -90,7 +90,7 @@